@@ -85,7 +85,7 @@ fn entry_fn(tcx: TyCtxt<'_>) -> (DefId, MiriEntryFnType) {
85
85
return ( def_id, MiriEntryFnType :: Rustc ( entry_type) ) ;
86
86
}
87
87
// Look for a symbol in the local crate named `miri_start`, and treat that as the entry point.
88
- let sym = tcx. exported_symbols ( LOCAL_CRATE ) . iter ( ) . find_map ( |( sym, _) | {
88
+ let sym = tcx. exported_non_generic_symbols ( LOCAL_CRATE ) . iter ( ) . find_map ( |( sym, _) | {
89
89
if sym. symbol_name_for_local_instance ( tcx) . name == "miri_start" { Some ( sym) } else { None }
90
90
} ) ;
91
91
if let Some ( ExportedSymbol :: NonGeneric ( id) ) = sym {
@@ -250,10 +250,10 @@ impl rustc_driver::Callbacks for MiriBeRustCompilerCalls {
250
250
// Queries overridden here affect the data stored in `rmeta` files of dependencies,
251
251
// which will be used later in non-`MIRI_BE_RUSTC` mode.
252
252
config. override_queries = Some ( |_, local_providers| {
253
- // `exported_symbols ` and `reachable_non_generics` provided by rustc always returns
253
+ // `exported_non_generic_symbols ` and `reachable_non_generics` provided by rustc always returns
254
254
// an empty result if `tcx.sess.opts.output_types.should_codegen()` is false.
255
255
// In addition we need to add #[used] symbols to exported_symbols for `lookup_link_section`.
256
- local_providers. exported_symbols = |tcx, LocalCrate | {
256
+ local_providers. exported_non_generic_symbols = |tcx, LocalCrate | {
257
257
let reachable_set = tcx. with_stable_hashing_context ( |hcx| {
258
258
tcx. reachable_set ( ( ) ) . to_sorted ( & hcx, true )
259
259
} ) ;
0 commit comments