rust/compiler/rustc_resolve/src
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
..
late resolve: improve "try using tuple struct" message 2020-10-15 18:01:47 +01:00
build_reduced_graph.rs Compute proper module parent during resolution 2020-10-24 14:28:13 -04:00
check_unused.rs Attach TokenStream to ast::Visibility 2020-09-10 17:33:06 -04:00
def_collector.rs Auto merge of #77546 - lcnr:impl-trait-closure, r=eddyb 2020-10-25 07:03:58 +00:00
diagnostics.rs Rollup merge of #75209 - Hirrolot:suggest-macro-imports, r=estebank 2020-10-17 05:36:32 +09:00
imports.rs Revert "resolve: Avoid "self-confirming" import resolutions in one more case" 2020-10-02 00:58:37 +03:00
late.rs Suggest correct place to add self parameter when inside closure 2020-10-17 13:36:59 +02:00
lib.rs Auto merge of #78134 - bugadani:arena-nodrop, r=lcnr 2020-10-22 07:05:21 +00:00
macros.rs resolve: Relax macro resolution consistency check to account for any errors 2020-10-24 21:26:08 +03:00