We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9044e98 commit 7bfc464Copy full SHA for 7bfc464
compiler/rustc_codegen_ssa/src/back/symbol_export.rs
@@ -430,8 +430,11 @@ fn upstream_monomorphizations_provider(
430
Occupied(mut e) => {
431
// If there are multiple monomorphizations available,
432
// we select one deterministically.
433
+ // Also try to avoid selecting compiler-builtins: #150173
434
let other_cnum = *e.get();
- if tcx.stable_crate_id(other_cnum) > tcx.stable_crate_id(cnum) {
435
+ if tcx.stable_crate_id(other_cnum) > tcx.stable_crate_id(cnum)
436
+ || tcx.is_compiler_builtins(other_cnum)
437
+ {
438
e.insert(cnum);
439
}
440
0 commit comments