1
Fork 0

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

@ -776,7 +776,7 @@ impl<'tcx> Printer<'tcx> for SymbolMangler<'tcx> {
self.push_disambiguator(
disambiguated_field.disambiguator as u64,
);
self.push_ident(field_name.unwrap_or(kw::Empty).as_str());
self.push_ident(field_name.unwrap().as_str());
field.print(self)?;
}