Skip to content

Commit e4a8ec8

Browse files
committed
---
yaml --- r: 233486 b: refs/heads/beta c: 62ba85b h: refs/heads/master v: v3
1 parent 0bd627f commit e4a8ec8

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 4b242497d3a3b3fc4e56cf80053dfbecf1b1d308
26+
refs/heads/beta: 62ba85b7aaf4ac1dbbf8b89605ff24d40f93969f
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 370fe2786109360f7c35b8ba552b83b773dd71d6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/librustc_trans/trans/intrinsic.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,10 +1358,10 @@ fn generic_simd_intrinsic<'blk, 'tcx, 'a>
13581358

13591359
if let Some(cmp_op) = comparison {
13601360
assert_eq!(arg_tys.len(), 2);
1361-
require!(arg_tys[0].is_simd(tcx),
1361+
require!(arg_tys[0].is_simd(),
13621362
"SIMD comparison intrinsic monomorphized for non-SIMD argument type `{}`",
13631363
arg_tys[0]);
1364-
require!(ret_ty.is_simd(tcx),
1364+
require!(ret_ty.is_simd(),
13651365
"SIMD comparison intrinsic monomorphized for non-SIMD return type `{}`",
13661366
ret_ty);
13671367

@@ -1393,10 +1393,10 @@ fn generic_simd_intrinsic<'blk, 'tcx, 'a>
13931393
"bad `simd_shuffle` instruction only caught in trans?")
13941394
};
13951395

1396-
require!(arg_tys[0].is_simd(tcx),
1396+
require!(arg_tys[0].is_simd(),
13971397
"SIMD shuffle intrinsic monomorphized with non-SIMD input type `{}`",
13981398
arg_tys[0]);
1399-
require!(ret_ty.is_simd(tcx),
1399+
require!(ret_ty.is_simd(),
14001400
"SIMD shuffle intrinsic monomorphized for non-SIMD return type `{}`",
14011401
ret_ty);
14021402

@@ -1451,7 +1451,7 @@ fn generic_simd_intrinsic<'blk, 'tcx, 'a>
14511451
}
14521452

14531453
if name == "simd_insert" {
1454-
require!(arg_tys[0].is_simd(tcx),
1454+
require!(arg_tys[0].is_simd(),
14551455
"SIMD insert intrinsic monomorphized for non-SIMD input type");
14561456

14571457
let elem_ty = arg_tys[0].simd_type(tcx);
@@ -1460,7 +1460,7 @@ fn generic_simd_intrinsic<'blk, 'tcx, 'a>
14601460
return InsertElement(bcx, llargs[0], llargs[2], llargs[1])
14611461
}
14621462
if name == "simd_extract" {
1463-
require!(arg_tys[0].is_simd(tcx),
1463+
require!(arg_tys[0].is_simd(),
14641464
"SIMD insert intrinsic monomorphized for non-SIMD input type");
14651465

14661466
let elem_ty = arg_tys[0].simd_type(tcx);
@@ -1470,10 +1470,10 @@ fn generic_simd_intrinsic<'blk, 'tcx, 'a>
14701470
}
14711471

14721472
if name == "simd_cast" {
1473-
require!(arg_tys[0].is_simd(tcx),
1473+
require!(arg_tys[0].is_simd(),
14741474
"SIMD cast intrinsic monomorphized with non-SIMD input type `{}`",
14751475
arg_tys[0]);
1476-
require!(ret_ty.is_simd(tcx),
1476+
require!(ret_ty.is_simd(),
14771477
"SIMD cast intrinsic monomorphized with non-SIMD return type `{}`",
14781478
ret_ty);
14791479
require!(arg_tys[0].simd_size(tcx) == ret_ty.simd_size(tcx),
@@ -1614,7 +1614,7 @@ fn generic_simd_intrinsic<'blk, 'tcx, 'a>
16141614
($($name: ident: $($($p: ident),* => $call: expr),*;)*) => {
16151615
$(
16161616
if name == stringify!($name) {
1617-
require!(arg_tys[0].is_simd(tcx),
1617+
require!(arg_tys[0].is_simd(),
16181618
"`{}` intrinsic monomorphized with non-SIMD type `{}`",
16191619
name, arg_tys[0]);
16201620
let in_ = arg_tys[0].simd_type(tcx);

branches/beta/src/librustc_typeck/check/intrinsic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ fn match_intrinsic_type_to_type<'tcx, 'a>(
481481
},
482482
Pointer(_) => unimplemented!(),
483483
Vector(ref inner_expected, len) => {
484-
if !t.is_simd(tcx) {
484+
if !t.is_simd() {
485485
simple_error(&format!("non-simd type `{}`", t),
486486
"simd type");
487487
return;

0 commit comments

Comments
 (0)