mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 00:04:11 +00:00
abi: remove redundant fn_sig
hook from provide_extern
.
This commit is contained in:
parent
1436572c3a
commit
f8333127d7
@ -52,16 +52,9 @@ pub(crate) fn provide(providers: &mut Providers) {
|
||||
}
|
||||
|
||||
pub(crate) fn provide_extern(providers: &mut Providers) {
|
||||
// See comments in provide(), only this time we use the default *extern* provider.
|
||||
providers.fn_sig = |tcx, def_id| {
|
||||
let result = (rustc_interface::DEFAULT_EXTERN_QUERY_PROVIDERS.fn_sig)(tcx, def_id);
|
||||
result.map_bound(|mut inner| {
|
||||
if let SpecAbi::C { .. } = inner.abi {
|
||||
inner.abi = SpecAbi::Rust;
|
||||
}
|
||||
inner
|
||||
})
|
||||
};
|
||||
// Reset providers overriden in `provide`, that need to still go through the
|
||||
// `rustc_metadata::rmeta` decoding, as opposed to being locally computed.
|
||||
providers.fn_sig = rustc_interface::DEFAULT_EXTERN_QUERY_PROVIDERS.fn_sig;
|
||||
}
|
||||
|
||||
/// If a struct contains a pointer to itself, even indirectly, then doing a naiive recursive walk
|
||||
|
Loading…
Reference in New Issue
Block a user