File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
compiler/rustc_codegen_ssa/src/back Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use rustc_middle::ty::query::{ExternProviders, Providers};
1313use rustc_middle:: ty:: subst:: { GenericArgKind , SubstsRef } ;
1414use rustc_middle:: ty:: Instance ;
1515use rustc_middle:: ty:: { self , SymbolName , TyCtxt } ;
16- use rustc_session:: config:: CrateType ;
16+ use rustc_session:: config:: { CrateType , OomStrategy } ;
1717use rustc_target:: spec:: SanitizerSet ;
1818
1919pub fn threshold ( tcx : TyCtxt < ' _ > ) -> SymbolExportLevel {
@@ -206,6 +206,15 @@ fn exported_symbols_provider_local<'tcx>(
206206 } ,
207207 ) ) ;
208208 }
209+
210+ symbols. push ( (
211+ ExportedSymbol :: NoDefId ( SymbolName :: new ( tcx, OomStrategy :: SYMBOL ) ) ,
212+ SymbolExportInfo {
213+ level : SymbolExportLevel :: Rust ,
214+ kind : SymbolExportKind :: Text ,
215+ used : false ,
216+ } ,
217+ ) ) ;
209218 }
210219
211220 if tcx. sess . instrument_coverage ( ) || tcx. sess . opts . cg . profile_generate . enabled ( ) {
You can’t perform that action at this time.
0 commit comments