Use #[expect(lint)], not #[allow(lint)]

This commit is contained in:
Ruihan Li
2025-01-24 18:06:53 +08:00
committed by Tate, Hongliang Tian
parent 1899646391
commit 0dca168717
169 changed files with 254 additions and 254 deletions

View File

@ -21,8 +21,8 @@
#![feature(trait_upcasting)]
// 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)]
#![allow(internal_features)]
#![expect(incomplete_features)]
#![expect(internal_features)]
#![no_std]
#![warn(missing_docs)]
@ -133,7 +133,7 @@ mod test {
use crate::prelude::*;
#[ktest]
#[allow(clippy::eq_op)]
#[expect(clippy::eq_op)]
fn trivial_assertion() {
assert_eq!(0, 0);
}