]> git.lizzy.rs Git - rust.git/commit
Fix resolution of `crate` paths from within blocks
authorJonas Schievink <jonasschievink@gmail.com>
Tue, 2 Feb 2021 17:02:12 +0000 (18:02 +0100)
committerJonas Schievink <jonasschievink@gmail.com>
Tue, 2 Feb 2021 17:02:12 +0000 (18:02 +0100)
commit5914f86d473f34e0fa78dc150024b07bd26a2db9
treec8c20aff862d670f1baebd33d95e645a1281ca7f
parent12e8cc4aa29f616e43b4951e18b1f1f231e539a3
Fix resolution of `crate` paths from within blocks

They resolve to the crate root, not the DefMap's root module (which
can be a block)
crates/hir_def/src/nameres.rs
crates/hir_def/src/nameres/path_resolution.rs