Skip to content

Commit d96b2fc

Browse files
committed
Apply the attribute to a new function
1 parent 195ae74 commit d96b2fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/core/src/num/imp/overflow_panic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ pub(in crate::num) const fn shl() -> ! {
5050
panic!("attempt to shift left with overflow")
5151
}
5252

53-
#[cold]
5453
#[track_caller]
54+
#[rustc_panic_entrypoint]
5555
pub(in crate::num) const fn cast_integer() -> ! {
5656
panic!("attempt to cast integer with overflow")
5757
}

0 commit comments

Comments
 (0)