Skip to content

Commit e232ac9

Browse files
committed
nightly and stable disagree on usage of unsafe
1 parent f12bd66 commit e232ac9

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

curve25519-dalek/src/backend/vector/avx2/field.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
// - isis agora lovecruft <[email protected]>
1010
// - Henry de Valence <[email protected]>
1111

12+
// Nightly and stable currently disagree on the requirement of unsafe blocks when `unsafe_target_feature`
13+
// gets used.
14+
// See: https://github.com/rust-lang/rust/issues/132856
15+
#![allow(unused_unsafe)]
16+
1217
//! An implementation of 4-way vectorized 32bit field arithmetic using
1318
//! AVX2.
1419
//!

curve25519-dalek/src/backend/vector/ifma/field.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// - isis agora lovecruft <[email protected]>
1010
// - Henry de Valence <[email protected]>
1111

12+
// Nightly and stable currently disagree on the requirement of unsafe blocks when `unsafe_target_feature`
13+
// gets used.
14+
// See: https://github.com/rust-lang/rust/issues/132856
15+
#![allow(unused_unsafe)]
1216
#![allow(non_snake_case)]
1317

1418
use crate::backend::vector::packed_simd::u64x4;

curve25519-dalek/src/backend/vector/packed_simd.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
// This file is part of curve25519-dalek.
44
// See LICENSE for licensing information.
55

6+
// Nightly and stable currently disagree on the requirement of unsafe blocks when `unsafe_target_feature`
7+
// gets used.
8+
// See: https://github.com/rust-lang/rust/issues/132856
9+
#![allow(unused_unsafe)]
10+
611
//! This module defines wrappers over platform-specific SIMD types to make them
712
//! more convenient to use.
813
//!

0 commit comments

Comments
 (0)