Skip to content

Commit 24955d9

Browse files
committed
Add #[track_caller] to from_usize.
1 parent 20f622c commit 24955d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/fmt/rt.rs

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ impl Argument<'_> {
154154
Self::new(x, UpperExp::fmt)
155155
}
156156
#[inline]
157+
#[track_caller]
157158
pub const fn from_usize(x: &usize) -> Argument<'_> {
158159
if *x > u16::MAX as usize {
159160
panic!("Formatting argument out of range");

0 commit comments

Comments
 (0)