Skip to content

Commit 2647cf1

Browse files
committed
Add #[track_caller] to from_usize.
1 parent 7677567 commit 2647cf1

File tree

1 file changed

+1
-0
lines changed
  • library/core/src/fmt

1 file changed

+1
-0
lines changed

Diff for: library/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)