aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-05-12 21:57:04 +0100
committerveetaha <[email protected]>2020-05-12 21:57:04 +0100
commit8d4c11625a4c294f096e7d735d6d8e93c1941844 (patch)
tree4606044a8cd18e77f68a2cf91f8bd0cbfab28e14
parentb31475d31619816cce9afe4d46ec5c9a96cc56c3 (diff)
Remove an equals sign from `ConstArg` (this probably pertains only to ConstParam)
(As per matklad)
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs1
-rw-r--r--xtask/src/ast_src.rs4
2 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs
index a25646c6b..cf6067e57 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 {
2479} 2479}
2480impl ConstArg { 2480impl ConstArg {
2481 pub fn literal(&self) -> Option<Literal> { support::child(&self.syntax) } 2481 pub fn literal(&self) -> Option<Literal> { support::child(&self.syntax) }
2482 pub fn eq_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![=]) }
2483 pub fn block_expr(&self) -> Option<BlockExpr> { support::child(&self.syntax) } 2482 pub fn block_expr(&self) -> Option<BlockExpr> { support::child(&self.syntax) }
2484} 2483}
2485/// FIXME: (@edwin0cheng) Remove it to use ItemList instead 2484/// FIXME: (@edwin0cheng) Remove it to use ItemList instead
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index c2d077d40..36f7ee675 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -1996,8 +1996,6 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
1996 /// [Reference](https://doc.rust-lang.org/reference/paths.html#paths-in-expressions) 1996 /// [Reference](https://doc.rust-lang.org/reference/paths.html#paths-in-expressions)
1997 struct LifetimeArg { T![lifetime] } 1997 struct LifetimeArg { T![lifetime] }
1998 1998
1999
2000 // TODO: What does equal sign do here?
2001 /// Constant value argument that is passed at generic instantiation site. 1999 /// Constant value argument that is passed at generic instantiation site.
2002 /// 2000 ///
2003 /// ``` 2001 /// ```
@@ -2007,7 +2005,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
2007 /// ``` 2005 /// ```
2008 /// 2006 ///
2009 /// [RFC](https://github.com/rust-lang/rfcs/blob/master/text/2000-const-generics.md#declaring-a-const-parameter) 2007 /// [RFC](https://github.com/rust-lang/rfcs/blob/master/text/2000-const-generics.md#declaring-a-const-parameter)
2010 struct ConstArg { Literal, T![=], BlockExpr } 2008 struct ConstArg { Literal, BlockExpr }
2011 2009
2012 2010
2013 /// FIXME: (@edwin0cheng) Remove it to use ItemList instead 2011 /// FIXME: (@edwin0cheng) Remove it to use ItemList instead