File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
crates/rustc_codegen_spirv/src Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,9 @@ pub(crate) fn provide(providers: &mut Providers) {
52
52
}
53
53
54
54
pub ( crate ) fn provide_extern ( providers : & mut Providers ) {
55
- // See comments in provide(), only this time we use the default *extern* provider.
56
- providers. fn_sig = |tcx, def_id| {
57
- let result = ( rustc_interface:: DEFAULT_EXTERN_QUERY_PROVIDERS . fn_sig ) ( tcx, def_id) ;
58
- result. map_bound ( |mut inner| {
59
- if let SpecAbi :: C { .. } = inner. abi {
60
- inner. abi = SpecAbi :: Rust ;
61
- }
62
- inner
63
- } )
64
- } ;
55
+ // Reset providers overriden in `provide`, that need to still go through the
56
+ // `rustc_metadata::rmeta` decoding, as opposed to being locally computed.
57
+ providers. fn_sig = rustc_interface:: DEFAULT_EXTERN_QUERY_PROVIDERS . fn_sig ;
65
58
}
66
59
67
60
/// If a struct contains a pointer to itself, even indirectly, then doing a naiive recursive walk
You can’t perform that action at this time.
0 commit comments