diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-02-22 01:01:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-22 01:01:40 +0100 |
| commit | 5400270279fe10b99a248e635821bd696aecd65b (patch) | |
| tree | aa94c9a1e32b871a3703f0889de91eb36cb670fb /compiler/rustc_mir_transform/src/coverage/graph.rs | |
| parent | 085adfda3cdfe7f130335a1263b1eaf4dbf3092e (diff) | |
| parent | 4e4cb10b846c71f2993d2e4babbc026ff68bab3b (diff) | |
| download | rust-5400270279fe10b99a248e635821bd696aecd65b.tar.gz rust-5400270279fe10b99a248e635821bd696aecd65b.zip | |
Rollup merge of #137207 - petertodd:2025-add-track-caller-to-duration-div, r=jhpratt
Add #[track_caller] to Duration Div impl Previously the location of the divide-by-zero error condition would be attributed to the code in the rust standard library, eg: thread 'main' panicked at /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/time.rs:1172:31: divide by zero error when dividing duration by scalar With #[track_caller] the error is correctly attributed to the callee.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions
