@@ -951,6 +951,7 @@ impl SCB {
951
951
// NOTE(unsafe) atomic read with no side effects
952
952
953
953
// NOTE(unsafe): Index is bounded to [4,15] by SystemHandler design.
954
+ // TODO: Review it after rust-lang/rust/issues/13926 will be fixed.
954
955
let priority_ref = unsafe { ( * Self :: ptr ( ) ) . shpr . get_unchecked ( usize:: from ( index - 4 ) ) } ;
955
956
956
957
priority_ref. read ( )
@@ -961,6 +962,7 @@ impl SCB {
961
962
// NOTE(unsafe) atomic read with no side effects
962
963
963
964
// NOTE(unsafe): Index is bounded to [11,15] by SystemHandler design.
965
+ // TODO: Review it after rust-lang/rust/issues/13926 will be fixed.
964
966
let priority_ref = unsafe { ( * Self :: ptr ( ) ) . shpr . get_unchecked ( usize:: from ( ( index - 8 ) / 4 ) ) } ;
965
967
966
968
let shpr = priority_ref. read ( ) ;
@@ -988,6 +990,7 @@ impl SCB {
988
990
#[ cfg( not( armv6m) ) ]
989
991
{
990
992
// NOTE(unsafe): Index is bounded to [4,15] by SystemHandler design.
993
+ // TODO: Review it after rust-lang/rust/issues/13926 will be fixed.
991
994
let priority_ref = ( * Self :: ptr ( ) ) . shpr . get_unchecked ( usize:: from ( index - 4 ) ) ;
992
995
993
996
priority_ref. write ( prio)
@@ -996,6 +999,7 @@ impl SCB {
996
999
#[ cfg( armv6m) ]
997
1000
{
998
1001
// NOTE(unsafe): Index is bounded to [11,15] by SystemHandler design.
1002
+ // TODO: Review it after rust-lang/rust/issues/13926 will be fixed.
999
1003
let priority_ref = ( * Self :: ptr ( ) ) . shpr . get_unchecked ( usize:: from ( ( index - 8 ) / 4 ) ) ;
1000
1004
1001
1005
priority_ref. modify ( |value| {
0 commit comments