Skip to content

Commit

Permalink
fix unnecessary unsafe error in doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung authored and Amanieu committed Mar 4, 2025
1 parent 85efc78 commit 3eca9a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/core_arch/src/x86/sse41.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ pub fn _mm_blend_ps<const IMM4: i32>(a: __m128, b: __m128) -> __m128 {
/// # fn main() {
/// # if is_x86_feature_detected!("sse4.1") {
/// # #[target_feature(enable = "sse4.1")]
/// # #[allow(unused_unsafe)] // FIXME remove after stdarch bump in rustc
/// # unsafe fn worker() { unsafe {
/// let mut float_store = vec![1.0, 1.0, 2.0, 3.0];
/// let simd_floats = _mm_set_ps(2.5, 5.0, 7.5, 10.0);
Expand Down

0 comments on commit 3eca9a8

Please sign in to comment.