File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,13 @@ use core::sync::atomic::AtomicIsize;
1010static ANY_TRIGGERED : AtomicBool = AtomicBool :: new ( false ) ;
1111
1212pub ( crate ) const NSIG : usize = 64 ;
13+
14+ #[ expect(
15+ clippy:: declare_interior_mutable_const,
16+ reason = "workaround for const array repeat limitation (rust issue #79270)"
17+ ) ]
1318const ATOMIC_FALSE : AtomicBool = AtomicBool :: new ( false ) ;
19+
1420pub ( crate ) static TRIGGERS : [ AtomicBool ; NSIG ] = [ ATOMIC_FALSE ; NSIG ] ;
1521
1622#[ cfg( windows) ]
Original file line number Diff line number Diff line change @@ -450,8 +450,8 @@ pub(crate) mod _signal {
450450 use crate :: builtins:: PySet ;
451451 let set = PySet :: default ( ) . into_ref ( & vm. ctx ) ;
452452 for signum in SIGNUM_RANGE {
453- if host_signal:: sigset_contains ( mask, signum as i32 ) {
454- set. add ( vm. ctx . new_int ( signum as i32 ) . into ( ) , vm) ?;
453+ if host_signal:: sigset_contains ( mask, signum) {
454+ set. add ( vm. ctx . new_int ( signum) . into ( ) , vm) ?;
455455 }
456456 }
457457 Ok ( set. into ( ) )
You can’t perform that action at this time.
0 commit comments