Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depend on a recent-enough version of backtrace #155

Merged
merged 1 commit into from Jun 10, 2021

Conversation

jfirebaugh
Copy link
Contributor

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, and the earliest backtrace version they are available in is 0.3.51.

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.
@dtolnay dtolnay merged commit 8bf68c8 into dtolnay:master Jun 10, 2021
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.

None yet

2 participants