@@ -509,7 +509,7 @@ macro_rules! int_impl {
509
509
#[ must_use = "this returns the result of the operation, \
510
510
without modifying the original"]
511
511
#[ inline( always) ]
512
- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
512
+ #[ track_caller]
513
513
pub const unsafe fn unchecked_add( self , rhs: Self ) -> Self {
514
514
assert_unsafe_precondition!(
515
515
check_language_ub,
@@ -659,7 +659,7 @@ macro_rules! int_impl {
659
659
#[ must_use = "this returns the result of the operation, \
660
660
without modifying the original"]
661
661
#[ inline( always) ]
662
- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
662
+ #[ track_caller]
663
663
pub const unsafe fn unchecked_sub( self , rhs: Self ) -> Self {
664
664
assert_unsafe_precondition!(
665
665
check_language_ub,
@@ -809,7 +809,7 @@ macro_rules! int_impl {
809
809
#[ must_use = "this returns the result of the operation, \
810
810
without modifying the original"]
811
811
#[ inline( always) ]
812
- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
812
+ #[ track_caller]
813
813
pub const unsafe fn unchecked_mul( self , rhs: Self ) -> Self {
814
814
assert_unsafe_precondition!(
815
815
check_language_ub,
@@ -1153,7 +1153,7 @@ macro_rules! int_impl {
1153
1153
#[ must_use = "this returns the result of the operation, \
1154
1154
without modifying the original"]
1155
1155
#[ inline( always) ]
1156
- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
1156
+ #[ track_caller]
1157
1157
pub const unsafe fn unchecked_neg( self ) -> Self {
1158
1158
assert_unsafe_precondition!(
1159
1159
check_language_ub,
@@ -1281,7 +1281,7 @@ macro_rules! int_impl {
1281
1281
#[ must_use = "this returns the result of the operation, \
1282
1282
without modifying the original"]
1283
1283
#[ inline( always) ]
1284
- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
1284
+ #[ track_caller]
1285
1285
pub const unsafe fn unchecked_shl( self , rhs: u32 ) -> Self {
1286
1286
assert_unsafe_precondition!(
1287
1287
check_language_ub,
@@ -1402,7 +1402,7 @@ macro_rules! int_impl {
1402
1402
#[ must_use = "this returns the result of the operation, \
1403
1403
without modifying the original"]
1404
1404
#[ inline( always) ]
1405
- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
1405
+ #[ track_caller]
1406
1406
pub const unsafe fn unchecked_shr( self , rhs: u32 ) -> Self {
1407
1407
assert_unsafe_precondition!(
1408
1408
check_language_ub,
0 commit comments