about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-06-02 20:15:05 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-07-12 16:25:16 +0400
commit40ae7b5b8e09da657b62bc849b8bcdf99a1cb210 (patch)
treef2a08c2651b0cb786a37697ee7806b272c01bb1d /compiler/rustc_builtin_macros/src
parentfbdb07f4e7f4666085aec4b1ed2fd05817dc42cf (diff)
downloadrust-40ae7b5b8e09da657b62bc849b8bcdf99a1cb210.tar.gz
rust-40ae7b5b8e09da657b62bc849b8bcdf99a1cb210.zip
Parse closure binders
This is first step in implementing RFC 3216.
- Parse `for<'a>` before closures in ast
  - Error in lowering
- Add `closure_lifetime_binder` feature
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
-rw-r--r--compiler/rustc_builtin_macros/src/assert/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/assert/context.rs b/compiler/rustc_builtin_macros/src/assert/context.rs
index 9e50d33486c..01152ff7df5 100644
--- a/compiler/rustc_builtin_macros/src/assert/context.rs
+++ b/compiler/rustc_builtin_macros/src/assert/context.rs
@@ -294,7 +294,7 @@ impl<'cx, 'a> Context<'cx, 'a> {
             | ExprKind::Block(_, _)
             | ExprKind::Box(_)
             | ExprKind::Break(_, _)
-            | ExprKind::Closure(_, _, _, _, _, _)
+            | ExprKind::Closure(_, _, _, _, _, _, _)
             | ExprKind::ConstBlock(_)
             | ExprKind::Continue(_)
             | ExprKind::Err