Also check for compiler-builtins in linked_symbols · rust-lang/rust@530ab61 (original) (raw)

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -1824,7 +1824,9 @@ pub(crate) fn linked_symbols(
1824 1824
1825 1825 let export_threshold = symbol_export::crates_export_threshold(&[crate_type]);
1826 1826 for_each_exported_symbols_include_dep(tcx, crate_type, |symbol, info, cnum
1827 -if info.level.is_below_threshold(export_threshold) |
1827 +if info.level.is_below_threshold(export_threshold) && !tcx.is_compiler_builtins(cnum)
1828 + |
1829 +{
1828 1830 symbols.push((
1829 1831 symbol_export::linking_symbol_name_for_instance_in_crate(tcx, symbol, cnum),
1830 1832 info.kind,