about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-06-19 18:21:01 -0700
committerMichael Goulet <michael@errs.io>2022-06-20 21:27:42 -0700
commitf924e74fb1c238b0e6c06c23b51c087f1e6aa0d5 (patch)
treeabd63785910cfff76cba867b5458b8858f344d88 /compiler/rustc_resolve/src
parent08871139915b95ec868aff807f224f78d00f4311 (diff)
downloadrust-f924e74fb1c238b0e6c06c23b51c087f1e6aa0d5.tar.gz
rust-f924e74fb1c238b0e6c06c23b51c087f1e6aa0d5.zip
Provide a segment res in more cases
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/ident.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/ident.rs b/compiler/rustc_resolve/src/ident.rs
index e934e189f05..0cc6d05d1d0 100644
--- a/compiler/rustc_resolve/src/ident.rs
+++ b/compiler/rustc_resolve/src/ident.rs
@@ -1502,6 +1502,7 @@ impl<'a> Resolver<'a> {
                         return PathResult::NonModule(PartialRes::new(Res::Err));
                     } else if opt_ns.is_some() && (is_last || maybe_assoc) {
                         self.lint_if_path_starts_with_module(finalize, path, second_binding);
+                        record_segment_res(self, res);
                         return PathResult::NonModule(PartialRes::with_unresolved_segments(
                             res,
                             path.len() - i - 1,