File tree 1 file changed +0
-12
lines changed
src/librustc_mir/transform
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ use rustc_span::{Span, DUMMY_SP};
24
24
use syntax:: ast:: LitKind ;
25
25
26
26
use rustc_index:: vec:: { Idx , IndexVec } ;
27
- use rustc_target:: spec:: abi:: Abi ;
28
27
29
28
use std:: cell:: Cell ;
30
29
use std:: { cmp, iter, mem, usize} ;
@@ -218,17 +217,6 @@ impl<'tcx> Visitor<'tcx> for Collector<'_, 'tcx> {
218
217
219
218
if let TerminatorKind :: Call { ref func, .. } = * kind {
220
219
if let ty:: FnDef ( def_id, _) = func. ty ( self . body , self . tcx ) . kind {
221
- let fn_sig = self . tcx . fn_sig ( def_id) ;
222
- if let Abi :: RustIntrinsic | Abi :: PlatformIntrinsic = fn_sig. abi ( ) {
223
- let name = self . tcx . item_name ( def_id) ;
224
- // FIXME(eddyb) use `#[rustc_args_required_const(2)]` for shuffles.
225
- if name. as_str ( ) . starts_with ( "simd_shuffle" ) {
226
- self . candidates . push ( Candidate :: Argument { bb : location. block , index : 2 } ) ;
227
-
228
- return ; // Don't double count `simd_shuffle` candidates
229
- }
230
- }
231
-
232
220
if let Some ( constant_args) = args_required_const ( self . tcx , def_id) {
233
221
for index in constant_args {
234
222
self . candidates . push ( Candidate :: Argument { bb : location. block , index } ) ;
You can’t perform that action at this time.
0 commit comments