about summary refs log tree commit diff
path: root/library/std/src/os
diff options
context:
space:
mode:
authorIan Chamberlain <ian.h.chamberlain@gmail.com>2024-07-19 20:08:40 -0400
committerIan Chamberlain <ian.h.chamberlain@gmail.com>2024-07-21 20:12:54 -0400
commitdba6b74dd8b31cdb3ca0aba3ed33f644bca42de0 (patch)
tree618819c3fb5ed0f7aa2479e149fabaa36691b5de /library/std/src/os
parent9057c3ffec44926d5e149dc13ff3ce1613b69cce (diff)
Fix warnings when checking armv6k-nintendo-3ds
Also fix one instance of unsafe_op_in_unsafe_fn that's specific to
horizon + vita - most others should be common with other code.
Diffstat (limited to 'library/std/src/os')
-rw-r--r--library/std/src/os/horizon/mod.rs1
-rw-r--r--library/std/src/os/horizon/raw.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/os/horizon/mod.rs b/library/std/src/os/horizon/mod.rs
index 326d0ae9cb9..14ce409f42c 100644
--- a/library/std/src/os/horizon/mod.rs
+++ b/library/std/src/os/horizon/mod.rs
@@ -1,5 +1,6 @@
 //! Definitions for Horizon OS
 
+#![forbid(unsafe_op_in_unsafe_fn)]
 #![stable(feature = "raw_ext", since = "1.1.0")]
 
 pub mod fs;
diff --git a/library/std/src/os/horizon/raw.rs b/library/std/src/os/horizon/raw.rs
index 929fa7db1f9..e5368ea265a 100644
--- a/library/std/src/os/horizon/raw.rs
+++ b/library/std/src/os/horizon/raw.rs
@@ -38,6 +38,7 @@ pub type time_t = libc::time_t;
 #[repr(C)]
 #[derive(Clone)]
 #[stable(feature = "raw_ext", since = "1.1.0")]
+#[allow(dead_code)] // This exists for parity with other `raw` modules, but isn't actually used.
 pub struct stat {
     #[stable(feature = "raw_ext", since = "1.1.0")]
     pub st_dev: dev_t,