Skip to content

Commit 8d4c116

Browse files
committed
Remove an equals sign from ConstArg (this probably pertains only to ConstParam)
(As per matklad)
1 parent b31475d commit 8d4c116

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

crates/ra_syntax/src/ast/generated/nodes.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2479,7 +2479,6 @@ pub struct ConstArg {
24792479
}
24802480
impl ConstArg {
24812481
pub fn literal(&self) -> Option<Literal> { support::child(&self.syntax) }
2482-
pub fn eq_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![=]) }
24832482
pub fn block_expr(&self) -> Option<BlockExpr> { support::child(&self.syntax) }
24842483
}
24852484
/// FIXME: (@edwin0cheng) Remove it to use ItemList instead

xtask/src/ast_src.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,8 +1996,6 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
19961996
/// [Reference](https://doc.rust-lang.org/reference/paths.html#paths-in-expressions)
19971997
struct LifetimeArg { T![lifetime] }
19981998

1999-
2000-
// TODO: What does equal sign do here?
20011999
/// Constant value argument that is passed at generic instantiation site.
20022000
///
20032001
/// ```
@@ -2007,7 +2005,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
20072005
/// ```
20082006
///
20092007
/// [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 }
20112009

20122010

20132011
/// FIXME: (@edwin0cheng) Remove it to use ItemList instead

0 commit comments

Comments
 (0)