You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running cargo update I noticed that backtraces have become useless. Pinning anyhow to version 1.0.76 fixes the issue.
With newer versions, the backtrace contains just <unknown> frames.
Maybe you are on a platform that is not supported by std::backtrace, or the standard library has been compiled with flags that interfere with something in std::backtrace.
I did some more research and it turns out, that updating the Rust toolchain fixes the problem.
I was using version 1.73.0, which produces the issue. Using version 1.74.0 works fine.
Here is a minimal example to reproduce:
rust-toolchain.toml
[toolchain]
channel = "1.73.0"
Cargo.toml
[package]
name = "anyhow-test"version = "0.1.0"edition = "2021"
[dependencies]
anyhow = { version = "=1.0.77", features = ["backtrace"] }
After running
cargo update
I noticed that backtraces have become useless. Pinning anyhow to version1.0.76
fixes the issue.With newer versions, the backtrace contains just
<unknown>
frames.Edit: To be clear, version 1.0.76 is the last one that it working. Version 1.0.77 doesn't work anymore.
The text was updated successfully, but these errors were encountered: