aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-04-11 19:40:46 +0100
committerGitHub <[email protected]>2020-04-11 19:40:46 +0100
commitfd06fe7b13045185ab4e630b0044aa9d8bbcdf8a (patch)
tree1481f3fb3e65902b36571ad403fabf5e5940aa56 /crates/ra_hir_def/src
parent1a1c09ed3e3a34c0a8750f98ece9ad85595395d2 (diff)
parentd9089245fefdc4179c1d61839e78131c5e5a5a45 (diff)
Merge #3925
3925: Implement assist "Reorder field names" r=matklad a=geoffreycopin This PR implements the "Reorder record fields" assist as discussed in issue #3821 . Adding a `RecordFieldPat` variant to the `Pat` enum seemed like the easiest way to handle the `RecordPat` children as a single sequence of elements, maybe there is a better way ? Co-authored-by: Geoffrey Copin <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r--crates/ra_hir_def/src/body/lower.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs
index cc2532e88..c057dc8f2 100644
--- a/crates/ra_hir_def/src/body/lower.rs
+++ b/crates/ra_hir_def/src/body/lower.rs
@@ -665,7 +665,6 @@ impl ExprCollector<'_> {
665 Pat::Missing 665 Pat::Missing
666 } 666 }
667 } 667 }
668
669 // FIXME: implement 668 // FIXME: implement
670 ast::Pat::BoxPat(_) | ast::Pat::RangePat(_) | ast::Pat::MacroPat(_) => Pat::Missing, 669 ast::Pat::BoxPat(_) | ast::Pat::RangePat(_) | ast::Pat::MacroPat(_) => Pat::Missing,
671 }; 670 };