about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-02-22 01:01:40 +0100
committerGitHub <noreply@github.com>2025-02-22 01:01:40 +0100
commit5400270279fe10b99a248e635821bd696aecd65b (patch)
treeaa94c9a1e32b871a3703f0889de91eb36cb670fb /compiler/rustc_codegen_llvm/src/lib.rs
parent085adfda3cdfe7f130335a1263b1eaf4dbf3092e (diff)
parent4e4cb10b846c71f2993d2e4babbc026ff68bab3b (diff)
downloadrust-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_codegen_llvm/src/lib.rs')
0 files changed, 0 insertions, 0 deletions