Deny dead_code and unused_variables at crate level

This commit is contained in:
Ruihan Li
2024-06-04 02:30:30 +08:00
committed by Tate, Hongliang Tian
parent 9107a1771e
commit ff83ce7667
2 changed files with 0 additions and 4 deletions

View File

@ -16,8 +16,6 @@
#![feature(ptr_sub_ptr)]
#![feature(strict_provenance)]
#![feature(pointer_is_aligned)]
#![allow(dead_code)]
#![allow(unused_variables)]
// The `generic_const_exprs` feature is incomplete however required for the page table
// const generic implementation. We are using this feature in a conservative manner.
#![allow(incomplete_features)]

View File

@ -3,9 +3,7 @@
//! The std library of Asterinas.
#![no_std]
#![deny(unsafe_code)]
#![allow(dead_code)]
#![allow(incomplete_features)]
#![allow(unused_variables)]
#![feature(btree_cursors)]
#![feature(btree_extract_if)]
#![feature(const_option)]