- Notifications
You must be signed in to change notification settings - Fork47
Closed
Description
$ cargo run Compiling annotate-snippets v0.9.0 Compiling rust-test v0.1.0 (/home/mario/Documents/rust-test) Finished dev [unoptimized + debuginfo] target(s) in 0.92s Running `target/debug/rust-test`thread 'main' panicked at 'SourceAnnotation range `(205, 207)` is bigger than source length `195`', /home/mario/.cargo/registry/src/github.com-1ecc6299db9ec823/annotate-snippets-0.9.0/src/display_list/from_snippet.rs:287:9note: run with `RUST_BACKTRACE=1` environment variable to display a backtraceAppears to be an issue with the index into the source, which is in fact 195 characters long. Based on the error message I guess it should be highlighting the22, which would be(187, 189), not(205, 207).
Metadata
Metadata
Assignees
Labels
No labels