diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2025-02-28 12:49:28 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2025-03-10 12:20:06 +0100 |
| commit | 2647cf17e75346ed50042a1ebe28aa3137a5544e (patch) | |
| tree | 1ed0c69c2149a0680363faf23474f73d6f04a700 | |
| parent | 7677567e54285312c133b135821409f8cf3fa636 (diff) | |
| download | rust-2647cf17e75346ed50042a1ebe28aa3137a5544e.tar.gz rust-2647cf17e75346ed50042a1ebe28aa3137a5544e.zip | |
Add #[track_caller] to from_usize.
| -rw-r--r-- | library/core/src/fmt/rt.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/fmt/rt.rs b/library/core/src/fmt/rt.rs index a45875ba57c..080fc6ddfc9 100644 --- a/library/core/src/fmt/rt.rs +++ b/library/core/src/fmt/rt.rs @@ -154,6 +154,7 @@ impl Argument<'_> { Self::new(x, UpperExp::fmt) } #[inline] + #[track_caller] pub const fn from_usize(x: &usize) -> Argument<'_> { if *x > u16::MAX as usize { panic!("Formatting argument out of range"); |
