]> git.lizzy.rs Git - rust.git/commitdiff
use drop-temps { .. } pseudo-notation
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 17 Sep 2019 08:44:35 +0000 (04:44 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Tue, 17 Sep 2019 09:10:22 +0000 (05:10 -0400)
DropTemps(...) looks like a function, this looks like wacko special stuff

src/librustc/hir/lowering/expr.rs

index ef0bef9d569a4446fe736657cb63c75ed0eb3b02..990728fa0e68079b795e01a82e2cc85380e6a513 100644 (file)
@@ -351,7 +351,7 @@ fn lower_expr_while_in_loop_scope(
                 //
                 // ```
                 // 'label: loop {
-                //     match DropTemps($cond) {
+                //     match drop-temps { $cond } {
                 //         true => $body,
                 //         _ => break,
                 //     }