@@ -555,7 +555,7 @@ macro_rules! int_impl {
555
555
#[ must_use = "this returns the result of the operation, \
556
556
without modifying the original"]
557
557
#[ inline( always) ]
558
- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
558
+ #[ track_caller]
559
559
pub const unsafe fn unchecked_add( self , rhs: Self ) -> Self {
560
560
assert_unsafe_precondition!(
561
561
check_language_ub,
@@ -705,7 +705,7 @@ macro_rules! int_impl {
705
705
#[ must_use = "this returns the result of the operation, \
706
706
without modifying the original"]
707
707
#[ inline( always) ]
708
- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
708
+ #[ track_caller]
709
709
pub const unsafe fn unchecked_sub( self , rhs: Self ) -> Self {
710
710
assert_unsafe_precondition!(
711
711
check_language_ub,
@@ -855,7 +855,7 @@ macro_rules! int_impl {
855
855
#[ must_use = "this returns the result of the operation, \
856
856
without modifying the original"]
857
857
#[ inline( always) ]
858
- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
858
+ #[ track_caller]
859
859
pub const unsafe fn unchecked_mul( self , rhs: Self ) -> Self {
860
860
assert_unsafe_precondition!(
861
861
check_language_ub,
@@ -1199,7 +1199,7 @@ macro_rules! int_impl {
1199
1199
#[ must_use = "this returns the result of the operation, \
1200
1200
without modifying the original"]
1201
1201
#[ inline( always) ]
1202
- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
1202
+ #[ track_caller]
1203
1203
pub const unsafe fn unchecked_neg( self ) -> Self {
1204
1204
assert_unsafe_precondition!(
1205
1205
check_language_ub,
@@ -1327,7 +1327,7 @@ macro_rules! int_impl {
1327
1327
#[ must_use = "this returns the result of the operation, \
1328
1328
without modifying the original"]
1329
1329
#[ inline( always) ]
1330
- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
1330
+ #[ track_caller]
1331
1331
pub const unsafe fn unchecked_shl( self , rhs: u32 ) -> Self {
1332
1332
assert_unsafe_precondition!(
1333
1333
check_language_ub,
@@ -1448,7 +1448,7 @@ macro_rules! int_impl {
1448
1448
#[ must_use = "this returns the result of the operation, \
1449
1449
without modifying the original"]
1450
1450
#[ inline( always) ]
1451
- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
1451
+ #[ track_caller]
1452
1452
pub const unsafe fn unchecked_shr( self , rhs: u32 ) -> Self {
1453
1453
assert_unsafe_precondition!(
1454
1454
check_language_ub,
0 commit comments