diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-04-15 21:16:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-15 21:16:05 +0200 |
| commit | 2144c940ceb49ce1e02faac0c9b667b6c1aa724e (patch) | |
| tree | c79449db8ea26cc22611d76333947fc844b43bcd /compiler/rustc_symbol_mangling/src | |
| parent | 8bb01ff117b55dcc3fdee0c3d90b6088fd41e30f (diff) | |
| parent | c12b4aade031e4ca4babb9cdfbe53f466ae76462 (diff) | |
| download | rust-2144c940ceb49ce1e02faac0c9b667b6c1aa724e.tar.gz rust-2144c940ceb49ce1e02faac0c9b667b6c1aa724e.zip | |
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`
Diffstat (limited to 'compiler/rustc_symbol_mangling/src')
| -rw-r--r-- | compiler/rustc_symbol_mangling/src/v0.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_symbol_mangling/src/v0.rs b/compiler/rustc_symbol_mangling/src/v0.rs index a4e1266e764..f310aa65500 100644 --- a/compiler/rustc_symbol_mangling/src/v0.rs +++ b/compiler/rustc_symbol_mangling/src/v0.rs @@ -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)?; } |
