Skip to content

Commit 80b756c

Browse files
committed
Excluding functions with compiler_builtins as builtin functions
1 parent e30f5e2 commit 80b756c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_codegen_ssa/src/back/symbol_export.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ 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)
114+
&& name.contains("compiler_builtins");
114115
let used = name == "rust_eh_personality";
115116

116117
let export_level = if special_runtime_crate {

0 commit comments

Comments
 (0)