diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-07-29 20:51:46 +0200 |
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-08-12 12:07:14 +0200 |
| commit | 7aa8707639ede0605d7182bc13047b6e4549e5b1 (patch) | |
| tree | 83384c019d4151ca32f3093186725d2e8ec56a19 /compiler/rustc_middle/src/mir/mono.rs | |
| parent | a1531335fe2807715fff569904d99602022643a7 (diff) | |
| download | rust-7aa8707639ede0605d7182bc13047b6e4549e5b1.tar.gz rust-7aa8707639ede0605d7182bc13047b6e4549e5b1.zip | |
make no_mangle explicit on foreign items
Diffstat (limited to 'compiler/rustc_middle/src/mir/mono.rs')
| -rw-r--r-- | compiler/rustc_middle/src/mir/mono.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/mir/mono.rs b/compiler/rustc_middle/src/mir/mono.rs index e5864660575..3afd946b30a 100644 --- a/compiler/rustc_middle/src/mir/mono.rs +++ b/compiler/rustc_middle/src/mir/mono.rs @@ -151,7 +151,7 @@ impl<'tcx> MonoItem<'tcx> { // instantiation: // We emit an unused_attributes lint for this case, which should be kept in sync if possible. let codegen_fn_attrs = tcx.codegen_instance_attrs(instance.def); - if codegen_fn_attrs.contains_extern_indicator() + if codegen_fn_attrs.contains_extern_indicator(tcx, instance.def.def_id()) || codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::NAKED) { return InstantiationMode::GloballyShared { may_conflict: false }; |
