diff options
| author | bors <bors@rust-lang.org> | 2016-03-04 06:55:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-03-04 06:55:11 +0000 |
| commit | 5b5e52186917502258a9feadc8bf77a89183386b (patch) | |
| tree | bd2159a81a0d3e7cbb81c6466b9df26292424a32 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 8e261d12e3fcd6700b368d449ada4d10ebbf17f8 (diff) | |
| parent | e2aa90e780eb4d6a27626f7d93ae3d6b567734a7 (diff) | |
| download | rust-5b5e52186917502258a9feadc8bf77a89183386b.tar.gz rust-5b5e52186917502258a9feadc8bf77a89183386b.zip | |
Auto merge of #32006 - jseyfried:fix_expanded_mod_path, r=nikomatsakis
This PR changes the search paths for macro-expanded non-inline modules so that they match ordinary non-inline modules (fixes #31624). This is a [breaking-change].
Right now, the search paths for a macro-expanded non-inline module are computed as if the module were declared in the top level of the file in which the macro was defined.
For example, consider `./foo/mod.rs`:
```rust
mod inconsequential { // moving the macro outside this module wouldn't change anything
macro_rules! mod_decl {
($i:ident) => { mod $i; }
}
}
```
and `./lib.rs`:
```rust
mod foo;
mod bar {
mod_decl!(baz);
//^ Now, rustc expects `./foo/baz.rs` (or `./foo/baz/mod.rs`)
//| After this PR, rustc will expect `./bar/baz.rs` (or `./bar/baz/mod.rs`)
}
```
r? @alexcrichton
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
