From 8d4c11625a4c294f096e7d735d6d8e93c1941844 Mon Sep 17 00:00:00 2001 From: veetaha Date: Tue, 12 May 2020 23:57:04 +0300 Subject: [PATCH] Remove an equals sign from `ConstArg` (this probably pertains only to ConstParam) (As per matklad) --- crates/ra_syntax/src/ast/generated/nodes.rs | 1 - xtask/src/ast_src.rs | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index a25646c6b3..cf6067e57c 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs @@ -2479,7 +2479,6 @@ pub struct ConstArg { } impl ConstArg { pub fn literal(&self) -> Option { support::child(&self.syntax) } - pub fn eq_token(&self) -> Option { support::token(&self.syntax, T![=]) } pub fn block_expr(&self) -> Option { support::child(&self.syntax) } } /// FIXME: (@edwin0cheng) Remove it to use ItemList instead diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index c2d077d40b..36f7ee675e 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -1996,8 +1996,6 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { /// [Reference](https://doc.rust-lang.org/reference/paths.html#paths-in-expressions) struct LifetimeArg { T![lifetime] } - - // TODO: What does equal sign do here? /// Constant value argument that is passed at generic instantiation site. /// /// ``` @@ -2007,7 +2005,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { /// ``` /// /// [RFC](https://github.com/rust-lang/rfcs/blob/master/text/2000-const-generics.md#declaring-a-const-parameter) - struct ConstArg { Literal, T![=], BlockExpr } + struct ConstArg { Literal, BlockExpr } /// FIXME: (@edwin0cheng) Remove it to use ItemList instead