Skip to content

Commit 368b2ef

Browse files
committed
Don't export upstream monomorphizations from compiler-builtins
1 parent 9044e98 commit 368b2ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_codegen_ssa/src/back/symbol_export.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,11 @@ fn upstream_monomorphizations_provider(
399399
let async_drop_in_place_fn_def_id = tcx.lang_items().async_drop_in_place_fn();
400400

401401
for &cnum in cnums.iter() {
402+
// Don't export upstream monomorphizations from compiler-builtins:
403+
// https://github.com/rust-lang/rust/issues/150173
404+
if tcx.is_compiler_builtins(cnum) {
405+
continue;
406+
}
402407
for (exported_symbol, _) in tcx.exported_generic_symbols(cnum).iter() {
403408
let (def_id, args) = match *exported_symbol {
404409
ExportedSymbol::Generic(def_id, args) => (def_id, args),

0 commit comments

Comments
 (0)