Skip to content

Commit 3eca9a8

Browse files
RalfJungAmanieu
authored andcommitted
fix unnecessary unsafe error in doctest
1 parent 85efc78 commit 3eca9a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/core_arch/src/x86/sse41.rs

+1
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ pub fn _mm_blend_ps<const IMM4: i32>(a: __m128, b: __m128) -> __m128 {
189189
/// # fn main() {
190190
/// # if is_x86_feature_detected!("sse4.1") {
191191
/// # #[target_feature(enable = "sse4.1")]
192+
/// # #[allow(unused_unsafe)] // FIXME remove after stdarch bump in rustc
192193
/// # unsafe fn worker() { unsafe {
193194
/// let mut float_store = vec![1.0, 1.0, 2.0, 3.0];
194195
/// let simd_floats = _mm_set_ps(2.5, 5.0, 7.5, 10.0);

0 commit comments

Comments
 (0)