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:
Taylor Cramer 2018-10-18 17:11:51 -07:00
parent e7f5d48059
commit ca35ca8395
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