about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-04-21 21:18:30 +0000
committerbors <bors@rust-lang.org>2015-04-21 21:18:30 +0000
commit2baf3482537f5a245a9c17ca730398f1a8b001d7 (patch)
tree9a7bd217a5bd3a2d48ed9b9d672b293242f79939 /src/libstd/sys/unix/stack_overflow.rs
parent7397bdc9c516f3f714ad4974ecdd27f567d03d05 (diff)
parent2b3cd40f829e256bf54729e7fd0a3b8ceb4c2925 (diff)
downloadrust-2baf3482537f5a245a9c17ca730398f1a8b001d7.tar.gz
rust-2baf3482537f5a245a9c17ca730398f1a8b001d7.zip
Auto merge of #24162 - pnkfelix:fsk-detect-duplicate-loop-labels, r=nikomatsakis
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/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions