diff options
| author | bors <bors@rust-lang.org> | 2016-02-26 04:38:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-02-26 04:38:28 +0000 |
| commit | 9c6a0088fbdae5a6554c39f8db9207c1b878eb05 (patch) | |
| tree | 15c6bd51f453053cfac2183ed2c2628baf55342b /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 15e9a95a4b9557eac48179b1dce5119a0dfa0b31 (diff) | |
| parent | 2942cf7b0ace5a23fc26713f49de7b1e696bfb16 (diff) | |
| download | rust-9c6a0088fbdae5a6554c39f8db9207c1b878eb05.tar.gz rust-9c6a0088fbdae5a6554c39f8db9207c1b878eb05.zip | |
Auto merge of #31857 - jseyfried:fix_scoping, r=nikomatsakis
This fixes a bug (#31845) introduced in #31105 in which lexical scopes contain items from all anonymous module ancestors, even if the path to the anonymous module includes a normal module:
```rust
fn f() {
fn g() {}
mod foo {
fn h() {
g(); // This erroneously resolves on nightly
}
}
}
```
This is a [breaking-change] on nightly but not on stable or beta.
r? @nikomatsakis
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
