ITADN

Add `#[track_caller]` to `CtOption::{expect, unwrap}`

#152Pull Requesttarcieri 创建于 2026-01-04
T
tarciericommented
This option adds a location hint about the function which called it, which is useful when debugging panics since otherwise unless you set `RUST_BACKTRACE` you instead get the line in `subtle` where a particular `assert!` failed, rather than the location of the call site into `expect` or `unwrap`. See: https://doc.rust-lang.org/reference/attributes/codegen.html#the-track_caller-attribute Closes #142
合并状态:未合并 1 条评论