Skip to content

Conversation

@tarcieri
Copy link
Contributor

@tarcieri tarcieri commented Jan 4, 2026

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

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
@tarcieri
Copy link
Contributor Author

tarcieri commented Jan 4, 2026

Well this is unfortunate:

error: package `ppv-lite86 v0.2.21` cannot be built because it requires rustc 1.61 or newer, while the currently active rustc version is 1.60.0

I can add this change to #149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant