diff options
author | Aleksey Kladov <[email protected]> | 2020-07-31 17:29:29 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-31 17:29:29 +0100 |
commit | 91781c7ce8201b28afd56b4e35eba47e076a8498 (patch) | |
tree | fa5d495950dfec53ed221c921d5d017fa024c1b8 | |
parent | 54fd09a9ca567fc79cae53237dfeedc5baeec635 (diff) |
Rename TypeArgList -> GenericArgList
41 files changed, 70 insertions, 70 deletions
diff --git a/crates/ra_assists/src/ast_transform.rs b/crates/ra_assists/src/ast_transform.rs index 3265bd406..e23331773 100644 --- a/crates/ra_assists/src/ast_transform.rs +++ b/crates/ra_assists/src/ast_transform.rs | |||
@@ -86,7 +86,7 @@ impl<'a> SubstituteTypeParams<'a> { | |||
86 | ast::Type::PathType(path) => path, | 86 | ast::Type::PathType(path) => path, |
87 | _ => return None, | 87 | _ => return None, |
88 | }; | 88 | }; |
89 | let type_arg_list = path_type.path()?.segment()?.type_arg_list()?; | 89 | let type_arg_list = path_type.path()?.segment()?.generic_arg_list()?; |
90 | let mut result = Vec::new(); | 90 | let mut result = Vec::new(); |
91 | for type_arg in type_arg_list.type_args() { | 91 | for type_arg in type_arg_list.type_args() { |
92 | let type_arg: ast::TypeArg = type_arg; | 92 | let type_arg: ast::TypeArg = type_arg; |
@@ -157,7 +157,7 @@ impl<'a> QualifyPaths<'a> { | |||
157 | 157 | ||
158 | let type_args = p | 158 | let type_args = p |
159 | .segment() | 159 | .segment() |
160 | .and_then(|s| s.type_arg_list()) | 160 | .and_then(|s| s.generic_arg_list()) |
161 | .map(|arg_list| apply(self, arg_list)); | 161 | .map(|arg_list| apply(self, arg_list)); |
162 | if let Some(type_args) = type_args { | 162 | if let Some(type_args) = type_args { |
163 | let last_segment = path.segment().unwrap(); | 163 | let last_segment = path.segment().unwrap(); |
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index 0cacc63ef..6bedc6b56 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs | |||
@@ -337,7 +337,7 @@ impl ExprCollector<'_> { | |||
337 | }; | 337 | }; |
338 | let method_name = e.name_ref().map(|nr| nr.as_name()).unwrap_or_else(Name::missing); | 338 | let method_name = e.name_ref().map(|nr| nr.as_name()).unwrap_or_else(Name::missing); |
339 | let generic_args = | 339 | let generic_args = |
340 | e.type_arg_list().and_then(|it| GenericArgs::from_ast(&self.ctx(), it)); | 340 | e.generic_arg_list().and_then(|it| GenericArgs::from_ast(&self.ctx(), it)); |
341 | self.alloc_expr( | 341 | self.alloc_expr( |
342 | Expr::MethodCall { receiver, method_name, args, generic_args }, | 342 | Expr::MethodCall { receiver, method_name, args, generic_args }, |
343 | syntax_ptr, | 343 | syntax_ptr, |
diff --git a/crates/ra_hir_def/src/path.rs b/crates/ra_hir_def/src/path.rs index 68b9f89c3..cc1726e9e 100644 --- a/crates/ra_hir_def/src/path.rs +++ b/crates/ra_hir_def/src/path.rs | |||
@@ -258,7 +258,7 @@ impl<'a> PathSegments<'a> { | |||
258 | } | 258 | } |
259 | 259 | ||
260 | impl GenericArgs { | 260 | impl GenericArgs { |
261 | pub(crate) fn from_ast(lower_ctx: &LowerCtx, node: ast::TypeArgList) -> Option<GenericArgs> { | 261 | pub(crate) fn from_ast(lower_ctx: &LowerCtx, node: ast::GenericArgList) -> Option<GenericArgs> { |
262 | lower::lower_generic_args(lower_ctx, node) | 262 | lower::lower_generic_args(lower_ctx, node) |
263 | } | 263 | } |
264 | 264 | ||
diff --git a/crates/ra_hir_def/src/path/lower.rs b/crates/ra_hir_def/src/path/lower.rs index 257f9a033..aefeca400 100644 --- a/crates/ra_hir_def/src/path/lower.rs +++ b/crates/ra_hir_def/src/path/lower.rs | |||
@@ -41,7 +41,7 @@ pub(super) fn lower_path(mut path: ast::Path, hygiene: &Hygiene) -> Option<Path> | |||
41 | match hygiene.name_ref_to_name(name_ref) { | 41 | match hygiene.name_ref_to_name(name_ref) { |
42 | Either::Left(name) => { | 42 | Either::Left(name) => { |
43 | let args = segment | 43 | let args = segment |
44 | .type_arg_list() | 44 | .generic_arg_list() |
45 | .and_then(|it| lower_generic_args(&ctx, it)) | 45 | .and_then(|it| lower_generic_args(&ctx, it)) |
46 | .or_else(|| { | 46 | .or_else(|| { |
47 | lower_generic_args_from_fn_path( | 47 | lower_generic_args_from_fn_path( |
@@ -148,7 +148,7 @@ pub(super) fn lower_path(mut path: ast::Path, hygiene: &Hygiene) -> Option<Path> | |||
148 | 148 | ||
149 | pub(super) fn lower_generic_args( | 149 | pub(super) fn lower_generic_args( |
150 | lower_ctx: &LowerCtx, | 150 | lower_ctx: &LowerCtx, |
151 | node: ast::TypeArgList, | 151 | node: ast::GenericArgList, |
152 | ) -> Option<GenericArgs> { | 152 | ) -> Option<GenericArgs> { |
153 | let mut args = Vec::new(); | 153 | let mut args = Vec::new(); |
154 | for type_arg in node.type_args() { | 154 | for type_arg in node.type_args() { |
diff --git a/crates/ra_ide/src/completion/completion_context.rs b/crates/ra_ide/src/completion/completion_context.rs index 2113abbb2..2a5f3c3d2 100644 --- a/crates/ra_ide/src/completion/completion_context.rs +++ b/crates/ra_ide/src/completion/completion_context.rs | |||
@@ -377,7 +377,7 @@ impl<'a> CompletionContext<'a> { | |||
377 | path.syntax().parent().and_then(ast::TupleStructPat::cast).is_some(); | 377 | path.syntax().parent().and_then(ast::TupleStructPat::cast).is_some(); |
378 | 378 | ||
379 | self.is_path_type = path.syntax().parent().and_then(ast::PathType::cast).is_some(); | 379 | self.is_path_type = path.syntax().parent().and_then(ast::PathType::cast).is_some(); |
380 | self.has_type_args = segment.type_arg_list().is_some(); | 380 | self.has_type_args = segment.generic_arg_list().is_some(); |
381 | 381 | ||
382 | #[allow(deprecated)] | 382 | #[allow(deprecated)] |
383 | if let Some(path) = hir::Path::from_ast(path.clone()) { | 383 | if let Some(path) = hir::Path::from_ast(path.clone()) { |
diff --git a/crates/ra_ide/src/extend_selection.rs b/crates/ra_ide/src/extend_selection.rs index fc81b48cc..319fd500d 100644 --- a/crates/ra_ide/src/extend_selection.rs +++ b/crates/ra_ide/src/extend_selection.rs | |||
@@ -45,7 +45,7 @@ fn try_extend_selection( | |||
45 | VARIANT_LIST, | 45 | VARIANT_LIST, |
46 | USE_TREE_LIST, | 46 | USE_TREE_LIST, |
47 | GENERIC_PARAM_LIST, | 47 | GENERIC_PARAM_LIST, |
48 | TYPE_ARG_LIST, | 48 | GENERIC_ARG_LIST, |
49 | TYPE_BOUND_LIST, | 49 | TYPE_BOUND_LIST, |
50 | PARAM_LIST, | 50 | PARAM_LIST, |
51 | ARG_LIST, | 51 | ARG_LIST, |
diff --git a/crates/ra_parser/src/grammar/type_args.rs b/crates/ra_parser/src/grammar/type_args.rs index 2d61f9d80..8f88d51db 100644 --- a/crates/ra_parser/src/grammar/type_args.rs +++ b/crates/ra_parser/src/grammar/type_args.rs | |||
@@ -22,7 +22,7 @@ pub(super) fn opt_type_arg_list(p: &mut Parser, colon_colon_required: bool) { | |||
22 | } | 22 | } |
23 | } | 23 | } |
24 | p.expect(T![>]); | 24 | p.expect(T![>]); |
25 | m.complete(p, TYPE_ARG_LIST); | 25 | m.complete(p, GENERIC_ARG_LIST); |
26 | } | 26 | } |
27 | 27 | ||
28 | // test type_arg | 28 | // test type_arg |
diff --git a/crates/ra_parser/src/syntax_kind/generated.rs b/crates/ra_parser/src/syntax_kind/generated.rs index 2830c0d74..c3670fb62 100644 --- a/crates/ra_parser/src/syntax_kind/generated.rs +++ b/crates/ra_parser/src/syntax_kind/generated.rs | |||
@@ -235,7 +235,7 @@ pub enum SyntaxKind { | |||
235 | LIFETIME_PARAM, | 235 | LIFETIME_PARAM, |
236 | TYPE_PARAM, | 236 | TYPE_PARAM, |
237 | CONST_PARAM, | 237 | CONST_PARAM, |
238 | TYPE_ARG_LIST, | 238 | GENERIC_ARG_LIST, |
239 | LIFETIME_ARG, | 239 | LIFETIME_ARG, |
240 | TYPE_ARG, | 240 | TYPE_ARG, |
241 | ASSOC_TYPE_ARG, | 241 | ASSOC_TYPE_ARG, |
diff --git a/crates/ra_ssr/src/matching.rs b/crates/ra_ssr/src/matching.rs index 74e15c631..0f72fea69 100644 --- a/crates/ra_ssr/src/matching.rs +++ b/crates/ra_ssr/src/matching.rs | |||
@@ -348,8 +348,8 @@ impl<'db, 'sema> Matcher<'db, 'sema> { | |||
348 | // separately via comparing what the path resolves to below. | 348 | // separately via comparing what the path resolves to below. |
349 | self.attempt_match_opt( | 349 | self.attempt_match_opt( |
350 | phase, | 350 | phase, |
351 | pattern_segment.type_arg_list(), | 351 | pattern_segment.generic_arg_list(), |
352 | code_segment.type_arg_list(), | 352 | code_segment.generic_arg_list(), |
353 | )?; | 353 | )?; |
354 | self.attempt_match_opt( | 354 | self.attempt_match_opt( |
355 | phase, | 355 | phase, |
diff --git a/crates/ra_ssr/src/resolving.rs b/crates/ra_ssr/src/resolving.rs index 78d456546..c2fd3b905 100644 --- a/crates/ra_ssr/src/resolving.rs +++ b/crates/ra_ssr/src/resolving.rs | |||
@@ -217,7 +217,7 @@ fn pick_node_for_resolution(node: SyntaxNode) -> SyntaxNode { | |||
217 | fn path_contains_type_arguments(path: Option<ast::Path>) -> bool { | 217 | fn path_contains_type_arguments(path: Option<ast::Path>) -> bool { |
218 | if let Some(path) = path { | 218 | if let Some(path) = path { |
219 | if let Some(segment) = path.segment() { | 219 | if let Some(segment) = path.segment() { |
220 | if segment.type_arg_list().is_some() { | 220 | if segment.generic_arg_list().is_some() { |
221 | mark::hit!(type_arguments_within_path); | 221 | mark::hit!(type_arguments_within_path); |
222 | return true; | 222 | return true; |
223 | } | 223 | } |
diff --git a/crates/ra_syntax/src/ast/edit.rs b/crates/ra_syntax/src/ast/edit.rs index 8d3e42f25..04746ef8f 100644 --- a/crates/ra_syntax/src/ast/edit.rs +++ b/crates/ra_syntax/src/ast/edit.rs | |||
@@ -237,17 +237,17 @@ impl ast::Path { | |||
237 | 237 | ||
238 | impl ast::PathSegment { | 238 | impl ast::PathSegment { |
239 | #[must_use] | 239 | #[must_use] |
240 | pub fn with_type_args(&self, type_args: ast::TypeArgList) -> ast::PathSegment { | 240 | pub fn with_type_args(&self, type_args: ast::GenericArgList) -> ast::PathSegment { |
241 | self._with_type_args(type_args, false) | 241 | self._with_type_args(type_args, false) |
242 | } | 242 | } |
243 | 243 | ||
244 | #[must_use] | 244 | #[must_use] |
245 | pub fn with_turbo_fish(&self, type_args: ast::TypeArgList) -> ast::PathSegment { | 245 | pub fn with_turbo_fish(&self, type_args: ast::GenericArgList) -> ast::PathSegment { |
246 | self._with_type_args(type_args, true) | 246 | self._with_type_args(type_args, true) |
247 | } | 247 | } |
248 | 248 | ||
249 | fn _with_type_args(&self, type_args: ast::TypeArgList, turbo: bool) -> ast::PathSegment { | 249 | fn _with_type_args(&self, type_args: ast::GenericArgList, turbo: bool) -> ast::PathSegment { |
250 | if let Some(old) = self.type_arg_list() { | 250 | if let Some(old) = self.generic_arg_list() { |
251 | return self.replace_children( | 251 | return self.replace_children( |
252 | single_node(old.syntax().clone()), | 252 | single_node(old.syntax().clone()), |
253 | iter::once(type_args.syntax().clone().into()), | 253 | iter::once(type_args.syntax().clone().into()), |
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 1a707ad67..903646149 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs | |||
@@ -24,7 +24,7 @@ impl PathSegment { | |||
24 | pub fn self_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![self]) } | 24 | pub fn self_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![self]) } |
25 | pub fn super_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![super]) } | 25 | pub fn super_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![super]) } |
26 | pub fn name_ref(&self) -> Option<NameRef> { support::child(&self.syntax) } | 26 | pub fn name_ref(&self) -> Option<NameRef> { support::child(&self.syntax) } |
27 | pub fn type_arg_list(&self) -> Option<TypeArgList> { support::child(&self.syntax) } | 27 | pub fn generic_arg_list(&self) -> Option<GenericArgList> { support::child(&self.syntax) } |
28 | pub fn param_list(&self) -> Option<ParamList> { support::child(&self.syntax) } | 28 | pub fn param_list(&self) -> Option<ParamList> { support::child(&self.syntax) } |
29 | pub fn ret_type(&self) -> Option<RetType> { support::child(&self.syntax) } | 29 | pub fn ret_type(&self) -> Option<RetType> { support::child(&self.syntax) } |
30 | pub fn l_angle_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![<]) } | 30 | pub fn l_angle_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![<]) } |
@@ -40,10 +40,10 @@ impl NameRef { | |||
40 | pub fn ident_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![ident]) } | 40 | pub fn ident_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![ident]) } |
41 | } | 41 | } |
42 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 42 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
43 | pub struct TypeArgList { | 43 | pub struct GenericArgList { |
44 | pub(crate) syntax: SyntaxNode, | 44 | pub(crate) syntax: SyntaxNode, |
45 | } | 45 | } |
46 | impl TypeArgList { | 46 | impl GenericArgList { |
47 | pub fn coloncolon_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![::]) } | 47 | pub fn coloncolon_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![::]) } |
48 | pub fn l_angle_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![<]) } | 48 | pub fn l_angle_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![<]) } |
49 | pub fn type_args(&self) -> AstChildren<TypeArg> { support::children(&self.syntax) } | 49 | pub fn type_args(&self) -> AstChildren<TypeArg> { support::children(&self.syntax) } |
@@ -803,7 +803,7 @@ impl MethodCallExpr { | |||
803 | pub fn expr(&self) -> Option<Expr> { support::child(&self.syntax) } | 803 | pub fn expr(&self) -> Option<Expr> { support::child(&self.syntax) } |
804 | pub fn dot_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![.]) } | 804 | pub fn dot_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![.]) } |
805 | pub fn name_ref(&self) -> Option<NameRef> { support::child(&self.syntax) } | 805 | pub fn name_ref(&self) -> Option<NameRef> { support::child(&self.syntax) } |
806 | pub fn type_arg_list(&self) -> Option<TypeArgList> { support::child(&self.syntax) } | 806 | pub fn generic_arg_list(&self) -> Option<GenericArgList> { support::child(&self.syntax) } |
807 | } | 807 | } |
808 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 808 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
809 | pub struct ParenExpr { | 809 | pub struct ParenExpr { |
@@ -1434,8 +1434,8 @@ impl AstNode for NameRef { | |||
1434 | } | 1434 | } |
1435 | fn syntax(&self) -> &SyntaxNode { &self.syntax } | 1435 | fn syntax(&self) -> &SyntaxNode { &self.syntax } |
1436 | } | 1436 | } |
1437 | impl AstNode for TypeArgList { | 1437 | impl AstNode for GenericArgList { |
1438 | fn can_cast(kind: SyntaxKind) -> bool { kind == TYPE_ARG_LIST } | 1438 | fn can_cast(kind: SyntaxKind) -> bool { kind == GENERIC_ARG_LIST } |
1439 | fn cast(syntax: SyntaxNode) -> Option<Self> { | 1439 | fn cast(syntax: SyntaxNode) -> Option<Self> { |
1440 | if Self::can_cast(syntax.kind()) { | 1440 | if Self::can_cast(syntax.kind()) { |
1441 | Some(Self { syntax }) | 1441 | Some(Self { syntax }) |
@@ -3445,7 +3445,7 @@ impl std::fmt::Display for NameRef { | |||
3445 | std::fmt::Display::fmt(self.syntax(), f) | 3445 | std::fmt::Display::fmt(self.syntax(), f) |
3446 | } | 3446 | } |
3447 | } | 3447 | } |
3448 | impl std::fmt::Display for TypeArgList { | 3448 | impl std::fmt::Display for GenericArgList { |
3449 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | 3449 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
3450 | std::fmt::Display::fmt(self.syntax(), f) | 3450 | std::fmt::Display::fmt(self.syntax(), f) |
3451 | } | 3451 | } |
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 0afa24b77..307d9b31b 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 | |||
@@ -25,7 +25,7 @@ [email protected] | |||
25 | [email protected] | 25 | [email protected] |
26 | [email protected] | 26 | [email protected] |
27 | [email protected] "Sink" | 27 | [email protected] "Sink" |
28 | TYP[email protected] | 28 | GENERIC[email protected] |
29 | [email protected] | 29 | [email protected] |
30 | [email protected] | 30 | [email protected] |
31 | [email protected] "'a" | 31 | [email protected] "'a" |
@@ -79,7 +79,7 @@ [email protected] | |||
79 | [email protected] | 79 | [email protected] |
80 | [email protected] | 80 | [email protected] |
81 | [email protected] "Vec" | 81 | [email protected] "Vec" |
82 | TYP[email protected] | 82 | GENERIC[email protected] |
83 | [email protected] | 83 | [email protected] |
84 | [email protected] | 84 | [email protected] |
85 | [email protected] | 85 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/err/0013_invalid_type.rast b/crates/ra_syntax/test_data/parser/err/0013_invalid_type.rast index 3eef848fc..f48ab6e71 100644 --- a/crates/ra_syntax/test_data/parser/err/0013_invalid_type.rast +++ b/crates/ra_syntax/test_data/parser/err/0013_invalid_type.rast | |||
@@ -16,7 +16,7 @@ [email protected] | |||
16 | [email protected] | 16 | [email protected] |
17 | [email protected] | 17 | [email protected] |
18 | [email protected] "RefCell" | 18 | [email protected] "RefCell" |
19 | TYP[email protected] | 19 | GENERIC[email protected] |
20 | [email protected] "<" | 20 | [email protected] "<" |
21 | [email protected] | 21 | [email protected] |
22 | [email protected] | 22 | [email protected] |
@@ -24,7 +24,7 @@ [email protected] | |||
24 | [email protected] | 24 | [email protected] |
25 | [email protected] | 25 | [email protected] |
26 | [email protected] "HashMap" | 26 | [email protected] "HashMap" |
27 | TYP[email protected] | 27 | GENERIC[email protected] |
28 | [email protected] "<" | 28 | [email protected] "<" |
29 | [email protected] "\n " | 29 | [email protected] "\n " |
30 | [email protected] | 30 | [email protected] |
@@ -41,7 +41,7 @@ [email protected] | |||
41 | [email protected] | 41 | [email protected] |
42 | [email protected] | 42 | [email protected] |
43 | [email protected] "Box" | 43 | [email protected] "Box" |
44 | TYP[email protected] | 44 | GENERIC[email protected] |
45 | [email protected] "<" | 45 | [email protected] "<" |
46 | [email protected] | 46 | [email protected] |
47 | [email protected] | 47 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/err/0024_many_type_parens.rast b/crates/ra_syntax/test_data/parser/err/0024_many_type_parens.rast index 4c2d1ad68..1cb1e9757 100644 --- a/crates/ra_syntax/test_data/parser/err/0024_many_type_parens.rast +++ b/crates/ra_syntax/test_data/parser/err/0024_many_type_parens.rast | |||
@@ -50,7 +50,7 @@ [email protected] | |||
50 | [email protected] | 50 | [email protected] |
51 | [email protected] | 51 | [email protected] |
52 | [email protected] "Trait" | 52 | [email protected] "Trait" |
53 | TYP[email protected] | 53 | GENERIC[email protected] |
54 | [email protected] "<" | 54 | [email protected] "<" |
55 | [email protected] | 55 | [email protected] |
56 | [email protected] "\'a" | 56 | [email protected] "\'a" |
@@ -92,7 +92,7 @@ [email protected] | |||
92 | [email protected] | 92 | [email protected] |
93 | [email protected] | 93 | [email protected] |
94 | [email protected] "Box" | 94 | [email protected] "Box" |
95 | TYP[email protected] | 95 | GENERIC[email protected] |
96 | [email protected] "<" | 96 | [email protected] "<" |
97 | [email protected] | 97 | [email protected] |
98 | [email protected] | 98 | [email protected] |
@@ -133,7 +133,7 @@ [email protected] | |||
133 | [email protected] | 133 | [email protected] |
134 | [email protected] | 134 | [email protected] |
135 | [email protected] "Trait" | 135 | [email protected] "Trait" |
136 | TYP[email protected] | 136 | GENERIC[email protected] |
137 | [email protected] "<" | 137 | [email protected] "<" |
138 | [email protected] | 138 | [email protected] |
139 | [email protected] "\'a" | 139 | [email protected] "\'a" |
@@ -156,7 +156,7 @@ [email protected] | |||
156 | [email protected] | 156 | [email protected] |
157 | [email protected] | 157 | [email protected] |
158 | [email protected] "Box" | 158 | [email protected] "Box" |
159 | TYP[email protected] | 159 | GENERIC[email protected] |
160 | [email protected] "<" | 160 | [email protected] "<" |
161 | [email protected] | 161 | [email protected] |
162 | [email protected] | 162 | [email protected] |
@@ -235,7 +235,7 @@ [email protected] | |||
235 | [email protected] | 235 | [email protected] |
236 | [email protected] | 236 | [email protected] |
237 | [email protected] "Box" | 237 | [email protected] "Box" |
238 | TYP[email protected] | 238 | GENERIC[email protected] |
239 | [email protected] "<" | 239 | [email protected] "<" |
240 | [email protected] | 240 | [email protected] |
241 | [email protected] | 241 | [email protected] |
@@ -253,7 +253,7 @@ [email protected] | |||
253 | [email protected] | 253 | [email protected] |
254 | [email protected] | 254 | [email protected] |
255 | [email protected] "Trait" | 255 | [email protected] "Trait" |
256 | TYP[email protected] | 256 | GENERIC[email protected] |
257 | [email protected] "<" | 257 | [email protected] "<" |
258 | [email protected] | 258 | [email protected] |
259 | [email protected] "\'a" | 259 | [email protected] "\'a" |
diff --git a/crates/ra_syntax/test_data/parser/err/0026_imp_recovery.rast b/crates/ra_syntax/test_data/parser/err/0026_imp_recovery.rast index 7e4b11c27..1b08c834e 100644 --- a/crates/ra_syntax/test_data/parser/err/0026_imp_recovery.rast +++ b/crates/ra_syntax/test_data/parser/err/0026_imp_recovery.rast | |||
@@ -31,7 +31,7 @@ [email protected] | |||
31 | [email protected] | 31 | [email protected] |
32 | [email protected] | 32 | [email protected] |
33 | [email protected] "OnceCell" | 33 | [email protected] "OnceCell" |
34 | TYP[email protected] | 34 | GENERIC[email protected] |
35 | [email protected] "<" | 35 | [email protected] "<" |
36 | [email protected] | 36 | [email protected] |
37 | [email protected] | 37 | [email protected] |
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 0678d4278..7a5e115bc 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 | |||
@@ -62,7 +62,7 @@ [email protected] | |||
62 | [email protected] "." | 62 | [email protected] "." |
63 | [email protected] | 63 | [email protected] |
64 | [email protected] "max" | 64 | [email protected] "max" |
65 | TYP[email protected] | 65 | GENERIC[email protected] |
66 | [email protected] "::" | 66 | [email protected] "::" |
67 | [email protected] "<" | 67 | [email protected] "<" |
68 | [email protected] | 68 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/fragments/type/ok/0000_result.rast b/crates/ra_syntax/test_data/parser/fragments/type/ok/0000_result.rast index 8831cfa6c..38c15b581 100644 --- a/crates/ra_syntax/test_data/parser/fragments/type/ok/0000_result.rast +++ b/crates/ra_syntax/test_data/parser/fragments/type/ok/0000_result.rast | |||
@@ -3,7 +3,7 @@ [email protected] | |||
3 | [email protected] | 3 | [email protected] |
4 | [email protected] | 4 | [email protected] |
5 | [email protected] "Result" | 5 | [email protected] "Result" |
6 | TYP[email protected] | 6 | GENERIC[email protected] |
7 | [email protected] "<" | 7 | [email protected] "<" |
8 | [email protected] | 8 | [email protected] |
9 | [email protected] | 9 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0004_value_parameters_no_patterns.rast b/crates/ra_syntax/test_data/parser/inline/ok/0004_value_parameters_no_patterns.rast index ace8ad050..44d92aedb 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0004_value_parameters_no_patterns.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0004_value_parameters_no_patterns.rast | |||
@@ -12,7 +12,7 @@ [email protected] | |||
12 | [email protected] | 12 | [email protected] |
13 | [email protected] | 13 | [email protected] |
14 | [email protected] "Box" | 14 | [email protected] "Box" |
15 | TYP[email protected] | 15 | GENERIC[email protected] |
16 | [email protected] "<" | 16 | [email protected] "<" |
17 | [email protected] | 17 | [email protected] |
18 | [email protected] | 18 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast b/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast index 20b2b6c19..1b31aa95a 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast | |||
@@ -53,7 +53,7 @@ [email protected] | |||
53 | [email protected] | 53 | [email protected] |
54 | [email protected] | 54 | [email protected] |
55 | [email protected] "Box" | 55 | [email protected] "Box" |
56 | TYP[email protected] | 56 | GENERIC[email protected] |
57 | [email protected] "<" | 57 | [email protected] "<" |
58 | [email protected] | 58 | [email protected] |
59 | [email protected] | 59 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0028_impl_trait_type.rast b/crates/ra_syntax/test_data/parser/inline/ok/0028_impl_trait_type.rast index f45f3cab8..32b2959bd 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0028_impl_trait_type.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0028_impl_trait_type.rast | |||
@@ -17,7 +17,7 @@ [email protected] | |||
17 | [email protected] | 17 | [email protected] |
18 | [email protected] | 18 | [email protected] |
19 | [email protected] "Iterator" | 19 | [email protected] "Iterator" |
20 | TYP[email protected] | 20 | GENERIC[email protected] |
21 | [email protected] "<" | 21 | [email protected] "<" |
22 | [email protected] | 22 | [email protected] |
23 | [email protected] | 23 | [email protected] |
@@ -28,7 +28,7 @@ [email protected] | |||
28 | [email protected] | 28 | [email protected] |
29 | [email protected] | 29 | [email protected] |
30 | [email protected] "Foo" | 30 | [email protected] "Foo" |
31 | TYP[email protected] | 31 | GENERIC[email protected] |
32 | [email protected] "<" | 32 | [email protected] "<" |
33 | [email protected] | 33 | [email protected] |
34 | [email protected] "\'a" | 34 | [email protected] "\'a" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0039_type_arg.rast b/crates/ra_syntax/test_data/parser/inline/ok/0039_type_arg.rast index 2185d3c91..b9381abdc 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0039_type_arg.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0039_type_arg.rast | |||
@@ -12,7 +12,7 @@ [email protected] | |||
12 | [email protected] | 12 | [email protected] |
13 | [email protected] | 13 | [email protected] |
14 | [email protected] "B" | 14 | [email protected] "B" |
15 | TYP[email protected] | 15 | GENERIC[email protected] |
16 | [email protected] "<" | 16 | [email protected] "<" |
17 | [email protected] | 17 | [email protected] |
18 | [email protected] "\'static" | 18 | [email protected] "\'static" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast b/crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast index d4235a8b1..c100d1c71 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast | |||
@@ -30,7 +30,7 @@ [email protected] | |||
30 | [email protected] | 30 | [email protected] |
31 | [email protected] | 31 | [email protected] |
32 | [email protected] "Foo" | 32 | [email protected] "Foo" |
33 | TYP[email protected] | 33 | GENERIC[email protected] |
34 | [email protected] "<" | 34 | [email protected] "<" |
35 | [email protected] | 35 | [email protected] |
36 | [email protected] "\'a" | 36 | [email protected] "\'a" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast b/crates/ra_syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast index 37757ccd4..4d8404e7c 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast | |||
@@ -16,7 +16,7 @@ [email protected] | |||
16 | [email protected] | 16 | [email protected] |
17 | [email protected] | 17 | [email protected] |
18 | [email protected] "Box" | 18 | [email protected] "Box" |
19 | TYP[email protected] | 19 | GENERIC[email protected] |
20 | [email protected] "<" | 20 | [email protected] "<" |
21 | [email protected] | 21 | [email protected] |
22 | [email protected] | 22 | [email protected] |
@@ -55,7 +55,7 @@ [email protected] | |||
55 | [email protected] | 55 | [email protected] |
56 | [email protected] | 56 | [email protected] |
57 | [email protected] "Box" | 57 | [email protected] "Box" |
58 | TYP[email protected] | 58 | GENERIC[email protected] |
59 | [email protected] "<" | 59 | [email protected] "<" |
60 | [email protected] | 60 | [email protected] |
61 | [email protected] | 61 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.rast index 2bfb52453..de2016f18 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.rast | |||
@@ -60,7 +60,7 @@ [email protected] | |||
60 | [email protected] "::" | 60 | [email protected] "::" |
61 | [email protected] | 61 | [email protected] |
62 | [email protected] "a" | 62 | [email protected] "a" |
63 | TYP[email protected] | 63 | GENERIC[email protected] |
64 | [email protected] "::" | 64 | [email protected] "::" |
65 | [email protected] "<" | 65 | [email protected] "<" |
66 | [email protected] | 66 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0065_dyn_trait_type.rast b/crates/ra_syntax/test_data/parser/inline/ok/0065_dyn_trait_type.rast index 629fea99d..3a7fcfe24 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0065_dyn_trait_type.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0065_dyn_trait_type.rast | |||
@@ -17,7 +17,7 @@ [email protected] | |||
17 | [email protected] | 17 | [email protected] |
18 | [email protected] | 18 | [email protected] |
19 | [email protected] "Iterator" | 19 | [email protected] "Iterator" |
20 | TYP[email protected] | 20 | GENERIC[email protected] |
21 | [email protected] "<" | 21 | [email protected] "<" |
22 | [email protected] | 22 | [email protected] |
23 | [email protected] | 23 | [email protected] |
@@ -28,7 +28,7 @@ [email protected] | |||
28 | [email protected] | 28 | [email protected] |
29 | [email protected] | 29 | [email protected] |
30 | [email protected] "Foo" | 30 | [email protected] "Foo" |
31 | TYP[email protected] | 31 | GENERIC[email protected] |
32 | [email protected] "<" | 32 | [email protected] "<" |
33 | [email protected] | 33 | [email protected] |
34 | [email protected] "\'a" | 34 | [email protected] "\'a" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.rast b/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.rast index e7629ac03..5f4807522 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.rast | |||
@@ -95,7 +95,7 @@ [email protected] | |||
95 | [email protected] | 95 | [email protected] |
96 | [email protected] | 96 | [email protected] |
97 | [email protected] "PartialEq" | 97 | [email protected] "PartialEq" |
98 | TYP[email protected] | 98 | GENERIC[email protected] |
99 | [email protected] "<" | 99 | [email protected] "<" |
100 | [email protected] | 100 | [email protected] |
101 | [email protected] | 101 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0104_path_fn_trait_args.rast b/crates/ra_syntax/test_data/parser/inline/ok/0104_path_fn_trait_args.rast index 3f53d60c0..1244a5031 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0104_path_fn_trait_args.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0104_path_fn_trait_args.rast | |||
@@ -12,7 +12,7 @@ [email protected] | |||
12 | [email protected] | 12 | [email protected] |
13 | [email protected] | 13 | [email protected] |
14 | [email protected] "Box" | 14 | [email protected] "Box" |
15 | TYP[email protected] | 15 | GENERIC[email protected] |
16 | [email protected] "<" | 16 | [email protected] "<" |
17 | [email protected] | 17 | [email protected] |
18 | [email protected] | 18 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0107_method_call_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0107_method_call_expr.rast index b2961b0ff..be8365e05 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0107_method_call_expr.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0107_method_call_expr.rast | |||
@@ -36,7 +36,7 @@ [email protected] | |||
36 | [email protected] "." | 36 | [email protected] "." |
37 | [email protected] | 37 | [email protected] |
38 | [email protected] "bar" | 38 | [email protected] "bar" |
39 | TYP[email protected] | 39 | GENERIC[email protected] |
40 | [email protected] "::" | 40 | [email protected] "::" |
41 | [email protected] "<" | 41 | [email protected] "<" |
42 | [email protected] | 42 | [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 157513565..e0a82df75 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 | |||
@@ -18,7 +18,7 @@ [email protected] | |||
18 | [email protected] | 18 | [email protected] |
19 | [email protected] | 19 | [email protected] |
20 | [email protected] "Iterator" | 20 | [email protected] "Iterator" |
21 | TYP[email protected] | 21 | GENERIC[email protected] |
22 | [email protected] "<" | 22 | [email protected] "<" |
23 | [email protected] | 23 | [email protected] |
24 | [email protected] | 24 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast b/crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast index 8f197a19d..12194abda 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast | |||
@@ -22,7 +22,7 @@ [email protected] | |||
22 | [email protected] | 22 | [email protected] |
23 | [email protected] | 23 | [email protected] |
24 | [email protected] "Bar" | 24 | [email protected] "Bar" |
25 | TYP[email protected] | 25 | GENERIC[email protected] |
26 | [email protected] "<" | 26 | [email protected] "<" |
27 | [email protected] | 27 | [email protected] |
28 | [email protected] | 28 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0151_trait_alias.rast b/crates/ra_syntax/test_data/parser/inline/ok/0151_trait_alias.rast index cc220e534..dac50410e 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0151_trait_alias.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0151_trait_alias.rast | |||
@@ -20,7 +20,7 @@ [email protected] | |||
20 | [email protected] | 20 | [email protected] |
21 | [email protected] | 21 | [email protected] |
22 | [email protected] "T" | 22 | [email protected] "T" |
23 | TYP[email protected] | 23 | GENERIC[email protected] |
24 | [email protected] "<" | 24 | [email protected] "<" |
25 | [email protected] | 25 | [email protected] |
26 | [email protected] | 26 | [email protected] |
@@ -52,7 +52,7 @@ [email protected] | |||
52 | [email protected] | 52 | [email protected] |
53 | [email protected] | 53 | [email protected] |
54 | [email protected] "T" | 54 | [email protected] "T" |
55 | TYP[email protected] | 55 | GENERIC[email protected] |
56 | [email protected] "<" | 56 | [email protected] "<" |
57 | [email protected] | 57 | [email protected] |
58 | [email protected] | 58 | [email protected] |
@@ -115,7 +115,7 @@ [email protected] | |||
115 | [email protected] | 115 | [email protected] |
116 | [email protected] | 116 | [email protected] |
117 | [email protected] "T" | 117 | [email protected] "T" |
118 | TYP[email protected] | 118 | GENERIC[email protected] |
119 | [email protected] "<" | 119 | [email protected] "<" |
120 | [email protected] | 120 | [email protected] |
121 | [email protected] | 121 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/ok/0032_where_for.rast b/crates/ra_syntax/test_data/parser/ok/0032_where_for.rast index 10da87c71..d59548f21 100644 --- a/crates/ra_syntax/test_data/parser/ok/0032_where_for.rast +++ b/crates/ra_syntax/test_data/parser/ok/0032_where_for.rast | |||
@@ -49,7 +49,7 @@ [email protected] | |||
49 | [email protected] | 49 | [email protected] |
50 | [email protected] | 50 | [email protected] |
51 | [email protected] "Deserialize" | 51 | [email protected] "Deserialize" |
52 | TYP[email protected] | 52 | GENERIC[email protected] |
53 | [email protected] "<" | 53 | [email protected] "<" |
54 | [email protected] | 54 | [email protected] |
55 | [email protected] "\'de" | 55 | [email protected] "\'de" |
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 1d75ed08f..0e0c8c9dc 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 | |||
@@ -249,7 +249,7 @@ [email protected] | |||
249 | [email protected] | 249 | [email protected] |
250 | [email protected] | 250 | [email protected] |
251 | [email protected] "Cell" | 251 | [email protected] "Cell" |
252 | TYP[email protected] | 252 | GENERIC[email protected] |
253 | [email protected] "<" | 253 | [email protected] "<" |
254 | [email protected] | 254 | [email protected] |
255 | [email protected] | 255 | [email protected] |
@@ -1588,7 +1588,7 @@ [email protected] | |||
1588 | [email protected] | 1588 | [email protected] |
1589 | [email protected] | 1589 | [email protected] |
1590 | [email protected] "union" | 1590 | [email protected] "union" |
1591 | TYP[email protected] | 1591 | GENERIC[email protected] |
1592 | [email protected] "<" | 1592 | [email protected] "<" |
1593 | [email protected] | 1593 | [email protected] |
1594 | [email protected] "\'union" | 1594 | [email protected] "\'union" |
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 139ce9046..bd152ffa3 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 | |||
@@ -141,7 +141,7 @@ [email protected] | |||
141 | [email protected] | 141 | [email protected] |
142 | [email protected] | 142 | [email protected] |
143 | [email protected] "Event" | 143 | [email protected] "Event" |
144 | TYP[email protected] | 144 | GENERIC[email protected] |
145 | [email protected] "<" | 145 | [email protected] "<" |
146 | [email protected] | 146 | [email protected] |
147 | [email protected] | 147 | [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 798e81ca6..48e1f07d1 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 | |||
@@ -32,7 +32,7 @@ [email protected] | |||
32 | [email protected] | 32 | [email protected] |
33 | [email protected] | 33 | [email protected] |
34 | [email protected] "Future" | 34 | [email protected] "Future" |
35 | TYP[email protected] | 35 | GENERIC[email protected] |
36 | [email protected] "<" | 36 | [email protected] "<" |
37 | [email protected] | 37 | [email protected] |
38 | [email protected] | 38 | [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 2cc849784..706ccdc39 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 | |||
@@ -172,7 +172,7 @@ [email protected] | |||
172 | [email protected] | 172 | [email protected] |
173 | [email protected] | 173 | [email protected] |
174 | [email protected] "Foo" | 174 | [email protected] "Foo" |
175 | TYP[email protected] | 175 | GENERIC[email protected] |
176 | [email protected] "<" | 176 | [email protected] "<" |
177 | [email protected] | 177 | [email protected] |
178 | [email protected] "\'a" | 178 | [email protected] "\'a" |
@@ -490,7 +490,7 @@ [email protected] | |||
490 | [email protected] | 490 | [email protected] |
491 | [email protected] | 491 | [email protected] |
492 | [email protected] "Rc" | 492 | [email protected] "Rc" |
493 | TYP[email protected] | 493 | GENERIC[email protected] |
494 | [email protected] "<" | 494 | [email protected] "<" |
495 | [email protected] | 495 | [email protected] |
496 | [email protected] | 496 | [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 a30000398..fd4f4f242 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 | |||
@@ -50,7 +50,7 @@ [email protected] | |||
50 | [email protected] "." | 50 | [email protected] "." |
51 | [email protected] | 51 | [email protected] |
52 | [email protected] "sum" | 52 | [email protected] "sum" |
53 | TYP[email protected] | 53 | GENERIC[email protected] |
54 | [email protected] "::" | 54 | [email protected] "::" |
55 | [email protected] "<" | 55 | [email protected] "<" |
56 | [email protected] | 56 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/ok/0054_qual_path_in_type_arg.rast b/crates/ra_syntax/test_data/parser/ok/0054_qual_path_in_type_arg.rast index e3997ac5b..0d48c7e81 100644 --- a/crates/ra_syntax/test_data/parser/ok/0054_qual_path_in_type_arg.rast +++ b/crates/ra_syntax/test_data/parser/ok/0054_qual_path_in_type_arg.rast | |||
@@ -16,7 +16,7 @@ [email protected] | |||
16 | [email protected] | 16 | [email protected] |
17 | [email protected] | 17 | [email protected] |
18 | [email protected] "Foo" | 18 | [email protected] "Foo" |
19 | TYP[email protected] | 19 | GENERIC[email protected] |
20 | [email protected] "<" | 20 | [email protected] "<" |
21 | [email protected] | 21 | [email protected] |
22 | [email protected] | 22 | [email protected] |
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index 427406249..762d9265e 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs | |||
@@ -208,7 +208,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc { | |||
208 | "LIFETIME_PARAM", | 208 | "LIFETIME_PARAM", |
209 | "TYPE_PARAM", | 209 | "TYPE_PARAM", |
210 | "CONST_PARAM", | 210 | "CONST_PARAM", |
211 | "TYPE_ARG_LIST", | 211 | "GENERIC_ARG_LIST", |
212 | "LIFETIME_ARG", | 212 | "LIFETIME_ARG", |
213 | "TYPE_ARG", | 213 | "TYPE_ARG", |
214 | "ASSOC_TYPE_ARG", | 214 | "ASSOC_TYPE_ARG", |
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 13ad67ca1..8acd02f75 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -3,11 +3,11 @@ Path = | |||
3 | 3 | ||
4 | PathSegment = | 4 | PathSegment = |
5 | '::' | 'crate' | 'self' | 'super' | 5 | '::' | 'crate' | 'self' | 'super' |
6 | | (NameRef ('::'? TypeArgList)?) | 6 | | (NameRef ('::'? GenericArgList)?) |
7 | | NameRef ParamList RetType? | 7 | | NameRef ParamList RetType? |
8 | | '<' PathType ('as' PathType)? '>' | 8 | | '<' PathType ('as' PathType)? '>' |
9 | 9 | ||
10 | TypeArgList = | 10 | GenericArgList = |
11 | '::'? '<' | 11 | '::'? '<' |
12 | TypeArg* | 12 | TypeArg* |
13 | LifetimeArg* | 13 | LifetimeArg* |
@@ -348,7 +348,7 @@ ArgList = | |||
348 | '(' args:(Expr (',' Expr)* ','?)? ')' | 348 | '(' args:(Expr (',' Expr)* ','?)? ')' |
349 | 349 | ||
350 | MethodCallExpr = | 350 | MethodCallExpr = |
351 | Attr* Expr '.' NameRef TypeArgList? ArgList | 351 | Attr* Expr '.' NameRef GenericArgList? ArgList |
352 | 352 | ||
353 | FieldExpr = | 353 | FieldExpr = |
354 | Attr* Expr '.' NameRef | 354 | Attr* Expr '.' NameRef |