@@ -21,7 +21,7 @@ use crate::*;
2121#[ derive( Debug , Copy , Clone ) ]
2222pub struct DynSym ( Symbol ) ;
2323
24- #[ allow ( clippy:: should_implement_trait) ]
24+ #[ expect ( clippy:: should_implement_trait) ]
2525impl DynSym {
2626 pub fn from_str ( name : & str ) -> Self {
2727 DynSym ( Symbol :: intern ( name) )
@@ -648,7 +648,7 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
648648 let val = this. read_scalar ( val) ?. to_i32 ( ) ?;
649649 let num = this. read_target_usize ( num) ?;
650650 // The docs say val is "interpreted as unsigned char".
651- #[ allow ( clippy:: cast_sign_loss, clippy:: cast_possible_truncation) ]
651+ #[ expect ( clippy:: cast_sign_loss, clippy:: cast_possible_truncation) ]
652652 let val = val as u8 ;
653653
654654 // C requires that this must always be a valid pointer (C18 §7.1.4).
@@ -661,7 +661,7 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
661661 . position ( |& c| c == val)
662662 {
663663 let idx = u64:: try_from ( idx) . unwrap ( ) ;
664- #[ allow ( clippy:: arithmetic_side_effects) ] // idx < num, so this never wraps
664+ #[ expect ( clippy:: arithmetic_side_effects) ] // idx < num, so this never wraps
665665 let new_ptr = ptr. wrapping_offset ( Size :: from_bytes ( num - idx - 1 ) , this) ;
666666 this. write_pointer ( new_ptr, dest) ?;
667667 } else {
@@ -675,7 +675,7 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
675675 let val = this. read_scalar ( val) ?. to_i32 ( ) ?;
676676 let num = this. read_target_usize ( num) ?;
677677 // The docs say val is "interpreted as unsigned char".
678- #[ allow ( clippy:: cast_sign_loss, clippy:: cast_possible_truncation) ]
678+ #[ expect ( clippy:: cast_sign_loss, clippy:: cast_possible_truncation) ]
679679 let val = val as u8 ;
680680
681681 // C requires that this must always be a valid pointer (C18 §7.1.4).
0 commit comments