about summary refs log tree commit diff
path: root/library/stdarch/examples
diff options
context:
space:
mode:
Diffstat (limited to 'library/stdarch/examples')
-rw-r--r--library/stdarch/examples/connect5.rs1
-rw-r--r--library/stdarch/examples/hex.rs1
-rw-r--r--library/stdarch/examples/wasm.rs1
3 files changed, 3 insertions, 0 deletions
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;