Files
rust/compiler/rustc_expand
Stuart Cook a2b84ca4d1 Rollup merge of #162363 - mu001999-contrib:fix-162080, r=petrochenkov
Use correct `dir_path` when parsing module from path

Fixes https://github.com/rust-lang/rust/issues/162080

We previously used the incorrect `dir_path` (which was `name`, the parent of `name/mod.rs`, in this case), and then joined it with `name/mod.rs` again, resulting in `name/name/mod.rs`.

The first commit adds the regression test and snapshot of current behavior, the second commit fixes it.

r? petrochenkov
2026-09-09 16:25:18 +10:00
..