nnethercote / dhat-rs

Heap profiling and ad hoc profiling for Rust programs.
Apache License 2.0
713 stars 36 forks source link

Pin to a higher version of `backtrace` #12

Closed tomaka closed 3 years ago

tomaka commented 3 years ago

I tried compiling this crate and encountered the following compilation error:

error[E0599]: no method named `colno` found for reference `&BacktraceSymbol` in the current scope
   --> /home/pierre/.cargo/registry/src/github.com-1ecc6299db9ec823/dhat-0.2.1/src/lib.rs:483:40
    |
483 | ...                   symbol.colno().unwrap_or(0),
    |                              ^^^^^ method not found in `&BacktraceSymbol`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.
error: could not compile `dhat`

It turns out that backtrace version 0.3.50 indeed didn't include any colno() method. More recent versions do. Running cargo update -p backtrace fixed the error. Since it took me a few minutes to investigate the problem, this PR saves this from other people.

nnethercote commented 3 years ago

Thank you.