about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-04-15 21:16:05 +0200
committerGitHub <noreply@github.com>2025-04-15 21:16:05 +0200
commit2144c940ceb49ce1e02faac0c9b667b6c1aa724e (patch)
treec79449db8ea26cc22611d76333947fc844b43bcd /compiler/rustc_resolve/src
parent8bb01ff117b55dcc3fdee0c3d90b6088fd41e30f (diff)
parentc12b4aade031e4ca4babb9cdfbe53f466ae76462 (diff)
downloadrust-2144c940ceb49ce1e02faac0c9b667b6c1aa724e.tar.gz
rust-2144c940ceb49ce1e02faac0c9b667b6c1aa724e.zip
Rollup merge of #139848 - nnethercote:kw-Empty-5, r=compiler-errors
 Reduce kw::Empty usage, part 5

Another step towards https://github.com/rust-lang/rust/issues/137978.

r? `@davidtwco`
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/imports.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/imports.rs b/compiler/rustc_resolve/src/imports.rs
index 3f3b455f4db..762e08b2be5 100644
--- a/compiler/rustc_resolve/src/imports.rs
+++ b/compiler/rustc_resolve/src/imports.rs
@@ -1012,7 +1012,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
                         // HACK(eddyb) `lint_if_path_starts_with_module` needs at least
                         // 2 segments, so the `resolve_path` above won't trigger it.
                         let mut full_path = import.module_path.clone();
-                        full_path.push(Segment::from_ident(Ident::empty()));
+                        full_path.push(Segment::from_ident(Ident::dummy()));
                         self.lint_if_path_starts_with_module(Some(finalize), &full_path, None);
                     }