mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Support raw_ref_op's raw reference operator
This commit is contained in:
parent
190a0595a4
commit
367487fe88
12 changed files with 259 additions and 72 deletions
|
@ -1153,10 +1153,12 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
/// ```
|
||||
/// ❰ &foo ❱;
|
||||
/// ❰ &mut bar ❱;
|
||||
/// ❰ &raw const bar ❱;
|
||||
/// ❰ &raw mut bar ❱;
|
||||
/// ```
|
||||
///
|
||||
/// [Reference](https://doc.rust-lang.org/reference/expressions/operator-expr.html#borrow-operators)
|
||||
struct RefExpr: AttrsOwner { T![&], T![raw], T![mut], Expr }
|
||||
struct RefExpr: AttrsOwner { T![&], T![raw], T![mut], T![const], Expr }
|
||||
|
||||
/// Prefix operator call. This is either `!` or `*` or `-`.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue