Skip to content

Commit c8046ef

Browse files
authored
Remove allow(unused_mut) due to the rustc bug (#319)
1 parent cf2d269 commit c8046ef

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

src/api/ops/scalar_shifts.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,8 @@ macro_rules! impl_ops_scalar_shifts {
3636
use super::*;
3737
#[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
3838
#[cfg_attr(any(target_arch = "s390x", target_arch = "sparc64"),
39-
allow(unreachable_code,
40-
unused_variables,
41-
unused_mut)
39+
allow(unreachable_code, unused_variables)
4240
)]
43-
// ^^^ FIXME: https://github.com/rust-lang/rust/issues/55344
4441
#[cfg(not(target_arch = "aarch64"))]
4542
//~^ FIXME: https://github.com/rust-lang/packed_simd/issues/317
4643
fn ops_scalar_shifts() {

src/api/ops/vector_shifts.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,8 @@ macro_rules! impl_ops_vector_shifts {
3737
use super::*;
3838
#[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
3939
#[cfg_attr(any(target_arch = "s390x", target_arch = "sparc64"),
40-
allow(unreachable_code,
41-
unused_variables,
42-
unused_mut)
40+
allow(unreachable_code, unused_variables)
4341
)]
44-
// ^^^ FIXME: https://github.com/rust-lang/rust/issues/55344
4542
#[cfg(not(target_arch = "aarch64"))]
4643
//~^ FIXME: https://github.com/rust-lang/packed_simd/issues/317
4744
fn ops_vector_shifts() {

src/api/reductions/float_arithmetic.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ macro_rules! impl_reduction_float_arithmetic {
144144
#[cfg_attr(not(target_arch = "wasm32"), test)]
145145
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
146146
#[allow(unreachable_code)]
147-
#[allow(unused_mut)]
148-
// ^^^ FIXME: https://github.com/rust-lang/rust/issues/55344
149147
fn sum_nan() {
150148
// FIXME: https://bugs.llvm.org/show_bug.cgi?id=36732
151149
// https://github.com/rust-lang-nursery/packed_simd/issues/6
@@ -175,8 +173,6 @@ macro_rules! impl_reduction_float_arithmetic {
175173
#[cfg_attr(not(target_arch = "wasm32"), test)]
176174
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
177175
#[allow(unreachable_code)]
178-
#[allow(unused_mut)]
179-
// ^^^ FIXME: https://github.com/rust-lang/rust/issues/55344
180176
fn product_nan() {
181177
// FIXME: https://bugs.llvm.org/show_bug.cgi?id=36732
182178
// https://github.com/rust-lang-nursery/packed_simd/issues/6

0 commit comments

Comments
 (0)