about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-11 00:56:58 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-11 01:02:10 +0100
commitf7ca820f7d3cc9f10041e1df6a91293cbe1ed402 (patch)
treeefa305f8b134694e656fdd117f2779a6bd923281
parent33c245b9e98bc91e18ea1c5033824f4c6f92766f (diff)
downloadrust-f7ca820f7d3cc9f10041e1df6a91293cbe1ed402.tar.gz
rust-f7ca820f7d3cc9f10041e1df6a91293cbe1ed402.zip
Forbid unsafe_op_in_unsafe_fn in hurd-specific os and sys files
Adding it did not cause any error. Most of this falls back on Unix already.

See #127747
-rw-r--r--library/std/src/os/hurd/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/os/hurd/mod.rs b/library/std/src/os/hurd/mod.rs
index aee86c7f616..6cd50aeada1 100644
--- a/library/std/src/os/hurd/mod.rs
+++ b/library/std/src/os/hurd/mod.rs
@@ -1,6 +1,7 @@
 //! Hurd-specific definitions
 
 #![stable(feature = "raw_ext", since = "1.1.0")]
+#![forbid(unsafe_op_in_unsafe_fn)]
 
 pub mod fs;
 pub mod raw;