about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-21 15:23:05 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-21 15:23:05 -0700
commit75f35657b309fba4d4dee5c32516bcd08a41b1b6 (patch)
tree9a7bd217a5bd3a2d48ed9b9d672b293242f79939 /src/rustllvm/ExecutionEngineWrapper.cpp
parent7397bdc9c516f3f714ad4974ecdd27f567d03d05 (diff)
parent2b3cd40f829e256bf54729e7fd0a3b8ceb4c2925 (diff)
downloadrust-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