@@ -401,7 +401,7 @@ impl Debug for GSRSymbol {
401401mod global_callback_table_types {
402402 use super :: ACallbackTableTypes ;
403403
404- #[ allow ( unreachable_pub) ]
404+ #[ cfg_attr ( not ( feature = "global_signals_runtime" ) , expect ( unreachable_pub) ) ]
405405 #[ repr( transparent) ]
406406 pub struct GlobalCallbackTableTypes ( ACallbackTableTypes ) ;
407407}
@@ -557,7 +557,10 @@ impl<T: ?Sized, CTT: ?Sized + CallbackTableTypes> Clone for CallbackTable<T, CTT
557557}
558558
559559impl < T : ?Sized , CTT : ?Sized + CallbackTableTypes > PartialEq for CallbackTable < T , CTT > {
560- #[ expect( unpredictable_function_pointer_comparisons) ] // Used only for interning.
560+ #[ expect(
561+ unpredictable_function_pointer_comparisons,
562+ reason = "Used only for interning."
563+ ) ]
561564 fn eq ( & self , other : & Self ) -> bool {
562565 self . update == other. update && self . on_subscribed_change == other. on_subscribed_change
563566 }
@@ -572,7 +575,10 @@ impl<T: ?Sized, CTT: ?Sized + CallbackTableTypes> PartialOrd for CallbackTable<T
572575}
573576
574577impl < T : ?Sized , CTT : ?Sized + CallbackTableTypes > Ord for CallbackTable < T , CTT > {
575- #[ expect( unpredictable_function_pointer_comparisons) ] // Used only for interning.
578+ #[ expect(
579+ unpredictable_function_pointer_comparisons,
580+ reason = "Used only for interning."
581+ ) ]
576582 fn cmp ( & self , other : & Self ) -> std:: cmp:: Ordering {
577583 match self . update . cmp ( & other. update ) {
578584 core:: cmp:: Ordering :: Equal => { }
@@ -639,7 +645,7 @@ mod private {
639645
640646 use futures_lite:: FutureExt ;
641647
642- #[ allow ( unreachable_pub ) ] // Used with "global_signals_runtime".
648+ #[ cfg_attr ( not ( feature = "global_signals_runtime" ) , expect ( unreachable_pub ) ) ]
643649 pub struct DetachedFuture < ' f , Output : ' f > (
644650 pub ( super ) Pin < Box < dyn ' f + Send + Future < Output = Output > > > ,
645651 ) ;
0 commit comments