mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 10:23:23 +00:00
Use deny(unsafe_code) instead of forbid(unsafe_code)
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
da3e279ac6
commit
c02eacd50c
@ -2,7 +2,7 @@
|
||||
|
||||
//! The util of Asterinas.
|
||||
#![no_std]
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(unsafe_code)]
|
||||
#![feature(int_roundings)]
|
||||
|
||||
extern crate alloc;
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#![feature(proc_macro_diagnostic)]
|
||||
#![allow(dead_code)]
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(unsafe_code)]
|
||||
|
||||
mod init_comp;
|
||||
mod priority;
|
||||
|
@ -4,7 +4,7 @@
|
||||
//!
|
||||
|
||||
#![no_std]
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(unsafe_code)]
|
||||
#![feature(fn_traits)]
|
||||
|
||||
extern crate alloc;
|
||||
|
@ -16,7 +16,7 @@
|
||||
//! ```
|
||||
|
||||
#![cfg_attr(not(test), no_std)]
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(unsafe_code)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
extern crate alloc;
|
||||
|
@ -104,7 +104,7 @@
|
||||
#![cfg_attr(not(test), no_std)]
|
||||
#![feature(coerce_unsized)]
|
||||
#![feature(unsize)]
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(unsafe_code)]
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
|
Reference in New Issue
Block a user