rust/compiler/rustc_middle
Yuki Okushi 569d29d55c
Rollup merge of #77984 - Aaron1011:fix/macro-mod-weird-parent, r=petrochenkov
Compute proper module parent during resolution

Fixes #75982

The direct parent of a module may not be a module
(e.g. `const _: () =  { #[path = "foo.rs"] mod foo; };`).

To find the parent of a module for purposes of resolution, we need to
walk up the tree until we hit a module or a crate root.
2020-10-25 18:43:37 +09:00
..
benches
src Rollup merge of #77984 - Aaron1011:fix/macro-mod-weird-parent, r=petrochenkov 2020-10-25 18:43:37 +09:00
Cargo.toml Upgrade to measureme 9.0.0 2020-10-24 22:39:42 -04:00
README.md

For more information about how rustc works, see the rustc dev guide.