Skip to content

Commit 12ce6d5

Browse files
committed
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.
1 parent 60bf1cd commit 12ce6d5

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

Diff for: crates/core_arch/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![allow(dead_code)]
44
#![allow(unused_features)]
55
#![allow(internal_features)]
6+
#![allow(unsafe_op_in_unsafe_fn)]
67
#![deny(rust_2018_idioms)]
78
#![feature(
89
custom_inner_attributes,

Diff for: crates/std_detect/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#![feature(staged_api, doc_cfg, allow_internal_unstable)]
1919
#![deny(rust_2018_idioms)]
2020
#![allow(clippy::shadow_reuse)]
21+
#![allow(unsafe_op_in_unsafe_fn)]
2122
#![cfg_attr(test, allow(unused_imports))]
2223
#![no_std]
2324
#![allow(internal_features)]

Diff for: examples/connect5.rs

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
//! each move.
3030
3131
#![allow(internal_features)]
32+
#![allow(unsafe_op_in_unsafe_fn)]
3233
#![feature(avx512_target_feature)]
3334
#![cfg_attr(target_arch = "x86", feature(stdarch_x86_avx512, stdarch_internal))]
3435
#![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_avx512, stdarch_internal))]

Diff for: examples/hex.rs

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
clippy::cast_sign_loss,
3030
clippy::missing_docs_in_private_items
3131
)]
32+
#![allow(unsafe_op_in_unsafe_fn)]
3233

3334
use std::{
3435
io::{self, Read},

Diff for: examples/wasm.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! A simple slab allocator for pages in wasm
22
33
#![cfg(target_arch = "wasm32")]
4+
#![allow(unsafe_op_in_unsafe_fn)]
45

56
use std::ptr;
67

0 commit comments

Comments
 (0)