Skip to content

Commit b1334ac

Browse files
itron: forbid(unsafe_op_in_unsafe_fn)
1 parent e3d6313 commit b1334ac

File tree

8 files changed

+9
-0
lines changed

8 files changed

+9
-0
lines changed

library/std/src/sys/pal/itron/abi.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! ABI for μITRON derivatives
2+
#![forbid(unsafe_op_in_unsafe_fn)]
23
pub type int_t = crate::os::raw::c_int;
34
pub type uint_t = crate::os::raw::c_uint;
45
pub type bool_t = int_t;

library/std/src/sys/pal/itron/error.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![forbid(unsafe_op_in_unsafe_fn)]
12
use crate::{fmt, io::ErrorKind};
23

34
use super::abi;

library/std/src/sys/pal/itron/spin.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![forbid(unsafe_op_in_unsafe_fn)]
12
use super::abi;
23
use crate::{
34
cell::UnsafeCell,

library/std/src/sys/pal/itron/task.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![forbid(unsafe_op_in_unsafe_fn)]
12
use super::{
23
abi,
34
error::{fail, fail_aborting, ItronError},

library/std/src/sys/pal/itron/thread.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Thread implementation backed by μITRON tasks. Assumes `acre_tsk` and
22
//! `exd_tsk` are available.
3+
#![forbid(unsafe_op_in_unsafe_fn)]
34

45
use super::{
56
abi,

library/std/src/sys/pal/itron/thread_parking.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![forbid(unsafe_op_in_unsafe_fn)]
2+
13
use super::abi;
24
use super::error::expect_success_aborting;
35
use super::time::with_tmos;

library/std/src/sys/pal/itron/time.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![forbid(unsafe_op_in_unsafe_fn)]
12
use super::{abi, error::expect_success};
23
use crate::{mem::MaybeUninit, time::Duration};
34

library/std/src/sys/sync/condvar/itron.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! POSIX conditional variable implementation based on user-space wait queues.
2+
#![forbid(unsafe_op_in_unsafe_fn)]
23

34
use crate::sys::pal::itron::{
45
abi, error::expect_success_aborting, spin::SpinMutex, task, time::with_tmos_strong,

0 commit comments

Comments
 (0)