Remove a kw::Empty usage in symbol mangling.

Field names are never empty, so the unwrap is unnecessary.
This commit is contained in:
Nicholas Nethercote 2025-04-09 07:16:57 +10:00
parent f3847f0639
commit 2b43e66496

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