diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs index e50984bb781d..3bc4c28a9d81 100644 --- a/library/core/src/cmp.rs +++ b/library/core/src/cmp.rs @@ -1999,6 +1999,7 @@ mod impls { } #[inline] + #[track_caller] fn clamp(self, min: Self, max: Self) -> Self { assert!(min <= max, "min > max. min = {min}, max = {max}");