Skip to content

Commit 8c95207

Browse files
committed
Don't special-case Usually in instantiation mode selection
1 parent 1ef34d6 commit 8c95207

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/mir

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/mir/mono.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl<'tcx> MonoItem<'tcx> {
138138
// conflict with upstream crates as it could be an exported
139139
// symbol.
140140
match tcx.codegen_fn_attrs(instance.def_id()).inline {
141-
InlineAttr::Always | InlineAttr::Usually => InstantiationMode::LocalCopy,
141+
InlineAttr::Always => InstantiationMode::LocalCopy,
142142
_ => InstantiationMode::GloballyShared { may_conflict: true },
143143
}
144144
}

0 commit comments

Comments
 (0)