@@ -85,7 +85,7 @@ fn entry_fn(tcx: TyCtxt<'_>) -> (DefId, MiriEntryFnType) {
8585 return ( def_id, MiriEntryFnType :: Rustc ( entry_type) ) ;
8686 }
8787 // 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, _) | {
8989 if sym. symbol_name_for_local_instance ( tcx) . name == "miri_start" { Some ( sym) } else { None }
9090 } ) ;
9191 if let Some ( ExportedSymbol :: NonGeneric ( id) ) = sym {
@@ -250,10 +250,10 @@ impl rustc_driver::Callbacks for MiriBeRustCompilerCalls {
250250 // Queries overridden here affect the data stored in `rmeta` files of dependencies,
251251 // which will be used later in non-`MIRI_BE_RUSTC` mode.
252252 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
254254 // an empty result if `tcx.sess.opts.output_types.should_codegen()` is false.
255255 // 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 | {
257257 let reachable_set = tcx. with_stable_hashing_context ( |hcx| {
258258 tcx. reachable_set ( ( ) ) . to_sorted ( & hcx, true )
259259 } ) ;
0 commit comments