diff options
| author | bors <bors@rust-lang.org> | 2021-09-04 01:40:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-09-04 01:40:36 +0000 |
| commit | b4e8596e3e78395543747ebaba26b49f6a478aa8 (patch) | |
| tree | c782e430605f5b820e4c4aaa448493bf706eccd2 /compiler/rustc_expand/src | |
| parent | 03c775c95596cbd92f2b1e8ca98e7addfa3eade2 (diff) | |
| parent | 12ce6e9c60c662dc7181b70021145f191c0f9f3e (diff) | |
| download | rust-b4e8596e3e78395543747ebaba26b49f6a478aa8.tar.gz rust-b4e8596e3e78395543747ebaba26b49f6a478aa8.zip | |
Auto merge of #88598 - estebank:type-ascription-can-die-in-a-fire, r=wesleywiser
Detect bare blocks with type ascription that were meant to be a `struct` literal Address part of #34255. Potential improvement: silence the other knock down errors in `issue-34255-1.rs`.
Diffstat (limited to 'compiler/rustc_expand/src')
| -rw-r--r-- | compiler/rustc_expand/src/build.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_expand/src/build.rs b/compiler/rustc_expand/src/build.rs index 1d83ecbfd40..2cc15b3e53f 100644 --- a/compiler/rustc_expand/src/build.rs +++ b/compiler/rustc_expand/src/build.rs @@ -197,6 +197,7 @@ impl<'a> ExtCtxt<'a> { rules: BlockCheckMode::Default, span, tokens: None, + could_be_bare_literal: false, }) } |
