about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2025-02-09 10:13:17 -0800
committerEric Huss <eric@huss.org>2025-02-09 12:31:30 -0800
commit844a604bf05d5d2aefb87a0696807e33e770cc67 (patch)
tree9aa3cfd17925f1e5c33be39e9ab1a97b3810ab8c
parent2d7474488526bd8e11354c04fc58cab487106b78 (diff)
downloadrust-844a604bf05d5d2aefb87a0696807e33e770cc67.tar.gz
rust-844a604bf05d5d2aefb87a0696807e33e770cc67.zip
Allow unsafe_op_in_unsafe_fn
Because stdarch has a really large number of unsafe functions with
single-line calls, `unsafe_op_in_unsafe_fn` would end up adding a lot of
noise, so for now we will allow it to migrate to 2024.
-rw-r--r--library/stdarch/crates/core_arch/src/lib.rs1
-rw-r--r--library/stdarch/crates/std_detect/src/lib.rs1
-rw-r--r--library/stdarch/examples/connect5.rs1
-rw-r--r--library/stdarch/examples/hex.rs1
-rw-r--r--library/stdarch/examples/wasm.rs1
5 files changed, 5 insertions, 0 deletions
diff --git a/library/stdarch/crates/core_arch/src/lib.rs b/library/stdarch/crates/core_arch/src/lib.rs
index acec8d3f767..b85200a73a4 100644
--- a/library/stdarch/crates/core_arch/src/lib.rs
+++ b/library/stdarch/crates/core_arch/src/lib.rs
@@ -3,6 +3,7 @@
 #![allow(dead_code)]
 #![allow(unused_features)]
 #![allow(internal_features)]
+#![allow(unsafe_op_in_unsafe_fn)]
 #![deny(rust_2018_idioms)]
 #![feature(
     custom_inner_attributes,
diff --git a/library/stdarch/crates/std_detect/src/lib.rs b/library/stdarch/crates/std_detect/src/lib.rs
index ab1b77bad5b..7a074529921 100644
--- a/library/stdarch/crates/std_detect/src/lib.rs
+++ b/library/stdarch/crates/std_detect/src/lib.rs
@@ -18,6 +18,7 @@
 #![feature(staged_api, doc_cfg, allow_internal_unstable)]
 #![deny(rust_2018_idioms)]
 #![allow(clippy::shadow_reuse)]
+#![allow(unsafe_op_in_unsafe_fn)]
 #![cfg_attr(test, allow(unused_imports))]
 #![no_std]
 #![allow(internal_features)]
diff --git a/library/stdarch/examples/connect5.rs b/library/stdarch/examples/connect5.rs
index 6f33c5a1409..88bb18878cc 100644
--- a/library/stdarch/examples/connect5.rs
+++ b/library/stdarch/examples/connect5.rs
@@ -29,6 +29,7 @@
 //! each move.
 
 #![allow(internal_features)]
+#![allow(unsafe_op_in_unsafe_fn)]
 #![feature(avx512_target_feature)]
 #![cfg_attr(target_arch = "x86", feature(stdarch_x86_avx512, stdarch_internal))]
 #![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_avx512, stdarch_internal))]
diff --git a/library/stdarch/examples/hex.rs b/library/stdarch/examples/hex.rs
index add2bc47f6f..be42e2e41c9 100644
--- a/library/stdarch/examples/hex.rs
+++ b/library/stdarch/examples/hex.rs
@@ -29,6 +29,7 @@
     clippy::cast_sign_loss,
     clippy::missing_docs_in_private_items
 )]
+#![allow(unsafe_op_in_unsafe_fn)]
 
 use std::{
     io::{self, Read},
diff --git a/library/stdarch/examples/wasm.rs b/library/stdarch/examples/wasm.rs
index 7d75fefea2c..8ad38f3a031 100644
--- a/library/stdarch/examples/wasm.rs
+++ b/library/stdarch/examples/wasm.rs
@@ -1,6 +1,7 @@
 //! A simple slab allocator for pages in wasm
 
 #![cfg(target_arch = "wasm32")]
+#![allow(unsafe_op_in_unsafe_fn)]
 
 use std::ptr;