diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-08-15 09:37:24 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-08-15 10:04:04 +0000 |
| commit | 460519a7f509756d07dcf187e671a11fde7b3fca (patch) | |
| tree | b1c5a729150f98f1480bef6de09099346110d70a /compiler/rustc_metadata | |
| parent | f3ef465ffb5cd3da61176ac67e7051eb55b62095 (diff) | |
| download | rust-460519a7f509756d07dcf187e671a11fde7b3fca.tar.gz rust-460519a7f509756d07dcf187e671a11fde7b3fca.zip | |
Merge link_name and export_name
Diffstat (limited to 'compiler/rustc_metadata')
| -rw-r--r-- | compiler/rustc_metadata/src/native_libs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/native_libs.rs b/compiler/rustc_metadata/src/native_libs.rs index 958e314efab..63f1b51df1c 100644 --- a/compiler/rustc_metadata/src/native_libs.rs +++ b/compiler/rustc_metadata/src/native_libs.rs @@ -701,7 +701,7 @@ impl<'tcx> Collector<'tcx> { .link_ordinal .map_or(import_name_type, |ord| Some(PeImportNameType::Ordinal(ord))); - let name = codegen_fn_attrs.link_name.unwrap_or_else(|| self.tcx.item_name(item)); + let name = codegen_fn_attrs.symbol_name.unwrap_or_else(|| self.tcx.item_name(item)); if self.tcx.sess.target.binary_format == BinaryFormat::Elf { let name = name.as_str(); |
