aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_assists/src/handlers/add_explicit_type.rs2
-rw-r--r--crates/ra_assists/src/handlers/fill_match_arms.rs2
-rw-r--r--crates/ra_assists/src/handlers/inline_local_variable.rs2
-rw-r--r--crates/ra_assists/src/handlers/reorder_fields.rs2
-rw-r--r--crates/ra_hir/src/code_model.rs2
-rw-r--r--crates/ra_hir/src/semantics.rs6
-rw-r--r--crates/ra_hir/src/semantics/source_to_def.rs2
-rw-r--r--crates/ra_hir/src/source_analyzer.rs2
-rw-r--r--crates/ra_hir_def/src/body/lower.rs2
-rw-r--r--crates/ra_ide/src/completion/completion_context.rs2
-rw-r--r--crates/ra_ide/src/completion/patterns.rs2
-rw-r--r--crates/ra_ide/src/display/navigation_target.rs4
-rw-r--r--crates/ra_ide/src/inlay_hints.rs14
-rw-r--r--crates/ra_ide/src/references.rs14
-rw-r--r--crates/ra_ide/src/syntax_highlighting.rs2
-rw-r--r--crates/ra_ide_db/src/defs.rs4
-rw-r--r--crates/ra_mbe/src/tests.rs4
-rw-r--r--crates/ra_parser/src/grammar/patterns.rs2
-rw-r--r--crates/ra_parser/src/syntax_kind/generated.rs2
-rw-r--r--crates/ra_ssr/src/parsing.rs2
-rw-r--r--crates/ra_ssr/src/resolving.rs2
-rw-r--r--crates/ra_ssr/src/tests.rs2
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs26
-rw-r--r--crates/ra_syntax/src/ast/make.rs4
-rw-r--r--crates/ra_syntax/src/ast/node_ext.rs6
-rw-r--r--crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast36
-rw-r--r--crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.rast4
-rw-r--r--crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/err/0019_let_recover.rast6
-rw-r--r--crates/ra_syntax/test_data/parser/err/0021_incomplete_param.rast4
-rw-r--r--crates/ra_syntax/test_data/parser/err/0025_nope.rast4
-rw-r--r--crates/ra_syntax/test_data/parser/err/0029_field_completion.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/err/0031_block_inner_attrs.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.rast6
-rw-r--r--crates/ra_syntax/test_data/parser/err/0039_lambda_recovery.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/fragments/pattern/ok/0000_enum.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.rast4
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.rast4
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rast10
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0088_break_ambiguity.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.rast8
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.rast4
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.rast4
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0109_label.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.rast6
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0112_bind_pat.rast14
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0123_param_list_vararg.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.rast12
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.rast6
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0138_associated_type_bounds.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.rast8
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rast44
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0154_fn_pointer_param_ident_path.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0155_closure_params.rast8
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0156_fn_def_param.rast4
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0028_operator_binding_power.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0029_range_forms.rast4
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0030_traits.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0031_extern.rast94
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0033_label_break.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast36
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0041_raw_keywords.rast4
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0048_compound_assignment.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0050_async_block_as_argument.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast8
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0052_for_range_block.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0057_loop_in_call.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0063_trait_fn_patterns.rast14
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0063_variadic_fun.rast6
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast12
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0067_where_for_pred.rast2
-rw-r--r--xtask/src/ast_src.rs2
-rw-r--r--xtask/src/codegen/rust.ungram4
83 files changed, 277 insertions, 273 deletions
diff --git a/crates/ra_assists/src/handlers/add_explicit_type.rs b/crates/ra_assists/src/handlers/add_explicit_type.rs
index d8b0af0f5..135a2ac9c 100644
--- a/crates/ra_assists/src/handlers/add_explicit_type.rs
+++ b/crates/ra_assists/src/handlers/add_explicit_type.rs
@@ -27,7 +27,7 @@ pub(crate) fn add_explicit_type(acc: &mut Assists, ctx: &AssistContext) -> Optio
27 let expr = let_stmt.initializer()?; 27 let expr = let_stmt.initializer()?;
28 // Must be a binding 28 // Must be a binding
29 let pat = match let_stmt.pat()? { 29 let pat = match let_stmt.pat()? {
30 ast::Pat::BindPat(bind_pat) => bind_pat, 30 ast::Pat::IdentPat(bind_pat) => bind_pat,
31 _ => return None, 31 _ => return None,
32 }; 32 };
33 let pat_range = pat.syntax().text_range(); 33 let pat_range = pat.syntax().text_range();
diff --git a/crates/ra_assists/src/handlers/fill_match_arms.rs b/crates/ra_assists/src/handlers/fill_match_arms.rs
index 36658f104..b2e14f9d7 100644
--- a/crates/ra_assists/src/handlers/fill_match_arms.rs
+++ b/crates/ra_assists/src/handlers/fill_match_arms.rs
@@ -150,7 +150,7 @@ fn does_pat_match_variant(pat: &Pat, var: &Pat) -> bool {
150 let first_node_text = |pat: &Pat| pat.syntax().first_child().map(|node| node.text()); 150 let first_node_text = |pat: &Pat| pat.syntax().first_child().map(|node| node.text());
151 151
152 let pat_head = match pat { 152 let pat_head = match pat {
153 Pat::BindPat(bind_pat) => { 153 Pat::IdentPat(bind_pat) => {
154 if let Some(p) = bind_pat.pat() { 154 if let Some(p) = bind_pat.pat() {
155 first_node_text(&p) 155 first_node_text(&p)
156 } else { 156 } else {
diff --git a/crates/ra_assists/src/handlers/inline_local_variable.rs b/crates/ra_assists/src/handlers/inline_local_variable.rs
index 2fdfabaf5..3c58020f8 100644
--- a/crates/ra_assists/src/handlers/inline_local_variable.rs
+++ b/crates/ra_assists/src/handlers/inline_local_variable.rs
@@ -29,7 +29,7 @@ use crate::{
29pub(crate) fn inline_local_variable(acc: &mut Assists, ctx: &AssistContext) -> Option<()> { 29pub(crate) fn inline_local_variable(acc: &mut Assists, ctx: &AssistContext) -> Option<()> {
30 let let_stmt = ctx.find_node_at_offset::<ast::LetStmt>()?; 30 let let_stmt = ctx.find_node_at_offset::<ast::LetStmt>()?;
31 let bind_pat = match let_stmt.pat()? { 31 let bind_pat = match let_stmt.pat()? {
32 ast::Pat::BindPat(pat) => pat, 32 ast::Pat::IdentPat(pat) => pat,
33 _ => return None, 33 _ => return None,
34 }; 34 };
35 if bind_pat.mut_token().is_some() { 35 if bind_pat.mut_token().is_some() {
diff --git a/crates/ra_assists/src/handlers/reorder_fields.rs b/crates/ra_assists/src/handlers/reorder_fields.rs
index 6a19a4002..c9b743a06 100644
--- a/crates/ra_assists/src/handlers/reorder_fields.rs
+++ b/crates/ra_assists/src/handlers/reorder_fields.rs
@@ -57,7 +57,7 @@ fn reorder<R: AstNode>(acc: &mut Assists, ctx: &AssistContext) -> Option<()> {
57fn get_fields_kind(node: &SyntaxNode) -> Vec<SyntaxKind> { 57fn get_fields_kind(node: &SyntaxNode) -> Vec<SyntaxKind> {
58 match node.kind() { 58 match node.kind() {
59 RECORD_EXPR => vec![RECORD_EXPR_FIELD], 59 RECORD_EXPR => vec![RECORD_EXPR_FIELD],
60 RECORD_PAT => vec![RECORD_PAT_FIELD, BIND_PAT], 60 RECORD_PAT => vec![RECORD_PAT_FIELD, IDENT_PAT],
61 _ => vec![], 61 _ => vec![],
62 } 62 }
63} 63}
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs
index 36c0bdc9e..27cdabea0 100644
--- a/crates/ra_hir/src/code_model.rs
+++ b/crates/ra_hir/src/code_model.rs
@@ -1002,7 +1002,7 @@ impl Local {
1002 Type::new(db, krate, def, ty) 1002 Type::new(db, krate, def, ty)
1003 } 1003 }
1004 1004
1005 pub fn source(self, db: &dyn HirDatabase) -> InFile<Either<ast::BindPat, ast::SelfParam>> { 1005 pub fn source(self, db: &dyn HirDatabase) -> InFile<Either<ast::IdentPat, ast::SelfParam>> {
1006 let (_body, source_map) = db.body_with_source_map(self.parent.into()); 1006 let (_body, source_map) = db.body_with_source_map(self.parent.into());
1007 let src = source_map.pat_syntax(self.pat_id).unwrap(); // Hmm... 1007 let src = source_map.pat_syntax(self.pat_id).unwrap(); // Hmm...
1008 let root = src.file_syntax(db.upcast()); 1008 let root = src.file_syntax(db.upcast());
diff --git a/crates/ra_hir/src/semantics.rs b/crates/ra_hir/src/semantics.rs
index 44c71857e..307b336f2 100644
--- a/crates/ra_hir/src/semantics.rs
+++ b/crates/ra_hir/src/semantics.rs
@@ -236,7 +236,7 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> {
236 self.imp.lower_path(path) 236 self.imp.lower_path(path)
237 } 237 }
238 238
239 pub fn resolve_bind_pat_to_const(&self, pat: &ast::BindPat) -> Option<ModuleDef> { 239 pub fn resolve_bind_pat_to_const(&self, pat: &ast::IdentPat) -> Option<ModuleDef> {
240 self.imp.resolve_bind_pat_to_const(pat) 240 self.imp.resolve_bind_pat_to_const(pat)
241 } 241 }
242 242
@@ -452,7 +452,7 @@ impl<'db> SemanticsImpl<'db> {
452 Path::from_src(path.clone(), &Hygiene::new(self.db.upcast(), src.file_id.into())) 452 Path::from_src(path.clone(), &Hygiene::new(self.db.upcast(), src.file_id.into()))
453 } 453 }
454 454
455 fn resolve_bind_pat_to_const(&self, pat: &ast::BindPat) -> Option<ModuleDef> { 455 fn resolve_bind_pat_to_const(&self, pat: &ast::IdentPat) -> Option<ModuleDef> {
456 self.analyze(pat.syntax()).resolve_bind_pat_to_const(self.db, pat) 456 self.analyze(pat.syntax()).resolve_bind_pat_to_const(self.db, pat)
457 } 457 }
458 458
@@ -594,7 +594,7 @@ to_def_impls![
594 (crate::EnumVariant, ast::Variant, enum_variant_to_def), 594 (crate::EnumVariant, ast::Variant, enum_variant_to_def),
595 (crate::TypeParam, ast::TypeParam, type_param_to_def), 595 (crate::TypeParam, ast::TypeParam, type_param_to_def),
596 (crate::MacroDef, ast::MacroCall, macro_call_to_def), // this one is dubious, not all calls are macros 596 (crate::MacroDef, ast::MacroCall, macro_call_to_def), // this one is dubious, not all calls are macros
597 (crate::Local, ast::BindPat, bind_pat_to_def), 597 (crate::Local, ast::IdentPat, bind_pat_to_def),
598]; 598];
599 599
600fn find_root(node: &SyntaxNode) -> SyntaxNode { 600fn find_root(node: &SyntaxNode) -> SyntaxNode {
diff --git a/crates/ra_hir/src/semantics/source_to_def.rs b/crates/ra_hir/src/semantics/source_to_def.rs
index d1994e2e7..863e8e5ff 100644
--- a/crates/ra_hir/src/semantics/source_to_def.rs
+++ b/crates/ra_hir/src/semantics/source_to_def.rs
@@ -106,7 +106,7 @@ impl SourceToDefCtx<'_, '_> {
106 } 106 }
107 pub(super) fn bind_pat_to_def( 107 pub(super) fn bind_pat_to_def(
108 &mut self, 108 &mut self,
109 src: InFile<ast::BindPat>, 109 src: InFile<ast::IdentPat>,
110 ) -> Option<(DefWithBodyId, PatId)> { 110 ) -> Option<(DefWithBodyId, PatId)> {
111 let container = self.find_pat_container(src.as_ref().map(|it| it.syntax()))?; 111 let container = self.find_pat_container(src.as_ref().map(|it| it.syntax()))?;
112 let (_body, source_map) = self.db.body_with_source_map(container); 112 let (_body, source_map) = self.db.body_with_source_map(container);
diff --git a/crates/ra_hir/src/source_analyzer.rs b/crates/ra_hir/src/source_analyzer.rs
index 37b33cc4f..d0cb62ef0 100644
--- a/crates/ra_hir/src/source_analyzer.rs
+++ b/crates/ra_hir/src/source_analyzer.rs
@@ -202,7 +202,7 @@ impl SourceAnalyzer {
202 pub(crate) fn resolve_bind_pat_to_const( 202 pub(crate) fn resolve_bind_pat_to_const(
203 &self, 203 &self,
204 db: &dyn HirDatabase, 204 db: &dyn HirDatabase,
205 pat: &ast::BindPat, 205 pat: &ast::IdentPat,
206 ) -> Option<ModuleDef> { 206 ) -> Option<ModuleDef> {
207 let pat_id = self.pat_id(&pat.clone().into())?; 207 let pat_id = self.pat_id(&pat.clone().into())?;
208 let body = self.body.as_ref()?; 208 let body = self.body.as_ref()?;
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs
index 7b988ae33..3f210547e 100644
--- a/crates/ra_hir_def/src/body/lower.rs
+++ b/crates/ra_hir_def/src/body/lower.rs
@@ -723,7 +723,7 @@ impl ExprCollector<'_> {
723 723
724 fn collect_pat(&mut self, pat: ast::Pat) -> PatId { 724 fn collect_pat(&mut self, pat: ast::Pat) -> PatId {
725 let pattern = match &pat { 725 let pattern = match &pat {
726 ast::Pat::BindPat(bp) => { 726 ast::Pat::IdentPat(bp) => {
727 let name = bp.name().map(|nr| nr.as_name()).unwrap_or_else(Name::missing); 727 let name = bp.name().map(|nr| nr.as_name()).unwrap_or_else(Name::missing);
728 let annotation = 728 let annotation =
729 BindingAnnotation::new(bp.mut_token().is_some(), bp.ref_token().is_some()); 729 BindingAnnotation::new(bp.mut_token().is_some(), bp.ref_token().is_some());
diff --git a/crates/ra_ide/src/completion/completion_context.rs b/crates/ra_ide/src/completion/completion_context.rs
index 29955754c..6b03b30bb 100644
--- a/crates/ra_ide/src/completion/completion_context.rs
+++ b/crates/ra_ide/src/completion/completion_context.rs
@@ -275,7 +275,7 @@ impl<'a> CompletionContext<'a> {
275 // Otherwise, see if this is a declaration. We can use heuristics to 275 // Otherwise, see if this is a declaration. We can use heuristics to
276 // suggest declaration names, see `CompletionKind::Magic`. 276 // suggest declaration names, see `CompletionKind::Magic`.
277 if let Some(name) = find_node_at_offset::<ast::Name>(&file_with_fake_ident, offset) { 277 if let Some(name) = find_node_at_offset::<ast::Name>(&file_with_fake_ident, offset) {
278 if let Some(bind_pat) = name.syntax().ancestors().find_map(ast::BindPat::cast) { 278 if let Some(bind_pat) = name.syntax().ancestors().find_map(ast::IdentPat::cast) {
279 self.is_pat_binding_or_const = true; 279 self.is_pat_binding_or_const = true;
280 if bind_pat.at_token().is_some() 280 if bind_pat.at_token().is_some()
281 || bind_pat.ref_token().is_some() 281 || bind_pat.ref_token().is_some()
diff --git a/crates/ra_ide/src/completion/patterns.rs b/crates/ra_ide/src/completion/patterns.rs
index 9e654b373..7c4feff6d 100644
--- a/crates/ra_ide/src/completion/patterns.rs
+++ b/crates/ra_ide/src/completion/patterns.rs
@@ -44,7 +44,7 @@ fn test_has_block_expr_parent() {
44} 44}
45 45
46pub(crate) fn has_bind_pat_parent(element: SyntaxElement) -> bool { 46pub(crate) fn has_bind_pat_parent(element: SyntaxElement) -> bool {
47 element.ancestors().find(|it| it.kind() == BIND_PAT).is_some() 47 element.ancestors().find(|it| it.kind() == IDENT_PAT).is_some()
48} 48}
49#[test] 49#[test]
50fn test_has_bind_pat_parent() { 50fn test_has_bind_pat_parent() {
diff --git a/crates/ra_ide/src/display/navigation_target.rs b/crates/ra_ide/src/display/navigation_target.rs
index 45fbc86ef..d70e33e72 100644
--- a/crates/ra_ide/src/display/navigation_target.rs
+++ b/crates/ra_ide/src/display/navigation_target.rs
@@ -7,7 +7,7 @@ use ra_ide_db::{defs::Definition, RootDatabase};
7use ra_syntax::{ 7use ra_syntax::{
8 ast::{self, DocCommentsOwner, NameOwner}, 8 ast::{self, DocCommentsOwner, NameOwner},
9 match_ast, AstNode, SmolStr, 9 match_ast, AstNode, SmolStr,
10 SyntaxKind::{self, BIND_PAT, TYPE_PARAM}, 10 SyntaxKind::{self, IDENT_PAT, TYPE_PARAM},
11 TextRange, 11 TextRange,
12}; 12};
13 13
@@ -339,7 +339,7 @@ impl ToNav for hir::Local {
339 NavigationTarget { 339 NavigationTarget {
340 file_id: full_range.file_id, 340 file_id: full_range.file_id,
341 name, 341 name,
342 kind: BIND_PAT, 342 kind: IDENT_PAT,
343 full_range: full_range.range, 343 full_range: full_range.range,
344 focus_range: None, 344 focus_range: None,
345 container_name: None, 345 container_name: None,
diff --git a/crates/ra_ide/src/inlay_hints.rs b/crates/ra_ide/src/inlay_hints.rs
index 4bbbcd258..1bacead63 100644
--- a/crates/ra_ide/src/inlay_hints.rs
+++ b/crates/ra_ide/src/inlay_hints.rs
@@ -78,7 +78,7 @@ pub(crate) fn inlay_hints(
78 match node { 78 match node {
79 ast::CallExpr(it) => { get_param_name_hints(&mut res, &sema, config, ast::Expr::from(it)); }, 79 ast::CallExpr(it) => { get_param_name_hints(&mut res, &sema, config, ast::Expr::from(it)); },
80 ast::MethodCallExpr(it) => { get_param_name_hints(&mut res, &sema, config, ast::Expr::from(it)); }, 80 ast::MethodCallExpr(it) => { get_param_name_hints(&mut res, &sema, config, ast::Expr::from(it)); },
81 ast::BindPat(it) => { get_bind_pat_hints(&mut res, &sema, config, it); }, 81 ast::IdentPat(it) => { get_bind_pat_hints(&mut res, &sema, config, it); },
82 _ => (), 82 _ => (),
83 } 83 }
84 } 84 }
@@ -161,7 +161,7 @@ fn get_param_name_hints(
161 Either::Left(self_param) => Some((self_param.to_string(), arg)), 161 Either::Left(self_param) => Some((self_param.to_string(), arg)),
162 Either::Right(pat) => { 162 Either::Right(pat) => {
163 let param_name = match pat { 163 let param_name = match pat {
164 ast::Pat::BindPat(it) => it.name()?.to_string(), 164 ast::Pat::IdentPat(it) => it.name()?.to_string(),
165 it => it.to_string(), 165 it => it.to_string(),
166 }; 166 };
167 Some((param_name, arg)) 167 Some((param_name, arg))
@@ -182,7 +182,7 @@ fn get_bind_pat_hints(
182 acc: &mut Vec<InlayHint>, 182 acc: &mut Vec<InlayHint>,
183 sema: &Semantics<RootDatabase>, 183 sema: &Semantics<RootDatabase>,
184 config: &InlayHintsConfig, 184 config: &InlayHintsConfig,
185 pat: ast::BindPat, 185 pat: ast::IdentPat,
186) -> Option<()> { 186) -> Option<()> {
187 if !config.type_hints { 187 if !config.type_hints {
188 return None; 188 return None;
@@ -202,7 +202,7 @@ fn get_bind_pat_hints(
202 Some(()) 202 Some(())
203} 203}
204 204
205fn pat_is_enum_variant(db: &RootDatabase, bind_pat: &ast::BindPat, pat_ty: &Type) -> bool { 205fn pat_is_enum_variant(db: &RootDatabase, bind_pat: &ast::IdentPat, pat_ty: &Type) -> bool {
206 if let Some(Adt::Enum(enum_data)) = pat_ty.as_adt() { 206 if let Some(Adt::Enum(enum_data)) = pat_ty.as_adt() {
207 let pat_text = bind_pat.to_string(); 207 let pat_text = bind_pat.to_string();
208 enum_data 208 enum_data
@@ -215,7 +215,11 @@ fn pat_is_enum_variant(db: &RootDatabase, bind_pat: &ast::BindPat, pat_ty: &Type
215 } 215 }
216} 216}
217 217
218fn should_not_display_type_hint(db: &RootDatabase, bind_pat: &ast::BindPat, pat_ty: &Type) -> bool { 218fn should_not_display_type_hint(
219 db: &RootDatabase,
220 bind_pat: &ast::IdentPat,
221 pat_ty: &Type,
222) -> bool {
219 if pat_ty.is_unknown() { 223 if pat_ty.is_unknown() {
220 return true; 224 return true;
221 } 225 }
diff --git a/crates/ra_ide/src/references.rs b/crates/ra_ide/src/references.rs
index 519e4bf1a..cf456630a 100644
--- a/crates/ra_ide/src/references.rs
+++ b/crates/ra_ide/src/references.rs
@@ -150,7 +150,7 @@ fn decl_access(def: &Definition, syntax: &SyntaxNode, range: TextRange) -> Optio
150 let stmt = find_node_at_offset::<ast::LetStmt>(syntax, range.start())?; 150 let stmt = find_node_at_offset::<ast::LetStmt>(syntax, range.start())?;
151 if stmt.initializer().is_some() { 151 if stmt.initializer().is_some() {
152 let pat = stmt.pat()?; 152 let pat = stmt.pat()?;
153 if let ast::Pat::BindPat(it) = pat { 153 if let ast::Pat::IdentPat(it) = pat {
154 if it.mut_token().is_some() { 154 if it.mut_token().is_some() {
155 return Some(ReferenceAccess::Write); 155 return Some(ReferenceAccess::Write);
156 } 156 }
@@ -290,7 +290,7 @@ fn main() {
290 ); 290 );
291 check_result( 291 check_result(
292 refs, 292 refs,
293 "i BIND_PAT FileId(1) 24..25 Other Write", 293 "i IDENT_PAT FileId(1) 24..25 Other Write",
294 &[ 294 &[
295 "FileId(1) 50..51 Other Write", 295 "FileId(1) 50..51 Other Write",
296 "FileId(1) 54..55 Other Read", 296 "FileId(1) 54..55 Other Read",
@@ -316,7 +316,7 @@ fn bar() {
316 ); 316 );
317 check_result( 317 check_result(
318 refs, 318 refs,
319 "spam BIND_PAT FileId(1) 19..23 Other", 319 "spam IDENT_PAT FileId(1) 19..23 Other",
320 &["FileId(1) 34..38 Other Read", "FileId(1) 41..45 Other Read"], 320 &["FileId(1) 34..38 Other Read", "FileId(1) 41..45 Other Read"],
321 ); 321 );
322 } 322 }
@@ -330,7 +330,7 @@ fn foo(i : u32) -> u32 {
330} 330}
331"#, 331"#,
332 ); 332 );
333 check_result(refs, "i BIND_PAT FileId(1) 7..8 Other", &["FileId(1) 29..30 Other Read"]); 333 check_result(refs, "i IDENT_PAT FileId(1) 7..8 Other", &["FileId(1) 29..30 Other Read"]);
334 } 334 }
335 335
336 #[test] 336 #[test]
@@ -342,7 +342,7 @@ fn foo(i<|> : u32) -> u32 {
342} 342}
343"#, 343"#,
344 ); 344 );
345 check_result(refs, "i BIND_PAT FileId(1) 7..8 Other", &["FileId(1) 29..30 Other Read"]); 345 check_result(refs, "i IDENT_PAT FileId(1) 7..8 Other", &["FileId(1) 29..30 Other Read"]);
346 } 346 }
347 347
348 #[test] 348 #[test]
@@ -559,7 +559,7 @@ fn foo() {
559 ); 559 );
560 check_result( 560 check_result(
561 refs, 561 refs,
562 "i BIND_PAT FileId(1) 23..24 Other Write", 562 "i IDENT_PAT FileId(1) 23..24 Other Write",
563 &["FileId(1) 34..35 Other Write", "FileId(1) 38..39 Other Read"], 563 &["FileId(1) 34..35 Other Write", "FileId(1) 38..39 Other Read"],
564 ); 564 );
565 } 565 }
@@ -595,7 +595,7 @@ fn foo() {
595} 595}
596"#, 596"#,
597 ); 597 );
598 check_result(refs, "i BIND_PAT FileId(1) 19..20 Other", &["FileId(1) 26..27 Other Write"]); 598 check_result(refs, "i IDENT_PAT FileId(1) 19..20 Other", &["FileId(1) 26..27 Other Write"]);
599 } 599 }
600 600
601 #[test] 601 #[test]
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs
index e3a96f9d5..027fdecd0 100644
--- a/crates/ra_ide/src/syntax_highlighting.rs
+++ b/crates/ra_ide/src/syntax_highlighting.rs
@@ -717,7 +717,7 @@ fn highlight_name_by_syntax(name: ast::Name) -> Highlight {
717 CONST => HighlightTag::Constant, 717 CONST => HighlightTag::Constant,
718 STATIC => HighlightTag::Static, 718 STATIC => HighlightTag::Static,
719 VARIANT => HighlightTag::EnumVariant, 719 VARIANT => HighlightTag::EnumVariant,
720 BIND_PAT => HighlightTag::Local, 720 IDENT_PAT => HighlightTag::Local,
721 _ => default, 721 _ => default,
722 }; 722 };
723 723
diff --git a/crates/ra_ide_db/src/defs.rs b/crates/ra_ide_db/src/defs.rs
index 6bf80a34c..66c048714 100644
--- a/crates/ra_ide_db/src/defs.rs
+++ b/crates/ra_ide_db/src/defs.rs
@@ -111,7 +111,7 @@ pub fn classify_name(sema: &Semantics<RootDatabase>, name: &ast::Name) -> Option
111 111
112 let parent = name.syntax().parent()?; 112 let parent = name.syntax().parent()?;
113 113
114 if let Some(bind_pat) = ast::BindPat::cast(parent.clone()) { 114 if let Some(bind_pat) = ast::IdentPat::cast(parent.clone()) {
115 if let Some(def) = sema.resolve_bind_pat_to_const(&bind_pat) { 115 if let Some(def) = sema.resolve_bind_pat_to_const(&bind_pat) {
116 return Some(NameClass::ConstReference(Definition::ModuleDef(def))); 116 return Some(NameClass::ConstReference(Definition::ModuleDef(def)));
117 } 117 }
@@ -128,7 +128,7 @@ pub fn classify_name(sema: &Semantics<RootDatabase>, name: &ast::Name) -> Option
128 128
129 Some(NameClass::Definition(name_ref_class.definition())) 129 Some(NameClass::Definition(name_ref_class.definition()))
130 }, 130 },
131 ast::BindPat(it) => { 131 ast::IdentPat(it) => {
132 let local = sema.to_def(&it)?; 132 let local = sema.to_def(&it)?;
133 133
134 if let Some(record_field_pat) = it.syntax().parent().and_then(ast::RecordPatField::cast) { 134 if let Some(record_field_pat) = it.syntax().parent().and_then(ast::RecordPatField::cast) {
diff --git a/crates/ra_mbe/src/tests.rs b/crates/ra_mbe/src/tests.rs
index 707e84f42..286983d60 100644
--- a/crates/ra_mbe/src/tests.rs
+++ b/crates/ra_mbe/src/tests.rs
@@ -625,7 +625,7 @@ fn test_tt_to_stmts() {
625 r#"[email protected] 625 r#"[email protected]
626 [email protected] 626 [email protected]
627 [email protected] "let" 627 [email protected] "let"
628 BIN[email protected] 628 IDENT[email protected]
629 [email protected] 629 [email protected]
630 [email protected] "a" 630 [email protected] "a"
631 [email protected] "=" 631 [email protected] "="
@@ -1116,7 +1116,7 @@ fn test_vec() {
1116 [email protected] "{" 1116 [email protected] "{"
1117 [email protected] 1117 [email protected]
1118 [email protected] "let" 1118 [email protected] "let"
1119 BIN[email protected] 1119 IDENT[email protected]
1120 [email protected] "mut" 1120 [email protected] "mut"
1121 [email protected] 1121 [email protected]
1122 [email protected] "v" 1122 [email protected] "v"
diff --git a/crates/ra_parser/src/grammar/patterns.rs b/crates/ra_parser/src/grammar/patterns.rs
index 51e413cd6..623e8d6d4 100644
--- a/crates/ra_parser/src/grammar/patterns.rs
+++ b/crates/ra_parser/src/grammar/patterns.rs
@@ -361,7 +361,7 @@ fn bind_pat(p: &mut Parser, with_at: bool) -> CompletedMarker {
361 if with_at && p.eat(T![@]) { 361 if with_at && p.eat(T![@]) {
362 pattern_single(p); 362 pattern_single(p);
363 } 363 }
364 m.complete(p, BIND_PAT) 364 m.complete(p, IDENT_PAT)
365} 365}
366 366
367// test box_pat 367// test box_pat
diff --git a/crates/ra_parser/src/syntax_kind/generated.rs b/crates/ra_parser/src/syntax_kind/generated.rs
index c24611f4b..b5dda25a9 100644
--- a/crates/ra_parser/src/syntax_kind/generated.rs
+++ b/crates/ra_parser/src/syntax_kind/generated.rs
@@ -156,7 +156,7 @@ pub enum SyntaxKind {
156 PAREN_PAT, 156 PAREN_PAT,
157 REF_PAT, 157 REF_PAT,
158 BOX_PAT, 158 BOX_PAT,
159 BIND_PAT, 159 IDENT_PAT,
160 WILDCARD_PAT, 160 WILDCARD_PAT,
161 DOT_DOT_PAT, 161 DOT_DOT_PAT,
162 PATH_PAT, 162 PATH_PAT,
diff --git a/crates/ra_ssr/src/parsing.rs b/crates/ra_ssr/src/parsing.rs
index 4e046910c..f455eb5b7 100644
--- a/crates/ra_ssr/src/parsing.rs
+++ b/crates/ra_ssr/src/parsing.rs
@@ -109,7 +109,7 @@ impl RuleBuilder {
109 // path refers to semantically the same thing, whereas the non-path-based rules could match 109 // path refers to semantically the same thing, whereas the non-path-based rules could match
110 // anything. Specifically, if we have a rule like `foo ==>> bar` we only want to match the 110 // anything. Specifically, if we have a rule like `foo ==>> bar` we only want to match the
111 // `foo` that is in the current scope, not any `foo`. However "foo" can be parsed as a 111 // `foo` that is in the current scope, not any `foo`. However "foo" can be parsed as a
112 // pattern (BIND_PAT -> NAME -> IDENT). Allowing such a rule through would result in 112 // pattern (IDENT_PAT -> NAME -> IDENT). Allowing such a rule through would result in
113 // renaming everything called `foo` to `bar`. It'd also be slow, since without a path, we'd 113 // renaming everything called `foo` to `bar`. It'd also be slow, since without a path, we'd
114 // have to use the slow-scan search mechanism. 114 // have to use the slow-scan search mechanism.
115 if self.rules.iter().any(|rule| contains_path(&rule.pattern)) { 115 if self.rules.iter().any(|rule| contains_path(&rule.pattern)) {
diff --git a/crates/ra_ssr/src/resolving.rs b/crates/ra_ssr/src/resolving.rs
index c2fd3b905..6f62000f4 100644
--- a/crates/ra_ssr/src/resolving.rs
+++ b/crates/ra_ssr/src/resolving.rs
@@ -198,7 +198,7 @@ fn pick_node_for_resolution(node: SyntaxNode) -> SyntaxNode {
198 return n; 198 return n;
199 } 199 }
200 } 200 }
201 SyntaxKind::LET_STMT | SyntaxKind::BIND_PAT => { 201 SyntaxKind::LET_STMT | SyntaxKind::IDENT_PAT => {
202 if let Some(next) = node.next_sibling() { 202 if let Some(next) = node.next_sibling() {
203 return pick_node_for_resolution(next); 203 return pick_node_for_resolution(next);
204 } 204 }
diff --git a/crates/ra_ssr/src/tests.rs b/crates/ra_ssr/src/tests.rs
index a4fa2cb44..2ae03c64c 100644
--- a/crates/ra_ssr/src/tests.rs
+++ b/crates/ra_ssr/src/tests.rs
@@ -924,7 +924,7 @@ fn ufcs_matches_method_call() {
924fn pattern_is_a_single_segment_path() { 924fn pattern_is_a_single_segment_path() {
925 mark::check!(pattern_is_a_single_segment_path); 925 mark::check!(pattern_is_a_single_segment_path);
926 // The first function should not be altered because the `foo` in scope at the cursor position is 926 // The first function should not be altered because the `foo` in scope at the cursor position is
927 // a different `foo`. This case is special because "foo" can be parsed as a pattern (BIND_PAT -> 927 // a different `foo`. This case is special because "foo" can be parsed as a pattern (IDENT_PAT ->
928 // NAME -> IDENT), which contains no path. If we're not careful we'll end up matching the `foo` 928 // NAME -> IDENT), which contains no path. If we're not careful we'll end up matching the `foo`
929 // in `let foo` from the first function. Whether we should match the `let foo` in the second 929 // in `let foo` from the first function. Whether we should match the `let foo` in the second
930 // function is less clear. At the moment, we don't. Doing so sounds like a rename operation, 930 // function is less clear. At the moment, we don't. Doing so sounds like a rename operation,
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs
index f6b3fa6ef..231a0f727 100644
--- a/crates/ra_syntax/src/ast/generated/nodes.rs
+++ b/crates/ra_syntax/src/ast/generated/nodes.rs
@@ -1111,12 +1111,12 @@ impl TypeBound {
1111 pub fn ty(&self) -> Option<Type> { support::child(&self.syntax) } 1111 pub fn ty(&self) -> Option<Type> { support::child(&self.syntax) }
1112} 1112}
1113#[derive(Debug, Clone, PartialEq, Eq, Hash)] 1113#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1114pub struct BindPat { 1114pub struct IdentPat {
1115 pub(crate) syntax: SyntaxNode, 1115 pub(crate) syntax: SyntaxNode,
1116} 1116}
1117impl ast::AttrsOwner for BindPat {} 1117impl ast::AttrsOwner for IdentPat {}
1118impl ast::NameOwner for BindPat {} 1118impl ast::NameOwner for IdentPat {}
1119impl BindPat { 1119impl IdentPat {
1120 pub fn ref_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![ref]) } 1120 pub fn ref_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![ref]) }
1121 pub fn mut_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![mut]) } 1121 pub fn mut_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![mut]) }
1122 pub fn at_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![@]) } 1122 pub fn at_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![@]) }
@@ -1335,7 +1335,7 @@ pub enum Stmt {
1335} 1335}
1336#[derive(Debug, Clone, PartialEq, Eq, Hash)] 1336#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1337pub enum Pat { 1337pub enum Pat {
1338 BindPat(BindPat), 1338 IdentPat(IdentPat),
1339 BoxPat(BoxPat), 1339 BoxPat(BoxPat),
1340 DotDotPat(DotDotPat), 1340 DotDotPat(DotDotPat),
1341 LiteralPat(LiteralPat), 1341 LiteralPat(LiteralPat),
@@ -2556,8 +2556,8 @@ impl AstNode for TypeBound {
2556 } 2556 }
2557 fn syntax(&self) -> &SyntaxNode { &self.syntax } 2557 fn syntax(&self) -> &SyntaxNode { &self.syntax }
2558} 2558}
2559impl AstNode for BindPat { 2559impl AstNode for IdentPat {
2560 fn can_cast(kind: SyntaxKind) -> bool { kind == BIND_PAT } 2560 fn can_cast(kind: SyntaxKind) -> bool { kind == IDENT_PAT }
2561 fn cast(syntax: SyntaxNode) -> Option<Self> { 2561 fn cast(syntax: SyntaxNode) -> Option<Self> {
2562 if Self::can_cast(syntax.kind()) { 2562 if Self::can_cast(syntax.kind()) {
2563 Some(Self { syntax }) 2563 Some(Self { syntax })
@@ -3136,8 +3136,8 @@ impl From<Item> for Stmt {
3136impl From<LetStmt> for Stmt { 3136impl From<LetStmt> for Stmt {
3137 fn from(node: LetStmt) -> Stmt { Stmt::LetStmt(node) } 3137 fn from(node: LetStmt) -> Stmt { Stmt::LetStmt(node) }
3138} 3138}
3139impl From<BindPat> for Pat { 3139impl From<IdentPat> for Pat {
3140 fn from(node: BindPat) -> Pat { Pat::BindPat(node) } 3140 fn from(node: IdentPat) -> Pat { Pat::IdentPat(node) }
3141} 3141}
3142impl From<BoxPat> for Pat { 3142impl From<BoxPat> for Pat {
3143 fn from(node: BoxPat) -> Pat { Pat::BoxPat(node) } 3143 fn from(node: BoxPat) -> Pat { Pat::BoxPat(node) }
@@ -3184,7 +3184,7 @@ impl From<TupleStructPat> for Pat {
3184impl AstNode for Pat { 3184impl AstNode for Pat {
3185 fn can_cast(kind: SyntaxKind) -> bool { 3185 fn can_cast(kind: SyntaxKind) -> bool {
3186 match kind { 3186 match kind {
3187 BIND_PAT | BOX_PAT | DOT_DOT_PAT | LITERAL_PAT | MACRO_PAT | OR_PAT | PAREN_PAT 3187 IDENT_PAT | BOX_PAT | DOT_DOT_PAT | LITERAL_PAT | MACRO_PAT | OR_PAT | PAREN_PAT
3188 | PATH_PAT | WILDCARD_PAT | RANGE_PAT | RECORD_PAT | REF_PAT | SLICE_PAT 3188 | PATH_PAT | WILDCARD_PAT | RANGE_PAT | RECORD_PAT | REF_PAT | SLICE_PAT
3189 | TUPLE_PAT | TUPLE_STRUCT_PAT => true, 3189 | TUPLE_PAT | TUPLE_STRUCT_PAT => true,
3190 _ => false, 3190 _ => false,
@@ -3192,7 +3192,7 @@ impl AstNode for Pat {
3192 } 3192 }
3193 fn cast(syntax: SyntaxNode) -> Option<Self> { 3193 fn cast(syntax: SyntaxNode) -> Option<Self> {
3194 let res = match syntax.kind() { 3194 let res = match syntax.kind() {
3195 BIND_PAT => Pat::BindPat(BindPat { syntax }), 3195 IDENT_PAT => Pat::IdentPat(IdentPat { syntax }),
3196 BOX_PAT => Pat::BoxPat(BoxPat { syntax }), 3196 BOX_PAT => Pat::BoxPat(BoxPat { syntax }),
3197 DOT_DOT_PAT => Pat::DotDotPat(DotDotPat { syntax }), 3197 DOT_DOT_PAT => Pat::DotDotPat(DotDotPat { syntax }),
3198 LITERAL_PAT => Pat::LiteralPat(LiteralPat { syntax }), 3198 LITERAL_PAT => Pat::LiteralPat(LiteralPat { syntax }),
@@ -3213,7 +3213,7 @@ impl AstNode for Pat {
3213 } 3213 }
3214 fn syntax(&self) -> &SyntaxNode { 3214 fn syntax(&self) -> &SyntaxNode {
3215 match self { 3215 match self {
3216 Pat::BindPat(it) => &it.syntax, 3216 Pat::IdentPat(it) => &it.syntax,
3217 Pat::BoxPat(it) => &it.syntax, 3217 Pat::BoxPat(it) => &it.syntax,
3218 Pat::DotDotPat(it) => &it.syntax, 3218 Pat::DotDotPat(it) => &it.syntax,
3219 Pat::LiteralPat(it) => &it.syntax, 3219 Pat::LiteralPat(it) => &it.syntax,
@@ -3981,7 +3981,7 @@ impl std::fmt::Display for TypeBound {
3981 std::fmt::Display::fmt(self.syntax(), f) 3981 std::fmt::Display::fmt(self.syntax(), f)
3982 } 3982 }
3983} 3983}
3984impl std::fmt::Display for BindPat { 3984impl std::fmt::Display for IdentPat {
3985 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 3985 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
3986 std::fmt::Display::fmt(self.syntax(), f) 3986 std::fmt::Display::fmt(self.syntax(), f)
3987 } 3987 }
diff --git a/crates/ra_syntax/src/ast/make.rs b/crates/ra_syntax/src/ast/make.rs
index efb2cb4a3..673777015 100644
--- a/crates/ra_syntax/src/ast/make.rs
+++ b/crates/ra_syntax/src/ast/make.rs
@@ -148,10 +148,10 @@ pub fn condition(expr: ast::Expr, pattern: Option<ast::Pat>) -> ast::Condition {
148 } 148 }
149} 149}
150 150
151pub fn bind_pat(name: ast::Name) -> ast::BindPat { 151pub fn bind_pat(name: ast::Name) -> ast::IdentPat {
152 return from_text(name.text()); 152 return from_text(name.text());
153 153
154 fn from_text(text: &str) -> ast::BindPat { 154 fn from_text(text: &str) -> ast::IdentPat {
155 ast_from_text(&format!("fn f({}: ())", text)) 155 ast_from_text(&format!("fn f({}: ())", text))
156 } 156 }
157} 157}
diff --git a/crates/ra_syntax/src/ast/node_ext.rs b/crates/ra_syntax/src/ast/node_ext.rs
index 2cfdac225..4b4a72375 100644
--- a/crates/ra_syntax/src/ast/node_ext.rs
+++ b/crates/ra_syntax/src/ast/node_ext.rs
@@ -233,7 +233,7 @@ impl ast::RecordPatField {
233 if let Some(name_ref) = self.name_ref() { 233 if let Some(name_ref) = self.name_ref() {
234 return Some(NameOrNameRef::NameRef(name_ref)); 234 return Some(NameOrNameRef::NameRef(name_ref));
235 } 235 }
236 if let Some(ast::Pat::BindPat(pat)) = self.pat() { 236 if let Some(ast::Pat::IdentPat(pat)) = self.pat() {
237 let name = pat.name()?; 237 let name = pat.name()?;
238 return Some(NameOrNameRef::Name(name)); 238 return Some(NameOrNameRef::Name(name));
239 } 239 }
@@ -294,13 +294,13 @@ impl ast::SlicePat {
294 let prefix = args 294 let prefix = args
295 .peeking_take_while(|p| match p { 295 .peeking_take_while(|p| match p {
296 ast::Pat::DotDotPat(_) => false, 296 ast::Pat::DotDotPat(_) => false,
297 ast::Pat::BindPat(bp) => match bp.pat() { 297 ast::Pat::IdentPat(bp) => match bp.pat() {
298 Some(ast::Pat::DotDotPat(_)) => false, 298 Some(ast::Pat::DotDotPat(_)) => false,
299 _ => true, 299 _ => true,
300 }, 300 },
301 ast::Pat::RefPat(rp) => match rp.pat() { 301 ast::Pat::RefPat(rp) => match rp.pat() {
302 Some(ast::Pat::DotDotPat(_)) => false, 302 Some(ast::Pat::DotDotPat(_)) => false,
303 Some(ast::Pat::BindPat(bp)) => match bp.pat() { 303 Some(ast::Pat::IdentPat(bp)) => match bp.pat() {
304 Some(ast::Pat::DotDotPat(_)) => false, 304 Some(ast::Pat::DotDotPat(_)) => false,
305 _ => true, 305 _ => true,
306 }, 306 },
diff --git a/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast b/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast
index 307d9b31b..c131b79a7 100644
--- a/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast
+++ b/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast
@@ -34,7 +34,7 @@ [email protected]
34 [email protected] 34 [email protected]
35 [email protected] 35 [email protected]
36 [email protected] 36 [email protected]
37 BIN[email protected] 37 IDENT[email protected]
38 [email protected] 38 [email protected]
39 [email protected] "builder" 39 [email protected] "builder"
40 [email protected] 40 [email protected]
@@ -51,7 +51,7 @@ [email protected]
51 [email protected] 51 [email protected]
52 [email protected] 52 [email protected]
53 [email protected] 53 [email protected]
54 BIN[email protected] 54 IDENT[email protected]
55 [email protected] 55 [email protected]
56 [email protected] "tokens" 56 [email protected] "tokens"
57 [email protected] 57 [email protected]
@@ -69,7 +69,7 @@ [email protected]
69 [email protected] 69 [email protected]
70 [email protected] 70 [email protected]
71 [email protected] 71 [email protected]
72 BIN[email protected] 72 IDENT[email protected]
73 [email protected] 73 [email protected]
74 [email protected] "events" 74 [email protected] "events"
75 [email protected] 75 [email protected]
@@ -96,7 +96,7 @@ [email protected]
96 [email protected] 96 [email protected]
97 [email protected] 97 [email protected]
98 [email protected] 98 [email protected]
99 BIN[email protected] 99 IDENT[email protected]
100 [email protected] 100 [email protected]
101 [email protected] 101 [email protected]
102 [email protected] 102 [email protected]
@@ -111,7 +111,7 @@ [email protected]
111 [email protected] 111 [email protected]
112 [email protected] 112 [email protected]
113 [email protected] 113 [email protected]
114 BIN[email protected] 114 IDENT[email protected]
115 [email protected] 115 [email protected]
116 [email protected] "eat_ws" 116 [email protected] "eat_ws"
117 [email protected] 117 [email protected]
@@ -121,7 +121,7 @@ [email protected]
121 [email protected] 121 [email protected]
122 [email protected] 122 [email protected]
123 [email protected] 123 [email protected]
124 BIN[email protected] 124 IDENT[email protected]
125 [email protected] 125 [email protected]
126 [email protected] "idx" 126 [email protected] "idx"
127 [email protected] 127 [email protected]
@@ -172,7 +172,7 @@ [email protected]
172 [email protected] 172 [email protected]
173 [email protected] "Some" 173 [email protected] "Some"
174 [email protected] 174 [email protected]
175 BIN[email protected] 175 IDENT[email protected]
176 [email protected] 176 [email protected]
177 [email protected] "token" 177 [email protected] "token"
178 [email protected] 178 [email protected]
@@ -185,7 +185,7 @@ [email protected]
185 err: `expected COMMA` 185 err: `expected COMMA`
186 [email protected] 186 [email protected]
187 [email protected] 187 [email protected]
188 BIN[email protected] 188 IDENT[email protected]
189 [email protected] 189 [email protected]
190 [email protected] "tokens" 190 [email protected] "tokens"
191 err: `expected COMMA` 191 err: `expected COMMA`
@@ -205,7 +205,7 @@ [email protected]
205 [email protected] 205 [email protected]
206 [email protected] 206 [email protected]
207 err: `expected COMMA` 207 err: `expected COMMA`
208 BIN[email protected] 208 IDENT[email protected]
209 [email protected] 209 [email protected]
210 [email protected] "idx" 210 [email protected] "idx"
211 [email protected] 211 [email protected]
@@ -229,7 +229,7 @@ [email protected]
229 [email protected] 229 [email protected]
230 err: `expected COMMA` 230 err: `expected COMMA`
231 [email protected] 231 [email protected]
232 BIN[email protected] 232 IDENT[email protected]
233 [email protected] 233 [email protected]
234 [email protected] "token" 234 [email protected] "token"
235 err: `expected COMMA` 235 err: `expected COMMA`
@@ -239,7 +239,7 @@ [email protected]
239 [email protected] 239 [email protected]
240 err: `expected COMMA` 240 err: `expected COMMA`
241 [email protected] 241 [email protected]
242 BIN[email protected] 242 IDENT[email protected]
243 [email protected] 243 [email protected]
244 [email protected] "kind" 244 [email protected] "kind"
245 err: `expected COMMA` 245 err: `expected COMMA`
@@ -265,7 +265,7 @@ [email protected]
265 err: `expected COMMA` 265 err: `expected COMMA`
266 [email protected] 266 [email protected]
267 [email protected] 267 [email protected]
268 BIN[email protected] 268 IDENT[email protected]
269 [email protected] 269 [email protected]
270 [email protected] "break" 270 [email protected] "break"
271 err: `expected COMMA` 271 err: `expected COMMA`
@@ -282,7 +282,7 @@ [email protected]
282 err: `expected COMMA` 282 err: `expected COMMA`
283 [email protected] 283 [email protected]
284 [email protected] 284 [email protected]
285 BIN[email protected] 285 IDENT[email protected]
286 [email protected] 286 [email protected]
287 [email protected] "builder" 287 [email protected] "builder"
288 err: `expected COMMA` 288 err: `expected COMMA`
@@ -298,7 +298,7 @@ [email protected]
298 [email protected] 298 [email protected]
299 [email protected] "leaf" 299 [email protected] "leaf"
300 [email protected] 300 [email protected]
301 BIN[email protected] 301 IDENT[email protected]
302 [email protected] 302 [email protected]
303 [email protected] "token" 303 [email protected] "token"
304 err: `expected COMMA` 304 err: `expected COMMA`
@@ -306,12 +306,12 @@ [email protected]
306 [email protected] 306 [email protected]
307 [email protected] 307 [email protected]
308 err: `expected COMMA` 308 err: `expected COMMA`
309 BIN[email protected] 309 IDENT[email protected]
310 [email protected] 310 [email protected]
311 [email protected] "kind" 311 [email protected] "kind"
312 [email protected] 312 [email protected]
313 [email protected] 313 [email protected]
314 BIN[email protected] 314 IDENT[email protected]
315 [email protected] 315 [email protected]
316 [email protected] "token" 316 [email protected] "token"
317 err: `expected COMMA` 317 err: `expected COMMA`
@@ -319,7 +319,7 @@ [email protected]
319 [email protected] 319 [email protected]
320 [email protected] 320 [email protected]
321 err: `expected COMMA` 321 err: `expected COMMA`
322 BIN[email protected] 322 IDENT[email protected]
323 [email protected] 323 [email protected]
324 [email protected] "len" 324 [email protected] "len"
325 [email protected] 325 [email protected]
@@ -336,7 +336,7 @@ [email protected]
336 [email protected] 336 [email protected]
337 err: `expected COMMA` 337 err: `expected COMMA`
338 [email protected] 338 [email protected]
339 BIN[email protected] 339 IDENT[email protected]
340 [email protected] 340 [email protected]
341 [email protected] "idx" 341 [email protected] "idx"
342 err: `expected COMMA` 342 err: `expected COMMA`
diff --git a/crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.rast b/crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.rast
index bb4a28f4e..fe094f61c 100644
--- a/crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.rast
+++ b/crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.rast
@@ -7,7 +7,7 @@ [email protected]
7 [email protected] 7 [email protected]
8 [email protected] "(" 8 [email protected] "("
9 [email protected] 9 [email protected]
10 BIN[email protected] 10 IDENT[email protected]
11 [email protected] 11 [email protected]
12 [email protected] "foo" 12 [email protected] "foo"
13 [email protected] ":" 13 [email protected] ":"
@@ -25,7 +25,7 @@ [email protected]
25 [email protected] 25 [email protected]
26 [email protected] "let" 26 [email protected] "let"
27 [email protected] " " 27 [email protected] " "
28 BIN[email protected] 28 IDENT[email protected]
29 [email protected] 29 [email protected]
30 [email protected] "bar" 30 [email protected] "bar"
31 [email protected] " " 31 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.rast b/crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.rast
index bc95b8512..72939fc98 100644
--- a/crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.rast
+++ b/crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.rast
@@ -38,7 +38,7 @@ [email protected]
38 [email protected] 38 [email protected]
39 [email protected] "let" 39 [email protected] "let"
40 [email protected] " " 40 [email protected] " "
41 BIN[email protected] 41 IDENT[email protected]
42 [email protected] 42 [email protected]
43 [email protected] "res" 43 [email protected] "res"
44 [email protected] " " 44 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/err/0019_let_recover.rast b/crates/ra_syntax/test_data/parser/err/0019_let_recover.rast
index f6fa964b7..72c05bd96 100644
--- a/crates/ra_syntax/test_data/parser/err/0019_let_recover.rast
+++ b/crates/ra_syntax/test_data/parser/err/0019_let_recover.rast
@@ -14,7 +14,7 @@ [email protected]
14 [email protected] 14 [email protected]
15 [email protected] "let" 15 [email protected] "let"
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] 18 [email protected]
19 [email protected] "foo" 19 [email protected] "foo"
20 [email protected] " " 20 [email protected] " "
@@ -23,7 +23,7 @@ [email protected]
23 [email protected] 23 [email protected]
24 [email protected] "let" 24 [email protected] "let"
25 [email protected] " " 25 [email protected] " "
26 BIN[email protected] 26 IDENT[email protected]
27 [email protected] 27 [email protected]
28 [email protected] "bar" 28 [email protected] "bar"
29 [email protected] " " 29 [email protected] " "
@@ -39,7 +39,7 @@ [email protected]
39 [email protected] 39 [email protected]
40 [email protected] "let" 40 [email protected] "let"
41 [email protected] " " 41 [email protected] " "
42 BIN[email protected] 42 IDENT[email protected]
43 [email protected] 43 [email protected]
44 [email protected] "baz" 44 [email protected] "baz"
45 [email protected] " " 45 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/err/0021_incomplete_param.rast b/crates/ra_syntax/test_data/parser/err/0021_incomplete_param.rast
index ba4ce4795..b32845537 100644
--- a/crates/ra_syntax/test_data/parser/err/0021_incomplete_param.rast
+++ b/crates/ra_syntax/test_data/parser/err/0021_incomplete_param.rast
@@ -7,7 +7,7 @@ [email protected]
7 [email protected] 7 [email protected]
8 [email protected] "(" 8 [email protected] "("
9 [email protected] 9 [email protected]
10 BIN[email protected] 10 IDENT[email protected]
11 [email protected] 11 [email protected]
12 [email protected] "x" 12 [email protected] "x"
13 [email protected] ":" 13 [email protected] ":"
@@ -20,7 +20,7 @@ [email protected]
20 [email protected] "," 20 [email protected] ","
21 [email protected] " " 21 [email protected] " "
22 [email protected] 22 [email protected]
23 BIN[email protected] 23 IDENT[email protected]
24 [email protected] 24 [email protected]
25 [email protected] "y" 25 [email protected] "y"
26 [email protected] ")" 26 [email protected] ")"
diff --git a/crates/ra_syntax/test_data/parser/err/0025_nope.rast b/crates/ra_syntax/test_data/parser/err/0025_nope.rast
index fca646557..83fc9fe77 100644
--- a/crates/ra_syntax/test_data/parser/err/0025_nope.rast
+++ b/crates/ra_syntax/test_data/parser/err/0025_nope.rast
@@ -69,7 +69,7 @@ [email protected]
69 [email protected] 69 [email protected]
70 [email protected] "let" 70 [email protected] "let"
71 [email protected] " " 71 [email protected] " "
72 BIN[email protected] 72 IDENT[email protected]
73 [email protected] 73 [email protected]
74 [email protected] "a" 74 [email protected] "a"
75 [email protected] " " 75 [email protected] " "
@@ -175,7 +175,7 @@ [email protected]
175 [email protected] 175 [email protected]
176 [email protected] "let" 176 [email protected] "let"
177 [email protected] " " 177 [email protected] " "
178 BIN[email protected] 178 IDENT[email protected]
179 [email protected] 179 [email protected]
180 [email protected] "bad_syntax" 180 [email protected] "bad_syntax"
181 [email protected] " " 181 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/err/0029_field_completion.rast b/crates/ra_syntax/test_data/parser/err/0029_field_completion.rast
index bfcd0149e..c6402cdd8 100644
--- a/crates/ra_syntax/test_data/parser/err/0029_field_completion.rast
+++ b/crates/ra_syntax/test_data/parser/err/0029_field_completion.rast
@@ -7,7 +7,7 @@ [email protected]
7 [email protected] 7 [email protected]
8 [email protected] "(" 8 [email protected] "("
9 [email protected] 9 [email protected]
10 BIN[email protected] 10 IDENT[email protected]
11 [email protected] 11 [email protected]
12 [email protected] "a" 12 [email protected] "a"
13 [email protected] ":" 13 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/err/0031_block_inner_attrs.rast b/crates/ra_syntax/test_data/parser/err/0031_block_inner_attrs.rast
index 55ff3943f..a443b37db 100644
--- a/crates/ra_syntax/test_data/parser/err/0031_block_inner_attrs.rast
+++ b/crates/ra_syntax/test_data/parser/err/0031_block_inner_attrs.rast
@@ -14,7 +14,7 @@ [email protected]
14 [email protected] 14 [email protected]
15 [email protected] "let" 15 [email protected] "let"
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] 18 [email protected]
19 [email protected] "inner" 19 [email protected] "inner"
20 [email protected] " " 20 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.rast b/crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.rast
index 303a49576..d9d49bfb5 100644
--- a/crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.rast
+++ b/crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.rast
@@ -14,7 +14,7 @@ [email protected]
14 [email protected] 14 [email protected]
15 [email protected] "let" 15 [email protected] "let"
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] "ref" 18 [email protected] "ref"
19 [email protected] " " 19 [email protected] " "
20 [email protected] 20 [email protected]
@@ -38,7 +38,7 @@ [email protected]
38 [email protected] 38 [email protected]
39 [email protected] "let" 39 [email protected] "let"
40 [email protected] " " 40 [email protected] " "
41 BIN[email protected] 41 IDENT[email protected]
42 [email protected] "mut" 42 [email protected] "mut"
43 [email protected] " " 43 [email protected] " "
44 [email protected] 44 [email protected]
@@ -62,7 +62,7 @@ [email protected]
62 [email protected] 62 [email protected]
63 [email protected] "let" 63 [email protected] "let"
64 [email protected] " " 64 [email protected] " "
65 BIN[email protected] 65 IDENT[email protected]
66 [email protected] "ref" 66 [email protected] "ref"
67 [email protected] " " 67 [email protected] " "
68 [email protected] "mut" 68 [email protected] "mut"
diff --git a/crates/ra_syntax/test_data/parser/err/0039_lambda_recovery.rast b/crates/ra_syntax/test_data/parser/err/0039_lambda_recovery.rast
index 7a5e115bc..a9c5b70fd 100644
--- a/crates/ra_syntax/test_data/parser/err/0039_lambda_recovery.rast
+++ b/crates/ra_syntax/test_data/parser/err/0039_lambda_recovery.rast
@@ -53,7 +53,7 @@ [email protected]
53 [email protected] 53 [email protected]
54 [email protected] "|" 54 [email protected] "|"
55 [email protected] 55 [email protected]
56 BIN[email protected] 56 IDENT[email protected]
57 [email protected] 57 [email protected]
58 [email protected] "it" 58 [email protected] "it"
59 [email protected] "|" 59 [email protected] "|"
diff --git a/crates/ra_syntax/test_data/parser/fragments/pattern/ok/0000_enum.rast b/crates/ra_syntax/test_data/parser/fragments/pattern/ok/0000_enum.rast
index 15eb7f9c6..dcf102339 100644
--- a/crates/ra_syntax/test_data/parser/fragments/pattern/ok/0000_enum.rast
+++ b/crates/ra_syntax/test_data/parser/fragments/pattern/ok/0000_enum.rast
@@ -4,7 +4,7 @@ [email protected]
4 [email protected] 4 [email protected]
5 [email protected] "Some" 5 [email protected] "Some"
6 [email protected] "(" 6 [email protected] "("
7 BIN[email protected] 7 IDENT[email protected]
8 [email protected] 8 [email protected]
9 [email protected] "x" 9 [email protected] "x"
10 [email protected] ")" 10 [email protected] ")"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.rast b/crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.rast
index ae61cbad8..d24ad7423 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.rast
@@ -79,7 +79,7 @@ [email protected]
79 [email protected] "," 79 [email protected] ","
80 [email protected] " " 80 [email protected] " "
81 [email protected] 81 [email protected]
82 BIN[email protected] 82 IDENT[email protected]
83 [email protected] 83 [email protected]
84 [email protected] "x" 84 [email protected] "x"
85 [email protected] ":" 85 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.rast b/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.rast
index dea0c73f7..66f906fae 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.rast
@@ -16,12 +16,12 @@ [email protected]
16 [email protected] " " 16 [email protected] " "
17 [email protected] 17 [email protected]
18 [email protected] "[" 18 [email protected] "["
19 BIN[email protected] 19 IDENT[email protected]
20 [email protected] 20 [email protected]
21 [email protected] "a" 21 [email protected] "a"
22 [email protected] "," 22 [email protected] ","
23 [email protected] " " 23 [email protected] " "
24 BIN[email protected] 24 IDENT[email protected]
25 [email protected] 25 [email protected]
26 [email protected] "b" 26 [email protected] "b"
27 [email protected] "," 27 [email protected] ","
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.rast b/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.rast
index 45d17e800..e049e4df7 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.rast
@@ -88,7 +88,7 @@ [email protected]
88 [email protected] " " 88 [email protected] " "
89 [email protected] "," 89 [email protected] ","
90 [email protected] " " 90 [email protected] " "
91 BIN[email protected] 91 IDENT[email protected]
92 [email protected] 92 [email protected]
93 [email protected] "x" 93 [email protected] "x"
94 [email protected] ")" 94 [email protected] ")"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.rast b/crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.rast
index 9e76d881e..348b54dc9 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.rast
@@ -16,7 +16,7 @@ [email protected]
16 [email protected] " " 16 [email protected] " "
17 [email protected] 17 [email protected]
18 [email protected] "&" 18 [email protected] "&"
19 BIN[email protected] 19 IDENT[email protected]
20 [email protected] 20 [email protected]
21 [email protected] "a" 21 [email protected] "a"
22 [email protected] " " 22 [email protected] " "
@@ -34,7 +34,7 @@ [email protected]
34 [email protected] "&" 34 [email protected] "&"
35 [email protected] "mut" 35 [email protected] "mut"
36 [email protected] " " 36 [email protected] " "
37 BIN[email protected] 37 IDENT[email protected]
38 [email protected] 38 [email protected]
39 [email protected] "b" 39 [email protected] "b"
40 [email protected] " " 40 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.rast
index ffe1a3a01..173cecf6d 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.rast
@@ -37,7 +37,7 @@ [email protected]
37 [email protected] 37 [email protected]
38 [email protected] "Some" 38 [email protected] "Some"
39 [email protected] "(" 39 [email protected] "("
40 BIN[email protected] 40 IDENT[email protected]
41 [email protected] 41 [email protected]
42 [email protected] "x" 42 [email protected] "x"
43 [email protected] ")" 43 [email protected] ")"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rast b/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rast
index d873a7ecb..57d0661a5 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rast
@@ -74,13 +74,13 @@ [email protected]
74 [email protected] "\n " 74 [email protected] "\n "
75 [email protected] 75 [email protected]
76 [email protected] 76 [email protected]
77 BIN[email protected] 77 IDENT[email protected]
78 [email protected] 78 [email protected]
79 [email protected] "X" 79 [email protected] "X"
80 [email protected] " " 80 [email protected] " "
81 [email protected] "|" 81 [email protected] "|"
82 [email protected] " " 82 [email protected] " "
83 BIN[email protected] 83 IDENT[email protected]
84 [email protected] 84 [email protected]
85 [email protected] "Y" 85 [email protected] "Y"
86 [email protected] " " 86 [email protected] " "
@@ -104,13 +104,13 @@ [email protected]
104 [email protected] "|" 104 [email protected] "|"
105 [email protected] " " 105 [email protected] " "
106 [email protected] 106 [email protected]
107 BIN[email protected] 107 IDENT[email protected]
108 [email protected] 108 [email protected]
109 [email protected] "X" 109 [email protected] "X"
110 [email protected] " " 110 [email protected] " "
111 [email protected] "|" 111 [email protected] "|"
112 [email protected] " " 112 [email protected] " "
113 BIN[email protected] 113 IDENT[email protected]
114 [email protected] 114 [email protected]
115 [email protected] "Y" 115 [email protected] "Y"
116 [email protected] " " 116 [email protected] " "
@@ -133,7 +133,7 @@ [email protected]
133 [email protected] 133 [email protected]
134 [email protected] "|" 134 [email protected] "|"
135 [email protected] " " 135 [email protected] " "
136 BIN[email protected] 136 IDENT[email protected]
137 [email protected] 137 [email protected]
138 [email protected] "X" 138 [email protected] "X"
139 [email protected] " " 139 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rast b/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rast
index 0c19d29c6..b3003577c 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rast
@@ -14,7 +14,7 @@ [email protected]
14 [email protected] 14 [email protected]
15 [email protected] "let" 15 [email protected] "let"
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] 18 [email protected]
19 [email protected] "x" 19 [email protected] "x"
20 [email protected] " " 20 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0088_break_ambiguity.rast b/crates/ra_syntax/test_data/parser/inline/ok/0088_break_ambiguity.rast
index 34f520994..f7b839303 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0088_break_ambiguity.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0088_break_ambiguity.rast
@@ -38,7 +38,7 @@ [email protected]
38 [email protected] 38 [email protected]
39 [email protected] "for" 39 [email protected] "for"
40 [email protected] " " 40 [email protected] " "
41 BIN[email protected] 41 IDENT[email protected]
42 [email protected] 42 [email protected]
43 [email protected] "i" 43 [email protected] "i"
44 [email protected] " " 44 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.rast b/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.rast
index 1627556c8..f19e9fd52 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.rast
@@ -20,7 +20,7 @@ [email protected]
20 [email protected] 20 [email protected]
21 [email protected] "(" 21 [email protected] "("
22 [email protected] 22 [email protected]
23 BIN[email protected] 23 IDENT[email protected]
24 [email protected] 24 [email protected]
25 [email protected] "x" 25 [email protected] "x"
26 [email protected] ":" 26 [email protected] ":"
@@ -44,7 +44,7 @@ [email protected]
44 [email protected] 44 [email protected]
45 [email protected] "(" 45 [email protected] "("
46 [email protected] 46 [email protected]
47 BIN[email protected] 47 IDENT[email protected]
48 [email protected] 48 [email protected]
49 [email protected] "x" 49 [email protected] "x"
50 [email protected] ":" 50 [email protected] ":"
@@ -70,7 +70,7 @@ [email protected]
70 [email protected] 70 [email protected]
71 [email protected] "(" 71 [email protected] "("
72 [email protected] 72 [email protected]
73 BIN[email protected] 73 IDENT[email protected]
74 [email protected] 74 [email protected]
75 [email protected] "x" 75 [email protected] "x"
76 [email protected] ":" 76 [email protected] ":"
@@ -83,7 +83,7 @@ [email protected]
83 [email protected] "," 83 [email protected] ","
84 [email protected] " " 84 [email protected] " "
85 [email protected] 85 [email protected]
86 BIN[email protected] 86 IDENT[email protected]
87 [email protected] 87 [email protected]
88 [email protected] "y" 88 [email protected] "y"
89 [email protected] ":" 89 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.rast
index 766de4efe..5c4055e44 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.rast
@@ -15,7 +15,7 @@ [email protected]
15 [email protected] 15 [email protected]
16 [email protected] "for" 16 [email protected] "for"
17 [email protected] " " 17 [email protected] " "
18 BIN[email protected] 18 IDENT[email protected]
19 [email protected] 19 [email protected]
20 [email protected] "x" 20 [email protected] "x"
21 [email protected] " " 21 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.rast b/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.rast
index d0f70e9d7..866e60ed8 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.rast
@@ -44,13 +44,13 @@ [email protected]
44 [email protected] "{" 44 [email protected] "{"
45 [email protected] " " 45 [email protected] " "
46 [email protected] 46 [email protected]
47 BIN[email protected] 47 IDENT[email protected]
48 [email protected] 48 [email protected]
49 [email protected] "f" 49 [email protected] "f"
50 [email protected] "," 50 [email protected] ","
51 [email protected] " " 51 [email protected] " "
52 [email protected] 52 [email protected]
53 BIN[email protected] 53 IDENT[email protected]
54 [email protected] "ref" 54 [email protected] "ref"
55 [email protected] " " 55 [email protected] " "
56 [email protected] "mut" 56 [email protected] "mut"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.rast
index a80d79563..9b8381619 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.rast
@@ -51,7 +51,7 @@ [email protected]
51 [email protected] 51 [email protected]
52 [email protected] "|" 52 [email protected] "|"
53 [email protected] 53 [email protected]
54 BIN[email protected] 54 IDENT[email protected]
55 [email protected] 55 [email protected]
56 [email protected] "x" 56 [email protected] "x"
57 [email protected] "|" 57 [email protected] "|"
@@ -70,7 +70,7 @@ [email protected]
70 [email protected] 70 [email protected]
71 [email protected] "|" 71 [email protected] "|"
72 [email protected] 72 [email protected]
73 BIN[email protected] 73 IDENT[email protected]
74 [email protected] 74 [email protected]
75 [email protected] "x" 75 [email protected] "x"
76 [email protected] ":" 76 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0109_label.rast b/crates/ra_syntax/test_data/parser/inline/ok/0109_label.rast
index a6a169f1b..c9588025c 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0109_label.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0109_label.rast
@@ -46,7 +46,7 @@ [email protected]
46 [email protected] " " 46 [email protected] " "
47 [email protected] "for" 47 [email protected] "for"
48 [email protected] " " 48 [email protected] " "
49 BIN[email protected] 49 IDENT[email protected]
50 [email protected] 50 [email protected]
51 [email protected] "x" 51 [email protected] "x"
52 [email protected] " " 52 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.rast b/crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.rast
index 432318da0..f94a2ebde 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.rast
@@ -16,12 +16,12 @@ [email protected]
16 [email protected] " " 16 [email protected] " "
17 [email protected] 17 [email protected]
18 [email protected] "(" 18 [email protected] "("
19 BIN[email protected] 19 IDENT[email protected]
20 [email protected] 20 [email protected]
21 [email protected] "a" 21 [email protected] "a"
22 [email protected] "," 22 [email protected] ","
23 [email protected] " " 23 [email protected] " "
24 BIN[email protected] 24 IDENT[email protected]
25 [email protected] 25 [email protected]
26 [email protected] "b" 26 [email protected] "b"
27 [email protected] "," 27 [email protected] ","
@@ -42,7 +42,7 @@ [email protected]
42 [email protected] " " 42 [email protected] " "
43 [email protected] 43 [email protected]
44 [email protected] "(" 44 [email protected] "("
45 BIN[email protected] 45 IDENT[email protected]
46 [email protected] 46 [email protected]
47 [email protected] "a" 47 [email protected] "a"
48 [email protected] "," 48 [email protected] ","
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0112_bind_pat.rast b/crates/ra_syntax/test_data/parser/inline/ok/0112_bind_pat.rast
index 65d5944c0..7b9a498c8 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0112_bind_pat.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0112_bind_pat.rast
@@ -14,7 +14,7 @@ [email protected]
14 [email protected] 14 [email protected]
15 [email protected] "let" 15 [email protected] "let"
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] 18 [email protected]
19 [email protected] "a" 19 [email protected] "a"
20 [email protected] " " 20 [email protected] " "
@@ -28,7 +28,7 @@ [email protected]
28 [email protected] 28 [email protected]
29 [email protected] "let" 29 [email protected] "let"
30 [email protected] " " 30 [email protected] " "
31 BIN[email protected] 31 IDENT[email protected]
32 [email protected] "mut" 32 [email protected] "mut"
33 [email protected] " " 33 [email protected] " "
34 [email protected] 34 [email protected]
@@ -44,7 +44,7 @@ [email protected]
44 [email protected] 44 [email protected]
45 [email protected] "let" 45 [email protected] "let"
46 [email protected] " " 46 [email protected] " "
47 BIN[email protected] 47 IDENT[email protected]
48 [email protected] "ref" 48 [email protected] "ref"
49 [email protected] " " 49 [email protected] " "
50 [email protected] 50 [email protected]
@@ -60,7 +60,7 @@ [email protected]
60 [email protected] 60 [email protected]
61 [email protected] "let" 61 [email protected] "let"
62 [email protected] " " 62 [email protected] " "
63 BIN[email protected] 63 IDENT[email protected]
64 [email protected] "ref" 64 [email protected] "ref"
65 [email protected] " " 65 [email protected] " "
66 [email protected] "mut" 66 [email protected] "mut"
@@ -78,7 +78,7 @@ [email protected]
78 [email protected] 78 [email protected]
79 [email protected] "let" 79 [email protected] "let"
80 [email protected] " " 80 [email protected] " "
81 BIN[email protected] 81 IDENT[email protected]
82 [email protected] 82 [email protected]
83 [email protected] "e" 83 [email protected] "e"
84 [email protected] " " 84 [email protected] " "
@@ -97,7 +97,7 @@ [email protected]
97 [email protected] 97 [email protected]
98 [email protected] "let" 98 [email protected] "let"
99 [email protected] " " 99 [email protected] " "
100 BIN[email protected] 100 IDENT[email protected]
101 [email protected] "ref" 101 [email protected] "ref"
102 [email protected] " " 102 [email protected] " "
103 [email protected] "mut" 103 [email protected] "mut"
@@ -107,7 +107,7 @@ [email protected]
107 [email protected] " " 107 [email protected] " "
108 [email protected] "@" 108 [email protected] "@"
109 [email protected] " " 109 [email protected] " "
110 BIN[email protected] 110 IDENT[email protected]
111 [email protected] 111 [email protected]
112 [email protected] "g" 112 [email protected] "g"
113 [email protected] " " 113 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0123_param_list_vararg.rast b/crates/ra_syntax/test_data/parser/inline/ok/0123_param_list_vararg.rast
index f155743cf..27c4f141f 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0123_param_list_vararg.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0123_param_list_vararg.rast
@@ -16,7 +16,7 @@ [email protected]
16 [email protected] 16 [email protected]
17 [email protected] "(" 17 [email protected] "("
18 [email protected] 18 [email protected]
19 BIN[email protected] 19 IDENT[email protected]
20 [email protected] 20 [email protected]
21 [email protected] "format" 21 [email protected] "format"
22 [email protected] ":" 22 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.rast b/crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.rast
index 16d616bd4..4c07cefa6 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.rast
@@ -14,7 +14,7 @@ [email protected]
14 [email protected] 14 [email protected]
15 [email protected] "let" 15 [email protected] "let"
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] 18 [email protected]
19 [email protected] "a" 19 [email protected] "a"
20 [email protected] ";" 20 [email protected] ";"
@@ -22,7 +22,7 @@ [email protected]
22 [email protected] 22 [email protected]
23 [email protected] "let" 23 [email protected] "let"
24 [email protected] " " 24 [email protected] " "
25 BIN[email protected] 25 IDENT[email protected]
26 [email protected] 26 [email protected]
27 [email protected] "b" 27 [email protected] "b"
28 [email protected] ":" 28 [email protected] ":"
@@ -37,7 +37,7 @@ [email protected]
37 [email protected] 37 [email protected]
38 [email protected] "let" 38 [email protected] "let"
39 [email protected] " " 39 [email protected] " "
40 BIN[email protected] 40 IDENT[email protected]
41 [email protected] 41 [email protected]
42 [email protected] "c" 42 [email protected] "c"
43 [email protected] " " 43 [email protected] " "
@@ -50,7 +50,7 @@ [email protected]
50 [email protected] 50 [email protected]
51 [email protected] "let" 51 [email protected] "let"
52 [email protected] " " 52 [email protected] " "
53 BIN[email protected] 53 IDENT[email protected]
54 [email protected] 54 [email protected]
55 [email protected] "d" 55 [email protected] "d"
56 [email protected] ":" 56 [email protected] ":"
@@ -70,7 +70,7 @@ [email protected]
70 [email protected] 70 [email protected]
71 [email protected] "let" 71 [email protected] "let"
72 [email protected] " " 72 [email protected] " "
73 BIN[email protected] 73 IDENT[email protected]
74 [email protected] 74 [email protected]
75 [email protected] "e" 75 [email protected] "e"
76 [email protected] ":" 76 [email protected] ":"
@@ -99,7 +99,7 @@ [email protected]
99 [email protected] 99 [email protected]
100 [email protected] "let" 100 [email protected] "let"
101 [email protected] " " 101 [email protected] " "
102 BIN[email protected] 102 IDENT[email protected]
103 [email protected] 103 [email protected]
104 [email protected] "f" 104 [email protected] "f"
105 [email protected] " " 105 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.rast
index 48f483813..c55038247 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.rast
@@ -14,7 +14,7 @@ [email protected]
14 [email protected] 14 [email protected]
15 [email protected] "let" 15 [email protected] "let"
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] 18 [email protected]
19 [email protected] "x" 19 [email protected] "x"
20 [email protected] " " 20 [email protected] " "
@@ -30,7 +30,7 @@ [email protected]
30 [email protected] 30 [email protected]
31 [email protected] "let" 31 [email protected] "let"
32 [email protected] " " 32 [email protected] " "
33 BIN[email protected] 33 IDENT[email protected]
34 [email protected] 34 [email protected]
35 [email protected] "y" 35 [email protected] "y"
36 [email protected] " " 36 [email protected] " "
@@ -56,7 +56,7 @@ [email protected]
56 [email protected] 56 [email protected]
57 [email protected] "let" 57 [email protected] "let"
58 [email protected] " " 58 [email protected] " "
59 BIN[email protected] 59 IDENT[email protected]
60 [email protected] 60 [email protected]
61 [email protected] "z" 61 [email protected] "z"
62 [email protected] " " 62 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0138_associated_type_bounds.rast b/crates/ra_syntax/test_data/parser/inline/ok/0138_associated_type_bounds.rast
index e0a82df75..3870ec135 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0138_associated_type_bounds.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0138_associated_type_bounds.rast
@@ -37,7 +37,7 @@ [email protected]
37 [email protected] 37 [email protected]
38 [email protected] "(" 38 [email protected] "("
39 [email protected] 39 [email protected]
40 BIN[email protected] 40 IDENT[email protected]
41 [email protected] 41 [email protected]
42 [email protected] "printables" 42 [email protected] "printables"
43 [email protected] ":" 43 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.rast b/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.rast
index a7f87c020..f7c0e0ab0 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.rast
@@ -14,7 +14,7 @@ [email protected]
14 [email protected] 14 [email protected]
15 [email protected] "let" 15 [email protected] "let"
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] "mut" 18 [email protected] "mut"
19 [email protected] " " 19 [email protected] " "
20 [email protected] 20 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast b/crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast
index 36fd2997b..495e4c51b 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast
@@ -16,7 +16,7 @@ [email protected]
16 [email protected] "]" 16 [email protected] "]"
17 [email protected] " " 17 [email protected] " "
18 [email protected] 18 [email protected]
19 BIN[email protected] 19 IDENT[email protected]
20 [email protected] 20 [email protected]
21 [email protected] "pat" 21 [email protected] "pat"
22 [email protected] ":" 22 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.rast b/crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.rast
index d11019076..36e448c94 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.rast
@@ -14,7 +14,7 @@ [email protected]
14 [email protected] 14 [email protected]
15 [email protected] "for" 15 [email protected] "for"
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] 18 [email protected]
19 [email protected] "x" 19 [email protected] "x"
20 [email protected] " " 20 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.rast b/crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.rast
index caae3e2dc..65887b962 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.rast
@@ -17,7 +17,7 @@ [email protected]
17 [email protected] 17 [email protected]
18 [email protected] "box" 18 [email protected] "box"
19 [email protected] " " 19 [email protected] " "
20 BIN[email protected] 20 IDENT[email protected]
21 [email protected] 21 [email protected]
22 [email protected] "i" 22 [email protected] "i"
23 [email protected] " " 23 [email protected] " "
@@ -47,7 +47,7 @@ [email protected]
47 [email protected] 47 [email protected]
48 [email protected] "box" 48 [email protected] "box"
49 [email protected] " " 49 [email protected] " "
50 BIN[email protected] 50 IDENT[email protected]
51 [email protected] 51 [email protected]
52 [email protected] "i" 52 [email protected] "i"
53 [email protected] "," 53 [email protected] ","
@@ -71,7 +71,7 @@ [email protected]
71 [email protected] " " 71 [email protected] " "
72 [email protected] 72 [email protected]
73 [email protected] "&" 73 [email protected] "&"
74 BIN[email protected] 74 IDENT[email protected]
75 [email protected] 75 [email protected]
76 [email protected] "x" 76 [email protected] "x"
77 [email protected] ")" 77 [email protected] ")"
@@ -91,7 +91,7 @@ [email protected]
91 [email protected] 91 [email protected]
92 [email protected] "box" 92 [email protected] "box"
93 [email protected] " " 93 [email protected] " "
94 BIN[email protected] 94 IDENT[email protected]
95 [email protected] "ref" 95 [email protected] "ref"
96 [email protected] " " 96 [email protected] " "
97 [email protected] "mut" 97 [email protected] "mut"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rast b/crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rast
index 8d0f1ead5..8fb0db031 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rast
@@ -35,7 +35,7 @@ [email protected]
35 [email protected] " " 35 [email protected] " "
36 [email protected] 36 [email protected]
37 [email protected] "(" 37 [email protected] "("
38 BIN[email protected] 38 IDENT[email protected]
39 [email protected] 39 [email protected]
40 [email protected] "a" 40 [email protected] "a"
41 [email protected] "," 41 [email protected] ","
@@ -56,7 +56,7 @@ [email protected]
56 [email protected] " " 56 [email protected] " "
57 [email protected] 57 [email protected]
58 [email protected] "(" 58 [email protected] "("
59 BIN[email protected] 59 IDENT[email protected]
60 [email protected] 60 [email protected]
61 [email protected] "a" 61 [email protected] "a"
62 [email protected] "," 62 [email protected] ","
@@ -82,7 +82,7 @@ [email protected]
82 [email protected] 82 [email protected]
83 [email protected] "Tuple" 83 [email protected] "Tuple"
84 [email protected] "(" 84 [email protected] "("
85 BIN[email protected] 85 IDENT[email protected]
86 [email protected] 86 [email protected]
87 [email protected] "a" 87 [email protected] "a"
88 [email protected] "," 88 [email protected] ","
@@ -107,7 +107,7 @@ [email protected]
107 [email protected] 107 [email protected]
108 [email protected] "Tuple" 108 [email protected] "Tuple"
109 [email protected] "(" 109 [email protected] "("
110 BIN[email protected] 110 IDENT[email protected]
111 [email protected] 111 [email protected]
112 [email protected] "a" 112 [email protected] "a"
113 [email protected] "," 113 [email protected] ","
@@ -177,7 +177,7 @@ [email protected]
177 [email protected] ".." 177 [email protected] ".."
178 [email protected] "," 178 [email protected] ","
179 [email protected] " " 179 [email protected] " "
180 BIN[email protected] 180 IDENT[email protected]
181 [email protected] 181 [email protected]
182 [email protected] "a" 182 [email protected] "a"
183 [email protected] "," 183 [email protected] ","
@@ -206,7 +206,7 @@ [email protected]
206 [email protected] ".." 206 [email protected] ".."
207 [email protected] "," 207 [email protected] ","
208 [email protected] " " 208 [email protected] " "
209 BIN[email protected] 209 IDENT[email protected]
210 [email protected] 210 [email protected]
211 [email protected] "a" 211 [email protected] "a"
212 [email protected] "," 212 [email protected] ","
@@ -249,7 +249,7 @@ [email protected]
249 [email protected] " " 249 [email protected] " "
250 [email protected] 250 [email protected]
251 [email protected] "[" 251 [email protected] "["
252 BIN[email protected] 252 IDENT[email protected]
253 [email protected] 253 [email protected]
254 [email protected] "head" 254 [email protected] "head"
255 [email protected] "," 255 [email protected] ","
@@ -270,12 +270,12 @@ [email protected]
270 [email protected] " " 270 [email protected] " "
271 [email protected] 271 [email protected]
272 [email protected] "[" 272 [email protected] "["
273 BIN[email protected] 273 IDENT[email protected]
274 [email protected] 274 [email protected]
275 [email protected] "head" 275 [email protected] "head"
276 [email protected] "," 276 [email protected] ","
277 [email protected] " " 277 [email protected] " "
278 BIN[email protected] 278 IDENT[email protected]
279 [email protected] 279 [email protected]
280 [email protected] "tail" 280 [email protected] "tail"
281 [email protected] " " 281 [email protected] " "
@@ -297,7 +297,7 @@ [email protected]
297 [email protected] " " 297 [email protected] " "
298 [email protected] 298 [email protected]
299 [email protected] "[" 299 [email protected] "["
300 BIN[email protected] 300 IDENT[email protected]
301 [email protected] 301 [email protected]
302 [email protected] "head" 302 [email protected] "head"
303 [email protected] "," 303 [email protected] ","
@@ -306,7 +306,7 @@ [email protected]
306 [email protected] ".." 306 [email protected] ".."
307 [email protected] "," 307 [email protected] ","
308 [email protected] " " 308 [email protected] " "
309 BIN[email protected] 309 IDENT[email protected]
310 [email protected] 310 [email protected]
311 [email protected] "cons" 311 [email protected] "cons"
312 [email protected] "]" 312 [email protected] "]"
@@ -323,12 +323,12 @@ [email protected]
323 [email protected] " " 323 [email protected] " "
324 [email protected] 324 [email protected]
325 [email protected] "[" 325 [email protected] "["
326 BIN[email protected] 326 IDENT[email protected]
327 [email protected] 327 [email protected]
328 [email protected] "head" 328 [email protected] "head"
329 [email protected] "," 329 [email protected] ","
330 [email protected] " " 330 [email protected] " "
331 BIN[email protected] 331 IDENT[email protected]
332 [email protected] 332 [email protected]
333 [email protected] "mid" 333 [email protected] "mid"
334 [email protected] " " 334 [email protected] " "
@@ -338,7 +338,7 @@ [email protected]
338 [email protected] ".." 338 [email protected] ".."
339 [email protected] "," 339 [email protected] ","
340 [email protected] " " 340 [email protected] " "
341 BIN[email protected] 341 IDENT[email protected]
342 [email protected] 342 [email protected]
343 [email protected] "cons" 343 [email protected] "cons"
344 [email protected] "]" 344 [email protected] "]"
@@ -355,7 +355,7 @@ [email protected]
355 [email protected] " " 355 [email protected] " "
356 [email protected] 356 [email protected]
357 [email protected] "[" 357 [email protected] "["
358 BIN[email protected] 358 IDENT[email protected]
359 [email protected] 359 [email protected]
360 [email protected] "head" 360 [email protected] "head"
361 [email protected] "," 361 [email protected] ","
@@ -368,7 +368,7 @@ [email protected]
368 [email protected] ".." 368 [email protected] ".."
369 [email protected] "," 369 [email protected] ","
370 [email protected] " " 370 [email protected] " "
371 BIN[email protected] 371 IDENT[email protected]
372 [email protected] 372 [email protected]
373 [email protected] "cons" 373 [email protected] "cons"
374 [email protected] "]" 374 [email protected] "]"
@@ -385,7 +385,7 @@ [email protected]
385 [email protected] " " 385 [email protected] " "
386 [email protected] 386 [email protected]
387 [email protected] "[" 387 [email protected] "["
388 BIN[email protected] 388 IDENT[email protected]
389 [email protected] 389 [email protected]
390 [email protected] "head" 390 [email protected] "head"
391 [email protected] "," 391 [email protected] ","
@@ -394,12 +394,12 @@ [email protected]
394 [email protected] ".." 394 [email protected] ".."
395 [email protected] "," 395 [email protected] ","
396 [email protected] " " 396 [email protected] " "
397 BIN[email protected] 397 IDENT[email protected]
398 [email protected] 398 [email protected]
399 [email protected] "mid" 399 [email protected] "mid"
400 [email protected] "," 400 [email protected] ","
401 [email protected] " " 401 [email protected] " "
402 BIN[email protected] 402 IDENT[email protected]
403 [email protected] 403 [email protected]
404 [email protected] "tail" 404 [email protected] "tail"
405 [email protected] " " 405 [email protected] " "
@@ -421,7 +421,7 @@ [email protected]
421 [email protected] " " 421 [email protected] " "
422 [email protected] 422 [email protected]
423 [email protected] "[" 423 [email protected] "["
424 BIN[email protected] 424 IDENT[email protected]
425 [email protected] 425 [email protected]
426 [email protected] "head" 426 [email protected] "head"
427 [email protected] "," 427 [email protected] ","
@@ -430,7 +430,7 @@ [email protected]
430 [email protected] ".." 430 [email protected] ".."
431 [email protected] "," 431 [email protected] ","
432 [email protected] " " 432 [email protected] " "
433 BIN[email protected] 433 IDENT[email protected]
434 [email protected] 434 [email protected]
435 [email protected] "mid" 435 [email protected] "mid"
436 [email protected] "," 436 [email protected] ","
@@ -439,7 +439,7 @@ [email protected]
439 [email protected] ".." 439 [email protected] ".."
440 [email protected] "," 440 [email protected] ","
441 [email protected] " " 441 [email protected] " "
442 BIN[email protected] 442 IDENT[email protected]
443 [email protected] 443 [email protected]
444 [email protected] "cons" 444 [email protected] "cons"
445 [email protected] "]" 445 [email protected] "]"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0154_fn_pointer_param_ident_path.rast b/crates/ra_syntax/test_data/parser/inline/ok/0154_fn_pointer_param_ident_path.rast
index 69b4d73d7..c48fed03e 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0154_fn_pointer_param_ident_path.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0154_fn_pointer_param_ident_path.rast
@@ -38,7 +38,7 @@ [email protected]
38 [email protected] 38 [email protected]
39 [email protected] "(" 39 [email protected] "("
40 [email protected] 40 [email protected]
41 BIN[email protected] 41 IDENT[email protected]
42 [email protected] 42 [email protected]
43 [email protected] "baz" 43 [email protected] "baz"
44 [email protected] ":" 44 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0155_closure_params.rast b/crates/ra_syntax/test_data/parser/inline/ok/0155_closure_params.rast
index 0a9f7c137..31671b420 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0155_closure_params.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0155_closure_params.rast
@@ -14,7 +14,7 @@ [email protected]
14 [email protected] 14 [email protected]
15 [email protected] "let" 15 [email protected] "let"
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] 18 [email protected]
19 [email protected] "foo" 19 [email protected] "foo"
20 [email protected] " " 20 [email protected] " "
@@ -24,13 +24,13 @@ [email protected]
24 [email protected] 24 [email protected]
25 [email protected] "|" 25 [email protected] "|"
26 [email protected] 26 [email protected]
27 BIN[email protected] 27 IDENT[email protected]
28 [email protected] 28 [email protected]
29 [email protected] "bar" 29 [email protected] "bar"
30 [email protected] "," 30 [email protected] ","
31 [email protected] " " 31 [email protected] " "
32 [email protected] 32 [email protected]
33 BIN[email protected] 33 IDENT[email protected]
34 [email protected] 34 [email protected]
35 [email protected] "baz" 35 [email protected] "baz"
36 [email protected] ":" 36 [email protected] ":"
@@ -43,7 +43,7 @@ [email protected]
43 [email protected] "," 43 [email protected] ","
44 [email protected] " " 44 [email protected] " "
45 [email protected] 45 [email protected]
46 BIN[email protected] 46 IDENT[email protected]
47 [email protected] 47 [email protected]
48 [email protected] "qux" 48 [email protected] "qux"
49 [email protected] ":" 49 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0156_fn_def_param.rast b/crates/ra_syntax/test_data/parser/inline/ok/0156_fn_def_param.rast
index 3b8dfefc6..508b4aca7 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0156_fn_def_param.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0156_fn_def_param.rast
@@ -9,12 +9,12 @@ [email protected]
9 [email protected] 9 [email protected]
10 [email protected] 10 [email protected]
11 [email protected] "(" 11 [email protected] "("
12 BIN[email protected] 12 IDENT[email protected]
13 [email protected] 13 [email protected]
14 [email protected] "x" 14 [email protected] "x"
15 [email protected] "," 15 [email protected] ","
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] 18 [email protected]
19 [email protected] "y" 19 [email protected] "y"
20 [email protected] ")" 20 [email protected] ")"
diff --git a/crates/ra_syntax/test_data/parser/ok/0028_operator_binding_power.rast b/crates/ra_syntax/test_data/parser/ok/0028_operator_binding_power.rast
index efe018484..3271a4695 100644
--- a/crates/ra_syntax/test_data/parser/ok/0028_operator_binding_power.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0028_operator_binding_power.rast
@@ -14,7 +14,7 @@ [email protected]
14 [email protected] 14 [email protected]
15 [email protected] "let" 15 [email protected] "let"
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] 18 [email protected]
19 [email protected] "x" 19 [email protected] "x"
20 [email protected] " " 20 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/ok/0029_range_forms.rast b/crates/ra_syntax/test_data/parser/ok/0029_range_forms.rast
index 47e46f009..a732f11c4 100644
--- a/crates/ra_syntax/test_data/parser/ok/0029_range_forms.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0029_range_forms.rast
@@ -67,7 +67,7 @@ [email protected]
67 [email protected] 67 [email protected]
68 [email protected] "let" 68 [email protected] "let"
69 [email protected] " " 69 [email protected] " "
70 BIN[email protected] 70 IDENT[email protected]
71 [email protected] 71 [email protected]
72 [email protected] "x" 72 [email protected] "x"
73 [email protected] " " 73 [email protected] " "
@@ -135,7 +135,7 @@ [email protected]
135 [email protected] 135 [email protected]
136 [email protected] "let" 136 [email protected] "let"
137 [email protected] " " 137 [email protected] " "
138 BIN[email protected] 138 IDENT[email protected]
139 [email protected] 139 [email protected]
140 [email protected] "x" 140 [email protected] "x"
141 [email protected] " " 141 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/ok/0030_traits.rast b/crates/ra_syntax/test_data/parser/ok/0030_traits.rast
index 280d4cb82..d07c6683a 100644
--- a/crates/ra_syntax/test_data/parser/ok/0030_traits.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0030_traits.rast
@@ -37,7 +37,7 @@ [email protected]
37 [email protected] 37 [email protected]
38 [email protected] "(" 38 [email protected] "("
39 [email protected] 39 [email protected]
40 BIN[email protected] 40 IDENT[email protected]
41 [email protected] 41 [email protected]
42 [email protected] "x" 42 [email protected] "x"
43 [email protected] ":" 43 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/ok/0031_extern.rast b/crates/ra_syntax/test_data/parser/ok/0031_extern.rast
index 0509f7504..79ea098a2 100644
--- a/crates/ra_syntax/test_data/parser/ok/0031_extern.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0031_extern.rast
@@ -17,7 +17,7 @@ [email protected]
17 [email protected] 17 [email protected]
18 [email protected] "(" 18 [email protected] "("
19 [email protected] 19 [email protected]
20 BIN[email protected] 20 IDENT[email protected]
21 [email protected] 21 [email protected]
22 [email protected] "domain" 22 [email protected] "domain"
23 [email protected] ":" 23 [email protected] ":"
@@ -31,7 +31,7 @@ [email protected]
31 [email protected] "," 31 [email protected] ","
32 [email protected] " " 32 [email protected] " "
33 [email protected] 33 [email protected]
34 BIN[email protected] 34 IDENT[email protected]
35 [email protected] 35 [email protected]
36 [email protected] "ty" 36 [email protected] "ty"
37 [email protected] ":" 37 [email protected] ":"
@@ -45,7 +45,7 @@ [email protected]
45 [email protected] "," 45 [email protected] ","
46 [email protected] " " 46 [email protected] " "
47 [email protected] 47 [email protected]
48 BIN[email protected] 48 IDENT[email protected]
49 [email protected] 49 [email protected]
50 [email protected] "protocol" 50 [email protected] "protocol"
51 [email protected] ":" 51 [email protected] ":"
@@ -80,7 +80,7 @@ [email protected]
80 [email protected] 80 [email protected]
81 [email protected] "(" 81 [email protected] "("
82 [email protected] 82 [email protected]
83 BIN[email protected] 83 IDENT[email protected]
84 [email protected] 84 [email protected]
85 [email protected] "fd" 85 [email protected] "fd"
86 [email protected] ":" 86 [email protected] ":"
@@ -94,7 +94,7 @@ [email protected]
94 [email protected] "," 94 [email protected] ","
95 [email protected] " " 95 [email protected] " "
96 [email protected] 96 [email protected]
97 BIN[email protected] 97 IDENT[email protected]
98 [email protected] 98 [email protected]
99 [email protected] "addr" 99 [email protected] "addr"
100 [email protected] ":" 100 [email protected] ":"
@@ -111,7 +111,7 @@ [email protected]
111 [email protected] "," 111 [email protected] ","
112 [email protected] " " 112 [email protected] " "
113 [email protected] 113 [email protected]
114 BIN[email protected] 114 IDENT[email protected]
115 [email protected] 115 [email protected]
116 [email protected] "len" 116 [email protected] "len"
117 [email protected] ":" 117 [email protected] ":"
@@ -145,7 +145,7 @@ [email protected]
145 [email protected] 145 [email protected]
146 [email protected] "(" 146 [email protected] "("
147 [email protected] 147 [email protected]
148 BIN[email protected] 148 IDENT[email protected]
149 [email protected] 149 [email protected]
150 [email protected] "socket" 150 [email protected] "socket"
151 [email protected] ":" 151 [email protected] ":"
@@ -159,7 +159,7 @@ [email protected]
159 [email protected] "," 159 [email protected] ","
160 [email protected] " " 160 [email protected] " "
161 [email protected] 161 [email protected]
162 BIN[email protected] 162 IDENT[email protected]
163 [email protected] 163 [email protected]
164 [email protected] "address" 164 [email protected] "address"
165 [email protected] ":" 165 [email protected] ":"
@@ -176,7 +176,7 @@ [email protected]
176 [email protected] "," 176 [email protected] ","
177 [email protected] "\n " 177 [email protected] "\n "
178 [email protected] 178 [email protected]
179 BIN[email protected] 179 IDENT[email protected]
180 [email protected] 180 [email protected]
181 [email protected] "len" 181 [email protected] "len"
182 [email protected] ":" 182 [email protected] ":"
@@ -210,7 +210,7 @@ [email protected]
210 [email protected] 210 [email protected]
211 [email protected] "(" 211 [email protected] "("
212 [email protected] 212 [email protected]
213 BIN[email protected] 213 IDENT[email protected]
214 [email protected] 214 [email protected]
215 [email protected] "socket" 215 [email protected] "socket"
216 [email protected] ":" 216 [email protected] ":"
@@ -224,7 +224,7 @@ [email protected]
224 [email protected] "," 224 [email protected] ","
225 [email protected] " " 225 [email protected] " "
226 [email protected] 226 [email protected]
227 BIN[email protected] 227 IDENT[email protected]
228 [email protected] 228 [email protected]
229 [email protected] "backlog" 229 [email protected] "backlog"
230 [email protected] ":" 230 [email protected] ":"
@@ -259,7 +259,7 @@ [email protected]
259 [email protected] 259 [email protected]
260 [email protected] "(" 260 [email protected] "("
261 [email protected] 261 [email protected]
262 BIN[email protected] 262 IDENT[email protected]
263 [email protected] 263 [email protected]
264 [email protected] "socket" 264 [email protected] "socket"
265 [email protected] ":" 265 [email protected] ":"
@@ -273,7 +273,7 @@ [email protected]
273 [email protected] "," 273 [email protected] ","
274 [email protected] " " 274 [email protected] " "
275 [email protected] 275 [email protected]
276 BIN[email protected] 276 IDENT[email protected]
277 [email protected] 277 [email protected]
278 [email protected] "address" 278 [email protected] "address"
279 [email protected] ":" 279 [email protected] ":"
@@ -290,7 +290,7 @@ [email protected]
290 [email protected] "," 290 [email protected] ","
291 [email protected] "\n " 291 [email protected] "\n "
292 [email protected] 292 [email protected]
293 BIN[email protected] 293 IDENT[email protected]
294 [email protected] 294 [email protected]
295 [email protected] "address_len" 295 [email protected] "address_len"
296 [email protected] ":" 296 [email protected] ":"
@@ -328,7 +328,7 @@ [email protected]
328 [email protected] 328 [email protected]
329 [email protected] "(" 329 [email protected] "("
330 [email protected] 330 [email protected]
331 BIN[email protected] 331 IDENT[email protected]
332 [email protected] 332 [email protected]
333 [email protected] "sockfd" 333 [email protected] "sockfd"
334 [email protected] ":" 334 [email protected] ":"
@@ -342,7 +342,7 @@ [email protected]
342 [email protected] "," 342 [email protected] ","
343 [email protected] "\n " 343 [email protected] "\n "
344 [email protected] 344 [email protected]
345 BIN[email protected] 345 IDENT[email protected]
346 [email protected] 346 [email protected]
347 [email protected] "level" 347 [email protected] "level"
348 [email protected] ":" 348 [email protected] ":"
@@ -356,7 +356,7 @@ [email protected]
356 [email protected] "," 356 [email protected] ","
357 [email protected] "\n " 357 [email protected] "\n "
358 [email protected] 358 [email protected]
359 BIN[email protected] 359 IDENT[email protected]
360 [email protected] 360 [email protected]
361 [email protected] "optname" 361 [email protected] "optname"
362 [email protected] ":" 362 [email protected] ":"
@@ -370,7 +370,7 @@ [email protected]
370 [email protected] "," 370 [email protected] ","
371 [email protected] "\n " 371 [email protected] "\n "
372 [email protected] 372 [email protected]
373 BIN[email protected] 373 IDENT[email protected]
374 [email protected] 374 [email protected]
375 [email protected] "optval" 375 [email protected] "optval"
376 [email protected] ":" 376 [email protected] ":"
@@ -388,7 +388,7 @@ [email protected]
388 [email protected] "," 388 [email protected] ","
389 [email protected] "\n " 389 [email protected] "\n "
390 [email protected] 390 [email protected]
391 BIN[email protected] 391 IDENT[email protected]
392 [email protected] 392 [email protected]
393 [email protected] "optlen" 393 [email protected] "optlen"
394 [email protected] ":" 394 [email protected] ":"
@@ -427,7 +427,7 @@ [email protected]
427 [email protected] 427 [email protected]
428 [email protected] "(" 428 [email protected] "("
429 [email protected] 429 [email protected]
430 BIN[email protected] 430 IDENT[email protected]
431 [email protected] 431 [email protected]
432 [email protected] "socket" 432 [email protected] "socket"
433 [email protected] ":" 433 [email protected] ":"
@@ -441,7 +441,7 @@ [email protected]
441 [email protected] "," 441 [email protected] ","
442 [email protected] " " 442 [email protected] " "
443 [email protected] 443 [email protected]
444 BIN[email protected] 444 IDENT[email protected]
445 [email protected] 445 [email protected]
446 [email protected] "level" 446 [email protected] "level"
447 [email protected] ":" 447 [email protected] ":"
@@ -455,7 +455,7 @@ [email protected]
455 [email protected] "," 455 [email protected] ","
456 [email protected] " " 456 [email protected] " "
457 [email protected] 457 [email protected]
458 BIN[email protected] 458 IDENT[email protected]
459 [email protected] 459 [email protected]
460 [email protected] "name" 460 [email protected] "name"
461 [email protected] ":" 461 [email protected] ":"
@@ -469,7 +469,7 @@ [email protected]
469 [email protected] "," 469 [email protected] ","
470 [email protected] "\n " 470 [email protected] "\n "
471 [email protected] 471 [email protected]
472 BIN[email protected] 472 IDENT[email protected]
473 [email protected] 473 [email protected]
474 [email protected] "value" 474 [email protected] "value"
475 [email protected] ":" 475 [email protected] ":"
@@ -487,7 +487,7 @@ [email protected]
487 [email protected] "," 487 [email protected] ","
488 [email protected] "\n " 488 [email protected] "\n "
489 [email protected] 489 [email protected]
490 BIN[email protected] 490 IDENT[email protected]
491 [email protected] 491 [email protected]
492 [email protected] "option_len" 492 [email protected] "option_len"
493 [email protected] ":" 493 [email protected] ":"
@@ -521,7 +521,7 @@ [email protected]
521 [email protected] 521 [email protected]
522 [email protected] "(" 522 [email protected] "("
523 [email protected] 523 [email protected]
524 BIN[email protected] 524 IDENT[email protected]
525 [email protected] 525 [email protected]
526 [email protected] "socket" 526 [email protected] "socket"
527 [email protected] ":" 527 [email protected] ":"
@@ -535,7 +535,7 @@ [email protected]
535 [email protected] "," 535 [email protected] ","
536 [email protected] " " 536 [email protected] " "
537 [email protected] 537 [email protected]
538 BIN[email protected] 538 IDENT[email protected]
539 [email protected] 539 [email protected]
540 [email protected] "address" 540 [email protected] "address"
541 [email protected] ":" 541 [email protected] ":"
@@ -552,7 +552,7 @@ [email protected]
552 [email protected] "," 552 [email protected] ","
553 [email protected] "\n " 553 [email protected] "\n "
554 [email protected] 554 [email protected]
555 BIN[email protected] 555 IDENT[email protected]
556 [email protected] 556 [email protected]
557 [email protected] "address_len" 557 [email protected] "address_len"
558 [email protected] ":" 558 [email protected] ":"
@@ -590,7 +590,7 @@ [email protected]
590 [email protected] 590 [email protected]
591 [email protected] "(" 591 [email protected] "("
592 [email protected] 592 [email protected]
593 BIN[email protected] 593 IDENT[email protected]
594 [email protected] 594 [email protected]
595 [email protected] "socket" 595 [email protected] "socket"
596 [email protected] ":" 596 [email protected] ":"
@@ -604,7 +604,7 @@ [email protected]
604 [email protected] "," 604 [email protected] ","
605 [email protected] " " 605 [email protected] " "
606 [email protected] 606 [email protected]
607 BIN[email protected] 607 IDENT[email protected]
608 [email protected] 608 [email protected]
609 [email protected] "buf" 609 [email protected] "buf"
610 [email protected] ":" 610 [email protected] ":"
@@ -622,7 +622,7 @@ [email protected]
622 [email protected] "," 622 [email protected] ","
623 [email protected] " " 623 [email protected] " "
624 [email protected] 624 [email protected]
625 BIN[email protected] 625 IDENT[email protected]
626 [email protected] 626 [email protected]
627 [email protected] "len" 627 [email protected] "len"
628 [email protected] ":" 628 [email protected] ":"
@@ -636,7 +636,7 @@ [email protected]
636 [email protected] "," 636 [email protected] ","
637 [email protected] "\n " 637 [email protected] "\n "
638 [email protected] 638 [email protected]
639 BIN[email protected] 639 IDENT[email protected]
640 [email protected] 640 [email protected]
641 [email protected] "flags" 641 [email protected] "flags"
642 [email protected] ":" 642 [email protected] ":"
@@ -650,7 +650,7 @@ [email protected]
650 [email protected] "," 650 [email protected] ","
651 [email protected] " " 651 [email protected] " "
652 [email protected] 652 [email protected]
653 BIN[email protected] 653 IDENT[email protected]
654 [email protected] 654 [email protected]
655 [email protected] "addr" 655 [email protected] "addr"
656 [email protected] ":" 656 [email protected] ":"
@@ -667,7 +667,7 @@ [email protected]
667 [email protected] "," 667 [email protected] ","
668 [email protected] "\n " 668 [email protected] "\n "
669 [email protected] 669 [email protected]
670 BIN[email protected] 670 IDENT[email protected]
671 [email protected] 671 [email protected]
672 [email protected] "addrlen" 672 [email protected] "addrlen"
673 [email protected] ":" 673 [email protected] ":"
@@ -701,7 +701,7 @@ [email protected]
701 [email protected] 701 [email protected]
702 [email protected] "(" 702 [email protected] "("
703 [email protected] 703 [email protected]
704 BIN[email protected] 704 IDENT[email protected]
705 [email protected] 705 [email protected]
706 [email protected] "socket" 706 [email protected] "socket"
707 [email protected] ":" 707 [email protected] ":"
@@ -715,7 +715,7 @@ [email protected]
715 [email protected] "," 715 [email protected] ","
716 [email protected] " " 716 [email protected] " "
717 [email protected] 717 [email protected]
718 BIN[email protected] 718 IDENT[email protected]
719 [email protected] 719 [email protected]
720 [email protected] "buf" 720 [email protected] "buf"
721 [email protected] ":" 721 [email protected] ":"
@@ -733,7 +733,7 @@ [email protected]
733 [email protected] "," 733 [email protected] ","
734 [email protected] " " 734 [email protected] " "
735 [email protected] 735 [email protected]
736 BIN[email protected] 736 IDENT[email protected]
737 [email protected] 737 [email protected]
738 [email protected] "len" 738 [email protected] "len"
739 [email protected] ":" 739 [email protected] ":"
@@ -747,7 +747,7 @@ [email protected]
747 [email protected] "," 747 [email protected] ","
748 [email protected] "\n " 748 [email protected] "\n "
749 [email protected] 749 [email protected]
750 BIN[email protected] 750 IDENT[email protected]
751 [email protected] 751 [email protected]
752 [email protected] "flags" 752 [email protected] "flags"
753 [email protected] ":" 753 [email protected] ":"
@@ -782,7 +782,7 @@ [email protected]
782 [email protected] 782 [email protected]
783 [email protected] "(" 783 [email protected] "("
784 [email protected] 784 [email protected]
785 BIN[email protected] 785 IDENT[email protected]
786 [email protected] 786 [email protected]
787 [email protected] "socket" 787 [email protected] "socket"
788 [email protected] ":" 788 [email protected] ":"
@@ -796,7 +796,7 @@ [email protected]
796 [email protected] "," 796 [email protected] ","
797 [email protected] " " 797 [email protected] " "
798 [email protected] 798 [email protected]
799 BIN[email protected] 799 IDENT[email protected]
800 [email protected] 800 [email protected]
801 [email protected] "buf" 801 [email protected] "buf"
802 [email protected] ":" 802 [email protected] ":"
@@ -814,7 +814,7 @@ [email protected]
814 [email protected] "," 814 [email protected] ","
815 [email protected] " " 815 [email protected] " "
816 [email protected] 816 [email protected]
817 BIN[email protected] 817 IDENT[email protected]
818 [email protected] 818 [email protected]
819 [email protected] "len" 819 [email protected] "len"
820 [email protected] ":" 820 [email protected] ":"
@@ -828,7 +828,7 @@ [email protected]
828 [email protected] "," 828 [email protected] ","
829 [email protected] "\n " 829 [email protected] "\n "
830 [email protected] 830 [email protected]
831 BIN[email protected] 831 IDENT[email protected]
832 [email protected] 832 [email protected]
833 [email protected] "flags" 833 [email protected] "flags"
834 [email protected] ":" 834 [email protected] ":"
@@ -842,7 +842,7 @@ [email protected]
842 [email protected] "," 842 [email protected] ","
843 [email protected] " " 843 [email protected] " "
844 [email protected] 844 [email protected]
845 BIN[email protected] 845 IDENT[email protected]
846 [email protected] 846 [email protected]
847 [email protected] "addr" 847 [email protected] "addr"
848 [email protected] ":" 848 [email protected] ":"
@@ -860,7 +860,7 @@ [email protected]
860 [email protected] "," 860 [email protected] ","
861 [email protected] "\n " 861 [email protected] "\n "
862 [email protected] 862 [email protected]
863 BIN[email protected] 863 IDENT[email protected]
864 [email protected] 864 [email protected]
865 [email protected] "addrlen" 865 [email protected] "addrlen"
866 [email protected] ":" 866 [email protected] ":"
@@ -899,7 +899,7 @@ [email protected]
899 [email protected] 899 [email protected]
900 [email protected] "(" 900 [email protected] "("
901 [email protected] 901 [email protected]
902 BIN[email protected] 902 IDENT[email protected]
903 [email protected] 903 [email protected]
904 [email protected] "socket" 904 [email protected] "socket"
905 [email protected] ":" 905 [email protected] ":"
@@ -913,7 +913,7 @@ [email protected]
913 [email protected] "," 913 [email protected] ","
914 [email protected] " " 914 [email protected] " "
915 [email protected] 915 [email protected]
916 BIN[email protected] 916 IDENT[email protected]
917 [email protected] 917 [email protected]
918 [email protected] "buf" 918 [email protected] "buf"
919 [email protected] ":" 919 [email protected] ":"
@@ -931,7 +931,7 @@ [email protected]
931 [email protected] "," 931 [email protected] ","
932 [email protected] " " 932 [email protected] " "
933 [email protected] 933 [email protected]
934 BIN[email protected] 934 IDENT[email protected]
935 [email protected] 935 [email protected]
936 [email protected] "len" 936 [email protected] "len"
937 [email protected] ":" 937 [email protected] ":"
@@ -945,7 +945,7 @@ [email protected]
945 [email protected] "," 945 [email protected] ","
946 [email protected] "\n " 946 [email protected] "\n "
947 [email protected] 947 [email protected]
948 BIN[email protected] 948 IDENT[email protected]
949 [email protected] 949 [email protected]
950 [email protected] "flags" 950 [email protected] "flags"
951 [email protected] ":" 951 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/ok/0033_label_break.rast b/crates/ra_syntax/test_data/parser/ok/0033_label_break.rast
index b3f29638c..88800ca7a 100644
--- a/crates/ra_syntax/test_data/parser/ok/0033_label_break.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0033_label_break.rast
@@ -127,7 +127,7 @@ [email protected]
127 [email protected] 127 [email protected]
128 [email protected] "let" 128 [email protected] "let"
129 [email protected] " " 129 [email protected] " "
130 BIN[email protected] 130 IDENT[email protected]
131 [email protected] 131 [email protected]
132 [email protected] "result" 132 [email protected] "result"
133 [email protected] " " 133 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast b/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast
index d48f638cd..ac9c1fa79 100644
--- a/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast
@@ -144,7 +144,7 @@ [email protected]
144 [email protected] 144 [email protected]
145 [email protected] "let" 145 [email protected] "let"
146 [email protected] " " 146 [email protected] " "
147 BIN[email protected] 147 IDENT[email protected]
148 [email protected] 148 [email protected]
149 [email protected] "_x" 149 [email protected] "_x"
150 [email protected] ":" 150 [email protected] ":"
@@ -186,7 +186,7 @@ [email protected]
186 [email protected] 186 [email protected]
187 [email protected] "(" 187 [email protected] "("
188 [email protected] 188 [email protected]
189 BIN[email protected] 189 IDENT[email protected]
190 [email protected] 190 [email protected]
191 [email protected] "_x" 191 [email protected] "_x"
192 [email protected] ":" 192 [email protected] ":"
@@ -237,7 +237,7 @@ [email protected]
237 [email protected] 237 [email protected]
238 [email protected] "(" 238 [email protected] "("
239 [email protected] 239 [email protected]
240 BIN[email protected] 240 IDENT[email protected]
241 [email protected] 241 [email protected]
242 [email protected] "x" 242 [email protected] "x"
243 [email protected] ":" 243 [email protected] ":"
@@ -314,7 +314,7 @@ [email protected]
314 [email protected] 314 [email protected]
315 [email protected] "let" 315 [email protected] "let"
316 [email protected] " " 316 [email protected] " "
317 BIN[email protected] 317 IDENT[email protected]
318 [email protected] 318 [email protected]
319 [email protected] "i" 319 [email protected] "i"
320 [email protected] " " 320 [email protected] " "
@@ -343,7 +343,7 @@ [email protected]
343 [email protected] 343 [email protected]
344 [email protected] "let" 344 [email protected] "let"
345 [email protected] " " 345 [email protected] " "
346 BIN[email protected] 346 IDENT[email protected]
347 [email protected] 347 [email protected]
348 [email protected] "dont" 348 [email protected] "dont"
349 [email protected] " " 349 [email protected] " "
@@ -587,7 +587,7 @@ [email protected]
587 [email protected] 587 [email protected]
588 [email protected] "let" 588 [email protected] "let"
589 [email protected] " " 589 [email protected] " "
590 BIN[email protected] 590 IDENT[email protected]
591 [email protected] "mut" 591 [email protected] "mut"
592 [email protected] " " 592 [email protected] " "
593 [email protected] 593 [email protected]
@@ -604,7 +604,7 @@ [email protected]
604 [email protected] 604 [email protected]
605 [email protected] "let" 605 [email protected] "let"
606 [email protected] " " 606 [email protected] " "
607 BIN[email protected] 607 IDENT[email protected]
608 [email protected] "mut" 608 [email protected] "mut"
609 [email protected] " " 609 [email protected] " "
610 [email protected] 610 [email protected]
@@ -649,7 +649,7 @@ [email protected]
649 [email protected] 649 [email protected]
650 [email protected] "let" 650 [email protected] "let"
651 [email protected] " " 651 [email protected] " "
652 BIN[email protected] 652 IDENT[email protected]
653 [email protected] "mut" 653 [email protected] "mut"
654 [email protected] " " 654 [email protected] " "
655 [email protected] 655 [email protected]
@@ -694,7 +694,7 @@ [email protected]
694 [email protected] 694 [email protected]
695 [email protected] "let" 695 [email protected] "let"
696 [email protected] " " 696 [email protected] " "
697 BIN[email protected] 697 IDENT[email protected]
698 [email protected] 698 [email protected]
699 [email protected] "_a" 699 [email protected] "_a"
700 [email protected] " " 700 [email protected] " "
@@ -737,7 +737,7 @@ [email protected]
737 [email protected] 737 [email protected]
738 [email protected] "let" 738 [email protected] "let"
739 [email protected] " " 739 [email protected] " "
740 BIN[email protected] 740 IDENT[email protected]
741 [email protected] 741 [email protected]
742 [email protected] "_b" 742 [email protected] "_b"
743 [email protected] " " 743 [email protected] " "
@@ -859,7 +859,7 @@ [email protected]
859 [email protected] 859 [email protected]
860 [email protected] "let" 860 [email protected] "let"
861 [email protected] " " 861 [email protected] " "
862 BIN[email protected] 862 IDENT[email protected]
863 [email protected] 863 [email protected]
864 [email protected] "_a" 864 [email protected] "_a"
865 [email protected] " " 865 [email protected] " "
@@ -906,7 +906,7 @@ [email protected]
906 [email protected] 906 [email protected]
907 [email protected] "let" 907 [email protected] "let"
908 [email protected] " " 908 [email protected] " "
909 BIN[email protected] 909 IDENT[email protected]
910 [email protected] 910 [email protected]
911 [email protected] "_c" 911 [email protected] "_c"
912 [email protected] " " 912 [email protected] " "
@@ -943,7 +943,7 @@ [email protected]
943 [email protected] 943 [email protected]
944 [email protected] "let" 944 [email protected] "let"
945 [email protected] " " 945 [email protected] " "
946 BIN[email protected] 946 IDENT[email protected]
947 [email protected] 947 [email protected]
948 [email protected] "_b" 948 [email protected] "_b"
949 [email protected] ":" 949 [email protected] ":"
@@ -1024,7 +1024,7 @@ [email protected]
1024 [email protected] 1024 [email protected]
1025 [email protected] "let" 1025 [email protected] "let"
1026 [email protected] " " 1026 [email protected] " "
1027 BIN[email protected] 1027 IDENT[email protected]
1028 [email protected] "mut" 1028 [email protected] "mut"
1029 [email protected] " " 1029 [email protected] " "
1030 [email protected] 1030 [email protected]
@@ -1146,7 +1146,7 @@ [email protected]
1146 [email protected] 1146 [email protected]
1147 [email protected] "let" 1147 [email protected] "let"
1148 [email protected] " " 1148 [email protected] " "
1149 BIN[email protected] 1149 IDENT[email protected]
1150 [email protected] 1150 [email protected]
1151 [email protected] "_evil" 1151 [email protected] "_evil"
1152 [email protected] " " 1152 [email protected] " "
@@ -1292,7 +1292,7 @@ [email protected]
1292 [email protected] 1292 [email protected]
1293 [email protected] "(" 1293 [email protected] "("
1294 [email protected] 1294 [email protected]
1295 BIN[email protected] 1295 IDENT[email protected]
1296 [email protected] 1296 [email protected]
1297 [email protected] "u8" 1297 [email protected] "u8"
1298 [email protected] ":" 1298 [email protected] ":"
@@ -1614,7 +1614,7 @@ [email protected]
1614 [email protected] 1614 [email protected]
1615 [email protected] "let" 1615 [email protected] "let"
1616 [email protected] " " 1616 [email protected] " "
1617 BIN[email protected] 1617 IDENT[email protected]
1618 [email protected] 1618 [email protected]
1619 [email protected] "val" 1619 [email protected] "val"
1620 [email protected] " " 1620 [email protected] " "
@@ -1648,7 +1648,7 @@ [email protected]
1648 [email protected] ")" 1648 [email protected] ")"
1649 [email protected] "," 1649 [email protected] ","
1650 [email protected] 1650 [email protected]
1651 BIN[email protected] 1651 IDENT[email protected]
1652 [email protected] 1652 [email protected]
1653 [email protected] "__" 1653 [email protected] "__"
1654 [email protected] "@" 1654 [email protected] "@"
diff --git a/crates/ra_syntax/test_data/parser/ok/0041_raw_keywords.rast b/crates/ra_syntax/test_data/parser/ok/0041_raw_keywords.rast
index 92ede8ccb..4035aef6f 100644
--- a/crates/ra_syntax/test_data/parser/ok/0041_raw_keywords.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0041_raw_keywords.rast
@@ -14,7 +14,7 @@ [email protected]
14 [email protected] 14 [email protected]
15 [email protected] "let" 15 [email protected] "let"
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] 18 [email protected]
19 [email protected] "r#struct" 19 [email protected] "r#struct"
20 [email protected] " " 20 [email protected] " "
@@ -27,7 +27,7 @@ [email protected]
27 [email protected] 27 [email protected]
28 [email protected] "let" 28 [email protected] "let"
29 [email protected] " " 29 [email protected] " "
30 BIN[email protected] 30 IDENT[email protected]
31 [email protected] 31 [email protected]
32 [email protected] "r#trait" 32 [email protected] "r#trait"
33 [email protected] " " 33 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast b/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast
index 650f4e310..af44a4dbe 100644
--- a/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast
@@ -33,7 +33,7 @@ [email protected]
33 [email protected] "\n " 33 [email protected] "\n "
34 [email protected] "let" 34 [email protected] "let"
35 [email protected] " " 35 [email protected] " "
36 BIN[email protected] 36 IDENT[email protected]
37 [email protected] 37 [email protected]
38 [email protected] "exit_code" 38 [email protected] "exit_code"
39 [email protected] " " 39 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast b/crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast
index bd152ffa3..0ac56df6d 100644
--- a/crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast
@@ -114,7 +114,7 @@ [email protected]
114 [email protected] "," 114 [email protected] ","
115 [email protected] " " 115 [email protected] " "
116 [email protected] 116 [email protected]
117 BIN[email protected] 117 IDENT[email protected]
118 [email protected] 118 [email protected]
119 [email protected] "event_fn" 119 [email protected] "event_fn"
120 [email protected] ":" 120 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/ok/0048_compound_assignment.rast b/crates/ra_syntax/test_data/parser/ok/0048_compound_assignment.rast
index 662576e5f..eaab47843 100644
--- a/crates/ra_syntax/test_data/parser/ok/0048_compound_assignment.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0048_compound_assignment.rast
@@ -16,7 +16,7 @@ [email protected]
16 [email protected] 16 [email protected]
17 [email protected] "let" 17 [email protected] "let"
18 [email protected] " " 18 [email protected] " "
19 BIN[email protected] 19 IDENT[email protected]
20 [email protected] "mut" 20 [email protected] "mut"
21 [email protected] " " 21 [email protected] " "
22 [email protected] 22 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/ok/0050_async_block_as_argument.rast b/crates/ra_syntax/test_data/parser/ok/0050_async_block_as_argument.rast
index 48e1f07d1..c7ce12e93 100644
--- a/crates/ra_syntax/test_data/parser/ok/0050_async_block_as_argument.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0050_async_block_as_argument.rast
@@ -7,7 +7,7 @@ [email protected]
7 [email protected] 7 [email protected]
8 [email protected] "(" 8 [email protected] "("
9 [email protected] 9 [email protected]
10 BIN[email protected] 10 IDENT[email protected]
11 [email protected] 11 [email protected]
12 [email protected] "x" 12 [email protected] "x"
13 [email protected] ":" 13 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast b/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast
index a80a6cd7a..0303b198f 100644
--- a/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast
@@ -25,7 +25,7 @@ [email protected]
25 [email protected] "]" 25 [email protected] "]"
26 [email protected] " " 26 [email protected] " "
27 [email protected] 27 [email protected]
28 BIN[email protected] 28 IDENT[email protected]
29 [email protected] 29 [email protected]
30 [email protected] "pat" 30 [email protected] "pat"
31 [email protected] ":" 31 [email protected] ":"
@@ -58,7 +58,7 @@ [email protected]
58 [email protected] "]" 58 [email protected] "]"
59 [email protected] " " 59 [email protected] " "
60 [email protected] 60 [email protected]
61 BIN[email protected] 61 IDENT[email protected]
62 [email protected] 62 [email protected]
63 [email protected] "x" 63 [email protected] "x"
64 [email protected] ":" 64 [email protected] ":"
@@ -91,7 +91,7 @@ [email protected]
91 [email protected] 91 [email protected]
92 [email protected] "(" 92 [email protected] "("
93 [email protected] 93 [email protected]
94 BIN[email protected] 94 IDENT[email protected]
95 [email protected] 95 [email protected]
96 [email protected] "format" 96 [email protected] "format"
97 [email protected] ":" 97 [email protected] ":"
@@ -234,7 +234,7 @@ [email protected]
234 [email protected] "]" 234 [email protected] "]"
235 [email protected] " " 235 [email protected] " "
236 [email protected] 236 [email protected]
237 BIN[email protected] 237 IDENT[email protected]
238 [email protected] "mut" 238 [email protected] "mut"
239 [email protected] " " 239 [email protected] " "
240 [email protected] 240 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/ok/0052_for_range_block.rast b/crates/ra_syntax/test_data/parser/ok/0052_for_range_block.rast
index fd4f4f242..350823ba3 100644
--- a/crates/ra_syntax/test_data/parser/ok/0052_for_range_block.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0052_for_range_block.rast
@@ -14,7 +14,7 @@ [email protected]
14 [email protected] 14 [email protected]
15 [email protected] "for" 15 [email protected] "for"
16 [email protected] " " 16 [email protected] " "
17 BIN[email protected] 17 IDENT[email protected]
18 [email protected] 18 [email protected]
19 [email protected] "_x" 19 [email protected] "_x"
20 [email protected] " " 20 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/ok/0057_loop_in_call.rast b/crates/ra_syntax/test_data/parser/ok/0057_loop_in_call.rast
index 53410a1ee..76301004a 100644
--- a/crates/ra_syntax/test_data/parser/ok/0057_loop_in_call.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0057_loop_in_call.rast
@@ -7,7 +7,7 @@ [email protected]
7 [email protected] 7 [email protected]
8 [email protected] "(" 8 [email protected] "("
9 [email protected] 9 [email protected]
10 BIN[email protected] 10 IDENT[email protected]
11 [email protected] 11 [email protected]
12 [email protected] "x" 12 [email protected] "x"
13 [email protected] ":" 13 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/ok/0063_trait_fn_patterns.rast b/crates/ra_syntax/test_data/parser/ok/0063_trait_fn_patterns.rast
index 9d88e4cbf..42680b283 100644
--- a/crates/ra_syntax/test_data/parser/ok/0063_trait_fn_patterns.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0063_trait_fn_patterns.rast
@@ -18,12 +18,12 @@ [email protected]
18 [email protected] 18 [email protected]
19 [email protected] 19 [email protected]
20 [email protected] "(" 20 [email protected] "("
21 BIN[email protected] 21 IDENT[email protected]
22 [email protected] 22 [email protected]
23 [email protected] "a" 23 [email protected] "a"
24 [email protected] "," 24 [email protected] ","
25 [email protected] " " 25 [email protected] " "
26 BIN[email protected] 26 IDENT[email protected]
27 [email protected] 27 [email protected]
28 [email protected] "b" 28 [email protected] "b"
29 [email protected] ")" 29 [email protected] ")"
@@ -68,13 +68,13 @@ [email protected]
68 [email protected] "{" 68 [email protected] "{"
69 [email protected] " " 69 [email protected] " "
70 [email protected] 70 [email protected]
71 BIN[email protected] 71 IDENT[email protected]
72 [email protected] 72 [email protected]
73 [email protected] "a" 73 [email protected] "a"
74 [email protected] "," 74 [email protected] ","
75 [email protected] " " 75 [email protected] " "
76 [email protected] 76 [email protected]
77 BIN[email protected] 77 IDENT[email protected]
78 [email protected] 78 [email protected]
79 [email protected] "b" 79 [email protected] "b"
80 [email protected] " " 80 [email protected] " "
@@ -106,7 +106,7 @@ [email protected]
106 [email protected] 106 [email protected]
107 [email protected] "NewType" 107 [email protected] "NewType"
108 [email protected] "(" 108 [email protected] "("
109 BIN[email protected] 109 IDENT[email protected]
110 [email protected] 110 [email protected]
111 [email protected] "a" 111 [email protected] "a"
112 [email protected] ")" 112 [email protected] ")"
@@ -135,7 +135,7 @@ [email protected]
135 [email protected] "&" 135 [email protected] "&"
136 [email protected] 136 [email protected]
137 [email protected] "&" 137 [email protected] "&"
138 BIN[email protected] 138 IDENT[email protected]
139 [email protected] 139 [email protected]
140 [email protected] "a" 140 [email protected] "a"
141 [email protected] ":" 141 [email protected] ":"
@@ -175,7 +175,7 @@ [email protected]
175 [email protected] "," 175 [email protected] ","
176 [email protected] " " 176 [email protected] " "
177 [email protected] 177 [email protected]
178 BIN[email protected] 178 IDENT[email protected]
179 [email protected] "mut" 179 [email protected] "mut"
180 [email protected] " " 180 [email protected] " "
181 [email protected] 181 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/ok/0063_variadic_fun.rast b/crates/ra_syntax/test_data/parser/ok/0063_variadic_fun.rast
index d8bf1f8c8..a132591f0 100644
--- a/crates/ra_syntax/test_data/parser/ok/0063_variadic_fun.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0063_variadic_fun.rast
@@ -108,17 +108,17 @@ [email protected]
108 [email protected] 108 [email protected]
109 [email protected] 109 [email protected]
110 [email protected] "[" 110 [email protected] "["
111 BIN[email protected] 111 IDENT[email protected]
112 [email protected] 112 [email protected]
113 [email protected] "w" 113 [email protected] "w"
114 [email protected] "," 114 [email protected] ","
115 [email protected] " " 115 [email protected] " "
116 BIN[email protected] 116 IDENT[email protected]
117 [email protected] 117 [email protected]
118 [email protected] "t" 118 [email protected] "t"
119 [email protected] "," 119 [email protected] ","
120 [email protected] " " 120 [email protected] " "
121 BIN[email protected] 121 IDENT[email protected]
122 [email protected] 122 [email protected]
123 [email protected] "f" 123 [email protected] "f"
124 [email protected] "]" 124 [email protected] "]"
diff --git a/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast b/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast
index 087053f25..94260db7c 100644
--- a/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast
@@ -21,12 +21,12 @@ [email protected]
21 [email protected] 21 [email protected]
22 [email protected] 22 [email protected]
23 [email protected] "(" 23 [email protected] "("
24 BIN[email protected] 24 IDENT[email protected]
25 [email protected] 25 [email protected]
26 [email protected] "a" 26 [email protected] "a"
27 [email protected] "," 27 [email protected] ","
28 [email protected] " " 28 [email protected] " "
29 BIN[email protected] 29 IDENT[email protected]
30 [email protected] 30 [email protected]
31 [email protected] "b" 31 [email protected] "b"
32 [email protected] ")" 32 [email protected] ")"
@@ -71,13 +71,13 @@ [email protected]
71 [email protected] "{" 71 [email protected] "{"
72 [email protected] " " 72 [email protected] " "
73 [email protected] 73 [email protected]
74 BIN[email protected] 74 IDENT[email protected]
75 [email protected] 75 [email protected]
76 [email protected] "a" 76 [email protected] "a"
77 [email protected] "," 77 [email protected] ","
78 [email protected] " " 78 [email protected] " "
79 [email protected] 79 [email protected]
80 BIN[email protected] 80 IDENT[email protected]
81 [email protected] 81 [email protected]
82 [email protected] "b" 82 [email protected] "b"
83 [email protected] " " 83 [email protected] " "
@@ -109,7 +109,7 @@ [email protected]
109 [email protected] 109 [email protected]
110 [email protected] "NewType" 110 [email protected] "NewType"
111 [email protected] "(" 111 [email protected] "("
112 BIN[email protected] 112 IDENT[email protected]
113 [email protected] 113 [email protected]
114 [email protected] "a" 114 [email protected] "a"
115 [email protected] ")" 115 [email protected] ")"
@@ -138,7 +138,7 @@ [email protected]
138 [email protected] "&" 138 [email protected] "&"
139 [email protected] 139 [email protected]
140 [email protected] "&" 140 [email protected] "&"
141 BIN[email protected] 141 IDENT[email protected]
142 [email protected] 142 [email protected]
143 [email protected] "a" 143 [email protected] "a"
144 [email protected] ":" 144 [email protected] ":"
diff --git a/crates/ra_syntax/test_data/parser/ok/0067_where_for_pred.rast b/crates/ra_syntax/test_data/parser/ok/0067_where_for_pred.rast
index a368ac1e8..fae9467fc 100644
--- a/crates/ra_syntax/test_data/parser/ok/0067_where_for_pred.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0067_where_for_pred.rast
@@ -245,7 +245,7 @@ [email protected]
245 [email protected] 245 [email protected]
246 [email protected] "(" 246 [email protected] "("
247 [email protected] 247 [email protected]
248 BIN[email protected] 248 IDENT[email protected]
249 [email protected] 249 [email protected]
250 [email protected] "_t" 250 [email protected] "_t"
251 [email protected] ":" 251 [email protected] ":"
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index fbe36d2f5..2ff029158 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -126,7 +126,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc {
126 "PAREN_PAT", 126 "PAREN_PAT",
127 "REF_PAT", 127 "REF_PAT",
128 "BOX_PAT", 128 "BOX_PAT",
129 "BIND_PAT", 129 "IDENT_PAT",
130 "WILDCARD_PAT", 130 "WILDCARD_PAT",
131 "DOT_DOT_PAT", 131 "DOT_DOT_PAT",
132 "PATH_PAT", 132 "PATH_PAT",
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index 7c814240a..7685f4f06 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -497,7 +497,7 @@ TypeBound =
497| '?'? Type 497| '?'? Type
498 498
499Pat = 499Pat =
500 BindPat 500 IdentPat
501| BoxPat 501| BoxPat
502| DotDotPat 502| DotDotPat
503| LiteralPat 503| LiteralPat
@@ -516,7 +516,7 @@ Pat =
516LiteralPat = 516LiteralPat =
517 Literal 517 Literal
518 518
519BindPat = 519IdentPat =
520 Attr* 'ref'? 'mut'? Name ('@' Pat)? 520 Attr* 'ref'? 'mut'? Name ('@' Pat)?
521 521
522WildcardPat = 522WildcardPat =