@@ -8,7 +8,7 @@ use rspirv::spirv::{StorageClass, Word};
8
8
use rustc_data_structures:: fx:: FxHashMap ;
9
9
use rustc_errors:: ErrorGuaranteed ;
10
10
use rustc_index:: Idx ;
11
- use rustc_middle:: query:: { ExternProviders , Providers } ;
11
+ use rustc_middle:: query:: Providers ;
12
12
use rustc_middle:: ty:: layout:: { FnAbiOf , LayoutOf , TyAndLayout } ;
13
13
use rustc_middle:: ty:: GenericArgsRef ;
14
14
use rustc_middle:: ty:: {
@@ -174,12 +174,6 @@ pub(crate) fn provide(providers: &mut Providers) {
174
174
} ;
175
175
}
176
176
177
- pub ( crate ) fn provide_extern ( providers : & mut ExternProviders ) {
178
- // Reset providers overriden in `provide`, that need to still go through the
179
- // `rustc_metadata::rmeta` decoding, as opposed to being locally computed.
180
- providers. fn_sig = rustc_interface:: DEFAULT_EXTERN_QUERY_PROVIDERS . fn_sig ;
181
- }
182
-
183
177
/// If a struct contains a pointer to itself, even indirectly, then doing a naiive recursive walk
184
178
/// of the fields will result in an infinite loop. Because pointers are the only thing that are
185
179
/// allowed to be recursive, keep track of what pointers we've translated, or are currently in the
@@ -312,7 +306,7 @@ impl<'tcx> ConvSpirvType<'tcx> for FnAbi<'tcx, Ty<'tcx>> {
312
306
let return_type = match self . ret . mode {
313
307
PassMode :: Ignore => SpirvType :: Void . def ( span, cx) ,
314
308
PassMode :: Direct ( _) | PassMode :: Pair ( ..) => self . ret . layout . spirv_type ( span, cx) ,
315
- PassMode :: Cast ( _ , _ ) | PassMode :: Indirect { .. } => span_bug ! (
309
+ PassMode :: Cast { .. } | PassMode :: Indirect { .. } => span_bug ! (
316
310
span,
317
311
"query hooks should've made this `PassMode` impossible: {:#?}" ,
318
312
self . ret
@@ -328,7 +322,7 @@ impl<'tcx> ConvSpirvType<'tcx> for FnAbi<'tcx, Ty<'tcx>> {
328
322
argument_types. push ( scalar_pair_element_backend_type ( cx, span, arg. layout , 1 ) ) ;
329
323
continue ;
330
324
}
331
- PassMode :: Cast ( _ , _ ) | PassMode :: Indirect { .. } => span_bug ! (
325
+ PassMode :: Cast { .. } | PassMode :: Indirect { .. } => span_bug ! (
332
326
span,
333
327
"query hooks should've made this `PassMode` impossible: {:#?}" ,
334
328
arg
@@ -867,7 +861,7 @@ fn trans_intrinsic_type<'tcx>(
867
861
const_ : Const < ' tcx > ,
868
862
) -> Result < P , ErrorGuaranteed > {
869
863
assert ! ( const_. ty( ) . is_integral( ) ) ;
870
- let value = const_. eval_bits ( cx. tcx , ParamEnv :: reveal_all ( ) , const_ . ty ( ) ) ;
864
+ let value = const_. eval_bits ( cx. tcx , ParamEnv :: reveal_all ( ) ) ;
871
865
match P :: from_u128 ( value) {
872
866
Some ( v) => Ok ( v) ,
873
867
None => Err ( cx
0 commit comments