diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-01-22 09:55:29 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-01-26 04:16:58 +0000 |
| commit | faf0852fc1d01aef18fe8098a0f2f601dbfebd9b (patch) | |
| tree | 476dad97e14b84d094c8ae97bc9de7813e2db37a /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 54475e950cf3db909c4dec4a30c72f7636ab4e07 (diff) | |
| download | rust-faf0852fc1d01aef18fe8098a0f2f601dbfebd9b.tar.gz rust-faf0852fc1d01aef18fe8098a0f2f601dbfebd9b.zip | |
Resolve: fix #23880, a scoping bug
This fixes a bug in which items in a block are shadowed by local variables and type parameters that are in scope.
It is a [breaking-change]. For example, the following code breaks:
```rust
fn foo() {
let mut f = 1;
{
fn f() {}
f += 1; // This will now resolve to the function instead of the local variable
}
}
```
Any breakage can be fixed by renaming the item that is no longer shadowed.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
