Skip to content

Commit 07dbb38

Browse files
authored
Rollup merge of rust-lang#127873 - workingjubilee:forbid-unsafe-ops-for-kmc-solid, r=Amanieu
kmc-solid: `#![forbid(unsafe_op_in_unsafe_fn)]` The path logic _should_ handle the forbiddance in the itron sources correctly, despite them being an "out-of-line" module.
2 parents bd26295 + eb09be4 commit 07dbb38

File tree

6 files changed

+5
-2
lines changed

6 files changed

+5
-2
lines changed

std/src/os/solid/io.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
//!
4545
//! [`BorrowedFd<'a>`]: crate::os::solid::io::BorrowedFd
4646
47-
#![deny(unsafe_op_in_unsafe_fn)]
4847
#![unstable(feature = "solid_ext", issue = "none")]
4948

5049
use crate::fmt;

std/src/os/solid/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![stable(feature = "rust1", since = "1.0.0")]
2+
#![forbid(unsafe_op_in_unsafe_fn)]
23

34
pub mod ffi;
45
pub mod io;

std/src/sys/pal/solid/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![allow(dead_code)]
22
#![allow(missing_docs, nonstandard_style)]
3-
#![deny(unsafe_op_in_unsafe_fn)]
3+
#![forbid(unsafe_op_in_unsafe_fn)]
44

55
pub mod abi;
66

std/src/sys/path/unsupported_backslash.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![forbid(unsafe_op_in_unsafe_fn)]
12
use crate::ffi::OsStr;
23
use crate::io;
34
use crate::path::{Path, PathBuf, Prefix};

std/src/sys/sync/mutex/itron.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Mutex implementation backed by μITRON mutexes. Assumes `acre_mtx` and
22
//! `TA_INHERIT` are available.
3+
#![forbid(unsafe_op_in_unsafe_fn)]
34

45
use crate::sys::pal::itron::{
56
abi,

std/src/sys/sync/rwlock/solid.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! A readers-writer lock implementation backed by the SOLID kernel extension.
2+
#![forbid(unsafe_op_in_unsafe_fn)]
23

34
use crate::sys::pal::{
45
abi,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy