@@ -510,7 +510,7 @@ macro_rules! int_impl {
510510 #[ must_use = "this returns the result of the operation, \
511511 without modifying the original"]
512512 #[ inline( always) ]
513- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
513+ #[ track_caller]
514514 pub const unsafe fn unchecked_add( self , rhs: Self ) -> Self {
515515 assert_unsafe_precondition!(
516516 check_language_ub,
@@ -662,7 +662,7 @@ macro_rules! int_impl {
662662 #[ must_use = "this returns the result of the operation, \
663663 without modifying the original"]
664664 #[ inline( always) ]
665- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
665+ #[ track_caller]
666666 pub const unsafe fn unchecked_sub( self , rhs: Self ) -> Self {
667667 assert_unsafe_precondition!(
668668 check_language_ub,
@@ -814,7 +814,7 @@ macro_rules! int_impl {
814814 #[ must_use = "this returns the result of the operation, \
815815 without modifying the original"]
816816 #[ inline( always) ]
817- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
817+ #[ track_caller]
818818 pub const unsafe fn unchecked_mul( self , rhs: Self ) -> Self {
819819 assert_unsafe_precondition!(
820820 check_language_ub,
@@ -1163,7 +1163,7 @@ macro_rules! int_impl {
11631163 without modifying the original"]
11641164 #[ rustc_const_unstable( feature = "unchecked_neg" , issue = "85122" ) ]
11651165 #[ inline( always) ]
1166- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
1166+ #[ track_caller]
11671167 pub const unsafe fn unchecked_neg( self ) -> Self {
11681168 assert_unsafe_precondition!(
11691169 check_language_ub,
@@ -1296,7 +1296,7 @@ macro_rules! int_impl {
12961296 without modifying the original"]
12971297 #[ rustc_const_unstable( feature = "unchecked_shifts" , issue = "85122" ) ]
12981298 #[ inline( always) ]
1299- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
1299+ #[ track_caller]
13001300 pub const unsafe fn unchecked_shl( self , rhs: u32 ) -> Self {
13011301 assert_unsafe_precondition!(
13021302 check_language_ub,
@@ -1422,7 +1422,7 @@ macro_rules! int_impl {
14221422 without modifying the original"]
14231423 #[ rustc_const_unstable( feature = "unchecked_shifts" , issue = "85122" ) ]
14241424 #[ inline( always) ]
1425- #[ cfg_attr ( miri , track_caller) ] // even without panics, this helps for Miri backtraces
1425+ #[ track_caller]
14261426 pub const unsafe fn unchecked_shr( self , rhs: u32 ) -> Self {
14271427 assert_unsafe_precondition!(
14281428 check_language_ub,
0 commit comments