]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_builtin_macros/src/format.rs
Detect bare blocks with type ascription that were meant to be a `struct` literal
[rust.git] / compiler / rustc_builtin_macros / src / format.rs
index 1dbf7728421637343a84b9a9513ccf0cca2b4485..8508b3b7ae6edb9a273d9f05e16950b75096e030 100644 (file)
@@ -867,6 +867,7 @@ fn into_expr(self) -> P<ast::Expr> {
             rules: BlockCheckMode::Unsafe(UnsafeSource::CompilerGenerated),
             span: self.macsp,
             tokens: None,
+            could_be_bare_literal: false,
         }));
 
         let ident = Ident::from_str_and_span("args", self.macsp);