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>2016-02-26 04:38:28 +0000
committerbors <bors@rust-lang.org>2016-02-26 04:38:28 +0000
commit9c6a0088fbdae5a6554c39f8db9207c1b878eb05 (patch)
tree15c6bd51f453053cfac2183ed2c2628baf55342b /src/libstd/sys/unix/stack_overflow.rs
parent15e9a95a4b9557eac48179b1dce5119a0dfa0b31 (diff)
parent2942cf7b0ace5a23fc26713f49de7b1e696bfb16 (diff)
downloadrust-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