It's a "vec" error, but it only gives the location of the std file and I can't get the exact location of it in main.rs.
The chance of this error happening is so small that it is difficult for me to debug it.
How can I find out the location of this error in main.rs?
thread '<unnamed>' panicked at 'insertion index (is 18) should be <= len (is 17)', library\alloc\src\vec\mod.rs:1445:13
stack backtrace:
0: 0x7ff7e5ec99ff - std::sys_common::backtrace::_print_fmt
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\std\src\sys_common\backtrace.rs:65
1: 0x7ff7e5ec99ff - std::sys_common::backtrace::_print::impl$0::fmt
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\std\src\sys_common\backtrace.rs:44
2: 0x7ff7e5e5c66b - core::fmt::write
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\core\src\fmt\mod.rs:1209
3: 0x7ff7e5ebc32a - std::io::Write::write_fmt<std::sys::windows::stdio::Stderr>
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\std\src\io\mod.rs:1682
4: 0x7ff7e5ecbaab - std::sys_common::backtrace::_print
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\std\src\sys_common\backtrace.rs:47
5: 0x7ff7e5ecbaab - std::sys_common::backtrace::print
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\std\src\sys_common\backtrace.rs:34
6: 0x7ff7e5ecb691 - std::panicking::default_hook::closure$1
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\std\src\panicking.rs:267
7: 0x7ff7e5ecc5b7 - std::panicking::rust_panic_with_hook
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\std\src\panicking.rs:688
8: 0x7ff7e5ecc075 - std::panicking::begin_panic_handler::closure$0
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\std\src\panicking.rs:579
9: 0x7ff7e5ecbfbf - std::sys_common::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\std\src\sys_common\backtrace.rs:137
10: 0x7ff7e5ecbf94 - std::panicking::begin_panic_handler
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\std\src\panicking.rs:575
11: 0x7ff7e5ed2875 - core::panicking::panic_fmt
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\core\src\panicking.rs:65
12: 0x7ff7e5ed27bb - alloc::vec::impl$1::insert::assert_failed
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\alloc\src\vec\mod.rs:1445
13: 0x7ff7e5db7b63 - __ImageBase
14: 0x7ff7e5ddddd3 - __ImageBase
15: 0x7ff7e5df56fa - __ImageBase
16: 0x7ff7e5da6c06 - __ImageBase
17: 0x7ff7e5db00fe - __ImageBase
18: 0x7ff7e5ec8a7c - alloc::boxed::impl$45::call_once
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\alloc\src\boxed.rs:1987
19: 0x7ff7e5ec8a7c - alloc::boxed::impl$45::call_once
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\alloc\src\boxed.rs:1987
20: 0x7ff7e5ec8a7c - std::sys::windows::thread::impl$0::new::thread_start
at /rustc/1898c34e923bad763e723c68dd9f23a09f9eb0fc/library\std\src\sys\windows\thread.rs:56
21: 0x7ffe3b2f7034 - BaseThreadInitThunk
22: 0x7ffe3c6426a1 - RtlUserThreadStart