about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2025-02-27 09:48:07 -0800
committerAmanieu d'Antras <amanieu@gmail.com>2025-02-28 02:59:16 +0000
commit4efb6d5fd45cd22a4c5409253372cc884a25c41c (patch)
tree14247cf17ee3085d837b6ee672d2aa79180852de /library
parentbcf796a34c2fac9240288e1b62d1e00f11c25cd3 (diff)
downloadrust-4efb6d5fd45cd22a4c5409253372cc884a25c41c.tar.gz
rust-4efb6d5fd45cd22a4c5409253372cc884a25c41c.zip
Fix doctests failing due to unused_unsafe
Diffstat (limited to 'library')
-rw-r--r--library/stdarch/crates/core_arch/src/x86/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/stdarch/crates/core_arch/src/x86/mod.rs b/library/stdarch/crates/core_arch/src/x86/mod.rs
index 9480c23ba1c..0404b1943bc 100644
--- a/library/stdarch/crates/core_arch/src/x86/mod.rs
+++ b/library/stdarch/crates/core_arch/src/x86/mod.rs
@@ -47,6 +47,7 @@ types! {
     ///
     /// # fn main() {
     /// # #[target_feature(enable = "sse2")]
+    /// # #[allow(unused_unsafe)] // temporary, to unstick CI
     /// # unsafe fn foo() { unsafe {
     /// let all_bytes_zero = _mm_setzero_si128();
     /// let all_bytes_one = _mm_set1_epi8(1);
@@ -89,6 +90,7 @@ types! {
     ///
     /// # fn main() {
     /// # #[target_feature(enable = "sse")]
+    /// # #[allow(unused_unsafe)] // temporary, to unstick CI
     /// # unsafe fn foo() { unsafe {
     /// let four_zeros = _mm_setzero_ps();
     /// let four_ones = _mm_set1_ps(1.0);
@@ -131,6 +133,7 @@ types! {
     ///
     /// # fn main() {
     /// # #[target_feature(enable = "sse2")]
+    /// # #[allow(unused_unsafe)] // temporary, to unstick CI
     /// # unsafe fn foo() { unsafe {
     /// let two_zeros = _mm_setzero_pd();
     /// let two_ones = _mm_set1_pd(1.0);
@@ -177,6 +180,7 @@ types! {
     ///
     /// # fn main() {
     /// # #[target_feature(enable = "avx")]
+    /// # #[allow(unused_unsafe)] // temporary, to unstick CI
     /// # unsafe fn foo() { unsafe {
     /// let all_bytes_zero = _mm256_setzero_si256();
     /// let all_bytes_one = _mm256_set1_epi8(1);
@@ -219,6 +223,7 @@ types! {
     ///
     /// # fn main() {
     /// # #[target_feature(enable = "avx")]
+    /// # #[allow(unused_unsafe)] // temporary, to unstick CI
     /// # unsafe fn foo() { unsafe {
     /// let eight_zeros = _mm256_setzero_ps();
     /// let eight_ones = _mm256_set1_ps(1.0);
@@ -261,6 +266,7 @@ types! {
     ///
     /// # fn main() {
     /// # #[target_feature(enable = "avx")]
+    /// # #[allow(unused_unsafe)] // temporary, to unstick CI
     /// # unsafe fn foo() { unsafe {
     /// let four_zeros = _mm256_setzero_pd();
     /// let four_ones = _mm256_set1_pd(1.0);