Skip to content

Commit a3158ab

Browse files
committed
transpile: remove #![feature(stdsimd)] for __m64, stabilized in Rust 1.29
1 parent d2cccca commit a3158ab

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • c2rust-transpile/src/translator

c2rust-transpile/src/translator/simd.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,7 @@ impl<'c> Translation<'c> {
254254
(Double, 4) => ("_mm256_setzero_pd", 32),
255255
(Char, 16) | (Int, 4) | (LongLong, 2) => ("_mm_setzero_si128", 16),
256256
(Char, 32) | (Int, 8) | (LongLong, 4) => ("_mm256_setzero_si256", 32),
257-
(Char, 8) | (Int, 2) | (LongLong, 1) => {
258-
// __m64 is still unstable as of rust 1.29
259-
self.use_feature("stdsimd");
260-
261-
("_mm_setzero_si64", 8)
262-
}
257+
(Char, 8) | (Int, 2) | (LongLong, 1) => ("_mm_setzero_si64", 8),
263258
(kind, len) => {
264259
return Err(format_err!(
265260
"Unsupported vector default initializer: {:?} x {}",

0 commit comments

Comments
 (0)