@@ -8,7 +8,7 @@ use rspirv::spirv::{StorageClass, Word};
88use rustc_data_structures:: fx:: FxHashMap ;
99use rustc_errors:: ErrorGuaranteed ;
1010use rustc_index:: Idx ;
11- use rustc_middle:: query:: { ExternProviders , Providers } ;
11+ use rustc_middle:: query:: Providers ;
1212use rustc_middle:: ty:: layout:: { FnAbiOf , LayoutOf , TyAndLayout } ;
1313use rustc_middle:: ty:: GenericArgsRef ;
1414use rustc_middle:: ty:: {
@@ -174,12 +174,6 @@ pub(crate) fn provide(providers: &mut Providers) {
174174 } ;
175175}
176176
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-
183177/// If a struct contains a pointer to itself, even indirectly, then doing a naiive recursive walk
184178/// of the fields will result in an infinite loop. Because pointers are the only thing that are
185179/// 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>> {
312306 let return_type = match self . ret . mode {
313307 PassMode :: Ignore => SpirvType :: Void . def ( span, cx) ,
314308 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 ! (
316310 span,
317311 "query hooks should've made this `PassMode` impossible: {:#?}" ,
318312 self . ret
@@ -328,7 +322,7 @@ impl<'tcx> ConvSpirvType<'tcx> for FnAbi<'tcx, Ty<'tcx>> {
328322 argument_types. push ( scalar_pair_element_backend_type ( cx, span, arg. layout , 1 ) ) ;
329323 continue ;
330324 }
331- PassMode :: Cast ( _ , _ ) | PassMode :: Indirect { .. } => span_bug ! (
325+ PassMode :: Cast { .. } | PassMode :: Indirect { .. } => span_bug ! (
332326 span,
333327 "query hooks should've made this `PassMode` impossible: {:#?}" ,
334328 arg
@@ -867,7 +861,7 @@ fn trans_intrinsic_type<'tcx>(
867861 const_ : Const < ' tcx > ,
868862 ) -> Result < P , ErrorGuaranteed > {
869863 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 ( ) ) ;
871865 match P :: from_u128 ( value) {
872866 Some ( v) => Ok ( v) ,
873867 None => Err ( cx
0 commit comments