mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 04:23:25 +00:00
Finish rename
This commit is contained in:
parent
b9c6aa9ec9
commit
8cf19847dd
1 changed files with 3 additions and 3 deletions
|
@ -809,7 +809,7 @@ impl ExprCollector<'_> {
|
|||
ast::Pat::SlicePat(p) => {
|
||||
let SlicePatComponents { prefix, slice, suffix } = p.components();
|
||||
|
||||
// FIXME properly handle `DotDotPat`
|
||||
// FIXME properly handle `RestPat`
|
||||
Pat::Slice {
|
||||
prefix: prefix.into_iter().map(|p| self.collect_pat(p)).collect(),
|
||||
slice: slice.map(|p| self.collect_pat(p)),
|
||||
|
@ -827,9 +827,9 @@ impl ExprCollector<'_> {
|
|||
}
|
||||
}
|
||||
ast::Pat::RestPat(_) => {
|
||||
// `DotDotPat` requires special handling and should not be mapped
|
||||
// `RestPat` requires special handling and should not be mapped
|
||||
// to a Pat. Here we are using `Pat::Missing` as a fallback for
|
||||
// when `DotDotPat` is mapped to `Pat`, which can easily happen
|
||||
// when `RestPat` is mapped to `Pat`, which can easily happen
|
||||
// when the source code being analyzed has a malformed pattern
|
||||
// which includes `..` in a place where it isn't valid.
|
||||
|
||||
|
|
Loading…
Reference in a new issue