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`
This commit is contained in:
Matthias Krüger 2025-04-15 21:16:05 +02:00 committed by GitHub
commit 2144c940ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 13 deletions

View file

@ -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);
}