diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-21 15:23:05 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-21 15:23:05 -0700 |
| commit | 75f35657b309fba4d4dee5c32516bcd08a41b1b6 (patch) | |
| tree | 9a7bd217a5bd3a2d48ed9b9d672b293242f79939 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 7397bdc9c516f3f714ad4974ecdd27f567d03d05 (diff) | |
| parent | 2b3cd40f829e256bf54729e7fd0a3b8ceb4c2925 (diff) | |
| download | rust-75f35657b309fba4d4dee5c32516bcd08a41b1b6.tar.gz rust-75f35657b309fba4d4dee5c32516bcd08a41b1b6.zip | |
rollup merge of #24162: pnkfelix/fsk-detect-duplicate-loop-labels
Check for duplicate loop labels in function bodies.
See also: http://internals.rust-lang.org/t/psa-rejecting-duplicate-loop-labels/1833
The change, which we are putting in as future-proofing in preparation for future potential additions to the language (namely labeling arbitrary blocks and using those labels in borrow expressions), means that code like this will start emitting warnings:
```rust
fn main() {
{ 'a: loop { break; } }
{ 'a: loop { break; } }
}
```
To make the above code compile without warnings, write this instead:
```rust
fn main() {
{ 'a: loop { break; } }
{ 'b: loop { break; } }
}
```
Since this change is only introducing a new warnings, this change is non-breaking.
Fix #21633
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
