Support raw_ref_op's raw reference operator

This commit is contained in:
robojumper 2020-05-28 21:42:22 +02:00
parent 190a0595a4
commit 367487fe88
12 changed files with 259 additions and 72 deletions

View file

@ -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 `-`.
///