Error occurs after rustfmt
Opened this issue · 1 comments
Rjerk commented
thread 'main' panicked at /rust/deps/annotate-snippets-0.9.2/src/display_list/from_snippet.rs:275:9:
SourceAnnotation range `(100, 102)` is bigger than source length `96`
stack backtrace:
0: 0x10e58d174 - std::backtrace::Backtrace::create::hf4c6e0fc434c5eff
1: 0x10c42ada8 - <alloc[8fbefe78ae127760]::boxed::Box<rustc_driver_impl[33c3c8f32b23385a]::install_ice_hook::{closure#0}> as core[cec2e0b2f6f1b021]::ops::function::Fn<(&dyn for<'a, 'b> core[cec2e0b2f6f1b021]::ops::function::Fn<(&'a std[de0be7fd51e0120c]::panic::PanicHookInfo<'b>,), Output = ()> + core[cec2e0b2f6f1b021]::marker::Sync + core[cec2e0b2f6f1b021]::marker::Send, &std[de0be7fd51e0120c]::panic::PanicHookInfo)>>::call
2: 0x10e5a7d84 - std::panicking::rust_panic_with_hook::hdbb67fdc3f18bef3
3: 0x10e5a79dc - std::panicking::begin_panic_handler::{{closure}}::h2eba8cd2e2569652
4: 0x10e5a55a4 - std::sys::backtrace::__rust_end_short_backtrace::he94ac3958b004dd4
5: 0x10e5a76a0 - _rust_begin_unwind
6: 0x110c8aee0 - core::panicking::panic_fmt::h215910d4d4559096
7: 0x1006c4bc0 - annotate_snippets[e9e08054810e66c0]::display_list::from_snippet::format_slice
8: 0x1006c2960 - <annotate_snippets[e9e08054810e66c0]::display_list::structs::DisplayList as core[cec2e0b2f6f1b021]::convert::From<annotate_snippets[e9e08054810e66c0]::snippet::Snippet>>::from
9: 0x10057c538 - <rustfmt_nightly[5edc544d64545d24]::format_report_formatter::FormatReportFormatter as core[cec2e0b2f6f1b021]::fmt::Display>::fmt
10: 0x10b8363c4 - core::fmt::write::h8001b26d0fef496c
11: 0x10e597470 - <&std::io::stdio::Stderr as std::io::Write>::write_fmt::hbc6623db0693f92c
12: 0x10e597f50 - std::io::stdio::_eprint::h0a8fd54de440d564
13: 0x1003c97e4 - rustfmt[53412a93cf81c598]::format_and_emit_report::<std[de0be7fd51e0120c]::io::stdio::Stdout>
14: 0x1003d0e78 - <rustfmt_nightly[5edc544d64545d24]::Session<std[de0be7fd51e0120c]::io::stdio::Stdout>>::override_config::<rustfmt[53412a93cf81c598]::format::{closure#0}, ()>
15: 0x1003c83f4 - rustfmt[53412a93cf81c598]::execute
16: 0x1003c6b5c - rustfmt[53412a93cf81c598]::main
17: 0x1003d5f58 - std[de0be7fd51e0120c]::sys::backtrace::__rust_begin_short_backtrace::<fn(), ()>
18: 0x1003d8fd8 - std[de0be7fd51e0120c]::rt::lang_start::<()>::{closure#0}
19: 0x10e58b658 - std::rt::lang_start_internal::h3af41b0d76141967
20: 0x1003ca4f0 - _main
rustc version: 1.84.0-nightly (f7273e004 2024-11-12)
platform: aarch64-apple-darwin