From 367487fe88dca78cffad5138673d5259f7f7ba6b Mon Sep 17 00:00:00 2001 From: robojumper Date: Thu, 28 May 2020 21:42:22 +0200 Subject: Support raw_ref_op's raw reference operator --- xtask/src/ast_src.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xtask/src/ast_src.rs') diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index 394a7bc88..d4621930e 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -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 `-`. /// -- cgit v1.2.3 From 1cd78a3355ea70d3070cabb00c80a5d195499752 Mon Sep 17 00:00:00 2001 From: robojumper Date: Sun, 31 May 2020 10:59:40 +0200 Subject: correctly infer labelled breaks --- xtask/src/ast_src.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xtask/src/ast_src.rs') diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index d4621930e..f60f0fb16 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -1058,7 +1058,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { /// [Reference](https://doc.rust-lang.org/reference/expressions/block-expr.html) /// [Labels for blocks RFC](https://github.com/rust-lang/rfcs/blob/master/text/2046-label-break-value.md) struct BlockExpr: AttrsOwner, ModuleItemOwner { - T!['{'], statements: [Stmt], Expr, T!['}'], + Label, T!['{'], statements: [Stmt], Expr, T!['}'], } /// Return expression. -- cgit v1.2.3