]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_interface/src/util.rs
Detect bare blocks with type ascription that were meant to be a `struct` literal
[rust.git] / compiler / rustc_interface / src / util.rs
index 6b64614363f188909a62e56f08a919738c783eec..a5f0c01477898dd6b2248a078026687c7b4338ad 100644 (file)
@@ -810,6 +810,7 @@ fn stmt_to_block(
                 id: resolver.next_node_id(),
                 span: rustc_span::DUMMY_SP,
                 tokens: None,
+                could_be_bare_literal: false,
             }
         }