Auto merge of #55192 - cramertj:nested-mod, r=petrochenkov

Fix ordering of nested modules in non-mod.rs mods

Flatten relative offset into directory path before adding inline
(mod x { ... }) module names to the current directory path.

Fix #55094
This commit is contained in:
bors 2018-10-28 13:13:55 +00:00
commit 4f5cfa611d
4 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,5 @@
// compile-pass
mod x;
fn main() {}

View file

@ -0,0 +1,5 @@
// ignore-test: not a test
pub mod y {
pub mod z;
}

View file

@ -0,0 +1 @@
// ignore-test: not a test