mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Remove an equals sign from ConstArg
(this probably pertains only to ConstParam)
(As per matklad)
This commit is contained in:
parent
b31475d316
commit
8d4c11625a
2 changed files with 1 additions and 4 deletions
|
@ -2479,7 +2479,6 @@ pub struct ConstArg {
|
||||||
}
|
}
|
||||||
impl ConstArg {
|
impl ConstArg {
|
||||||
pub fn literal(&self) -> Option<Literal> { support::child(&self.syntax) }
|
pub fn literal(&self) -> Option<Literal> { support::child(&self.syntax) }
|
||||||
pub fn eq_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![=]) }
|
|
||||||
pub fn block_expr(&self) -> Option<BlockExpr> { support::child(&self.syntax) }
|
pub fn block_expr(&self) -> Option<BlockExpr> { support::child(&self.syntax) }
|
||||||
}
|
}
|
||||||
/// FIXME: (@edwin0cheng) Remove it to use ItemList instead
|
/// FIXME: (@edwin0cheng) Remove it to use ItemList instead
|
||||||
|
|
|
@ -1996,8 +1996,6 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
||||||
/// [Reference](https://doc.rust-lang.org/reference/paths.html#paths-in-expressions)
|
/// [Reference](https://doc.rust-lang.org/reference/paths.html#paths-in-expressions)
|
||||||
struct LifetimeArg { T![lifetime] }
|
struct LifetimeArg { T![lifetime] }
|
||||||
|
|
||||||
|
|
||||||
// TODO: What does equal sign do here?
|
|
||||||
/// Constant value argument that is passed at generic instantiation site.
|
/// 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)
|
/// [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
|
/// FIXME: (@edwin0cheng) Remove it to use ItemList instead
|
||||||
|
|
Loading…
Reference in a new issue