diff options
author | Aleksey Kladov <[email protected]> | 2020-07-31 19:04:40 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-31 19:04:40 +0100 |
commit | d7f75db90d99216c13000681ff2c4a887451c4b2 (patch) | |
tree | 5e5a61ed573a41ed6cddddc1a676676d2d70180b /crates | |
parent | 14cb96ec0e6be3b99bfe4ea373c058dcbd2a4f79 (diff) |
Reorder
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_hir_def/src/body/lower.rs | 1 | ||||
-rw-r--r-- | crates/ra_syntax/src/ast/generated/nodes.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index 25e29b7cd..ef1c0df01 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs | |||
@@ -786,7 +786,6 @@ impl ExprCollector<'_> { | |||
786 | ast::Pat::PlaceholderPat(_) => Pat::Wild, | 786 | ast::Pat::PlaceholderPat(_) => Pat::Wild, |
787 | ast::Pat::RecordPat(p) => { | 787 | ast::Pat::RecordPat(p) => { |
788 | let path = p.path().and_then(|path| self.expander.parse_path(path)); | 788 | let path = p.path().and_then(|path| self.expander.parse_path(path)); |
789 | |||
790 | let args: Vec<_> = p | 789 | let args: Vec<_> = p |
791 | .record_pat_field_list() | 790 | .record_pat_field_list() |
792 | .expect("every struct should have a field list") | 791 | .expect("every struct should have a field list") |
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 7708ae806..713aebcfa 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs | |||
@@ -1128,7 +1128,7 @@ pub struct BoxPat { | |||
1128 | } | 1128 | } |
1129 | impl BoxPat { | 1129 | impl BoxPat { |
1130 | pub fn box_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![box]) } | 1130 | pub fn box_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![box]) } |
1131 | pub fn path(&self) -> Option<Path> { support::child(&self.syntax) } | 1131 | pub fn pat(&self) -> Option<Pat> { support::child(&self.syntax) } |
1132 | } | 1132 | } |
1133 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1133 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1134 | pub struct DotDotPat { | 1134 | pub struct DotDotPat { |