about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-10-25 18:43:37 +0900
committerGitHub <noreply@github.com>2020-10-25 18:43:37 +0900
commit569d29d55c240eea3ff35d0a16572c2b81dd40bf (patch)
treef62e6c36ea47b873ea3028796bb96bf4e20d59dd /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent3e0dd24a6c0812eedbb02182a75c352f8a7e184a (diff)
parent283053a742277f9b949facdfc5f4996f503f3c4e (diff)
downloadrust-569d29d55c240eea3ff35d0a16572c2b81dd40bf.tar.gz
rust-569d29d55c240eea3ff35d0a16572c2b81dd40bf.zip
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions