Skip to content

Commit 5886ba0

Browse files
committed
Excluding functions with compiler_builtins as builtin functions
1 parent e30f5e2 commit 5886ba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/back/symbol_export.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ fn reachable_non_generics_provider(tcx: TyCtxt<'_>, _: LocalCrate) -> DefIdMap<S
110110
// We have to preserve the symbols of the built-in functions during LTO.
111111
let is_builtin_fn = is_compiler_builtins
112112
&& symbol_export_level(tcx, def_id.to_def_id())
113-
.is_below_threshold(SymbolExportLevel::C);
113+
.is_below_threshold(SymbolExportLevel::C) && name.contains("compiler_builtins");
114114
let used = name == "rust_eh_personality";
115115

116116
let export_level = if special_runtime_crate {

0 commit comments

Comments
 (0)