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};
13
13
use rustc_middle:: ty:: subst:: { GenericArgKind , SubstsRef } ;
14
14
use rustc_middle:: ty:: Instance ;
15
15
use rustc_middle:: ty:: { self , SymbolName , TyCtxt } ;
16
- use rustc_session:: config:: CrateType ;
16
+ use rustc_session:: config:: { CrateType , OomStrategy } ;
17
17
use rustc_target:: spec:: SanitizerSet ;
18
18
19
19
pub fn threshold ( tcx : TyCtxt < ' _ > ) -> SymbolExportLevel {
@@ -206,6 +206,15 @@ fn exported_symbols_provider_local<'tcx>(
206
206
} ,
207
207
) ) ;
208
208
}
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
+ ) ) ;
209
218
}
210
219
211
220
if tcx. sess . instrument_coverage ( ) || tcx. sess . opts . cg . profile_generate . enabled ( ) {
You can’t perform that action at this time.
0 commit comments