Add missing track_caller to overflowing trait methods#153480
Add missing track_caller to overflowing trait methods#153480RaphiMuehlbacher wants to merge 1 commit intorust-lang:mainfrom
track_caller to overflowing trait methods#153480Conversation
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Add missing `track_caller` to overflowing trait methods
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (4e1aaaa): comparison URL. Overall result: ❌ regressions - no action neededBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -9.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 2.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 478.517s -> 480.84s (0.49%) |
Fixes #152599 by adding
#[track_caller]to arithmetic trait methods (Neg,Shl,ShlAssign,ShrandShrAssign) so overflow panics report the correct call site instead of the trait definition.