Skip to content

Commit 2b43e66

Browse files
committed
Remove a kw::Empty usage in symbol mangling.
Field names are never empty, so the unwrap is unnecessary.
1 parent f3847f0 commit 2b43e66

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_symbol_mangling/src

1 file changed

+1
-1
lines changed

compiler/rustc_symbol_mangling/src/v0.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ impl<'tcx> Printer<'tcx> for SymbolMangler<'tcx> {
776776
self.push_disambiguator(
777777
disambiguated_field.disambiguator as u64,
778778
);
779-
self.push_ident(field_name.unwrap_or(kw::Empty).as_str());
779+
self.push_ident(field_name.unwrap().as_str());
780780

781781
field.print(self)?;
782782
}

0 commit comments

Comments
 (0)