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