Skip to content

Commit 254c3b6

Browse files
authored
Depend on a recent-enough version of backtrace
If backtrace v0.3.50 or earlier is used, the following compile errors result: ``` error[E0599]: no method named `print_raw_with_column` found for struct `BacktraceFrameFmt<'_, '_, '_>` in the current scope --> /Users/john/.cargo/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.40/src/backtrace.rs:284:27 | 284 | f.print_raw_with_column( | ^^^^^^^^^^^^^^^^^^^^^ method not found in `BacktraceFrameFmt<'_, '_, '_>` error[E0599]: no method named `colno` found for reference `&Symbol` in the current scope --> /Users/john/.cargo/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.40/src/backtrace.rs:353:39 | 353 | colno: symbol.colno(), | ^^^^^ method not found in `&Symbol` ``` `print_raw_with_column` and `colno` were added in [this PR](rust-lang/backtrace-rs@4b8f2be), and the earliest backtrace version they are available in is 0.3.51.
1 parent 29e4e0e commit 254c3b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ default = ["std"]
1515
std = []
1616

1717
[dependencies]
18-
backtrace = { version = "0.3", optional = true }
18+
backtrace = { version = "^0.3.51", optional = true }
1919

2020
[dev-dependencies]
2121
futures = { version = "0.3", default-features = false }

0 commit comments

Comments
 (0)