diff options
author | Aleksey Kladov <[email protected]> | 2020-07-31 20:59:40 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-31 21:04:12 +0100 |
commit | 8cf19847ddbcbbe1c1bb634dfc4a61ab75ec941d (patch) | |
tree | 4cfe573d8d6c49c3f92f4a56e5fae3af2b37c1a0 | |
parent | b9c6aa9ec9e491160a6ad7c5ec66151bd67b0ecd (diff) |
Finish rename
-rw-r--r-- | crates/ra_hir_def/src/body/lower.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index 9d6562c38..f5c37edb3 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs | |||
@@ -809,7 +809,7 @@ impl ExprCollector<'_> { | |||
809 | ast::Pat::SlicePat(p) => { | 809 | ast::Pat::SlicePat(p) => { |
810 | let SlicePatComponents { prefix, slice, suffix } = p.components(); | 810 | let SlicePatComponents { prefix, slice, suffix } = p.components(); |
811 | 811 | ||
812 | // FIXME properly handle `DotDotPat` | 812 | // FIXME properly handle `RestPat` |
813 | Pat::Slice { | 813 | Pat::Slice { |
814 | prefix: prefix.into_iter().map(|p| self.collect_pat(p)).collect(), | 814 | prefix: prefix.into_iter().map(|p| self.collect_pat(p)).collect(), |
815 | slice: slice.map(|p| self.collect_pat(p)), | 815 | slice: slice.map(|p| self.collect_pat(p)), |
@@ -827,9 +827,9 @@ impl ExprCollector<'_> { | |||
827 | } | 827 | } |
828 | } | 828 | } |
829 | ast::Pat::RestPat(_) => { | 829 | ast::Pat::RestPat(_) => { |
830 | // `DotDotPat` requires special handling and should not be mapped | 830 | // `RestPat` requires special handling and should not be mapped |
831 | // to a Pat. Here we are using `Pat::Missing` as a fallback for | 831 | // to a Pat. Here we are using `Pat::Missing` as a fallback for |
832 | // when `DotDotPat` is mapped to `Pat`, which can easily happen | 832 | // when `RestPat` is mapped to `Pat`, which can easily happen |
833 | // when the source code being analyzed has a malformed pattern | 833 | // when the source code being analyzed has a malformed pattern |
834 | // which includes `..` in a place where it isn't valid. | 834 | // which includes `..` in a place where it isn't valid. |
835 | 835 | ||