This repository was archived by the owner on Apr 5, 2024. It is now read-only.
This repository was archived by the owner on Apr 5, 2024. It is now read-only.
index out of bounds
error #188
Open
Description
Tried to run cargo semver
on the toml-rs crate and got an error:
~/Proj/rust/toml-rs> RUST_BACKTRACE=1 rustup run nightly-2020-12-20-x86_64-apple-darwin cargo semver
Updating crates.io index
Finished dev [unoptimized + debuginfo] target(s) in 0.82s
Finished dev [unoptimized + debuginfo] target(s) in 0.83s
thread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 0', /rustc/1f5bc176b0e54a8e464704adcd7e571700207fe9/compiler/rustc_middle/src/ty/relate.rs:144:60
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::panic_bounds_check
3: <core::result::Result<T,E> as rustc_middle::ty::context::InternIteratorElement<T,R>>::intern_with
4: <semverver::mismatch::MismatchRelation as rustc_middle::ty::relate::TypeRelation>::tys
5: semverver::mismatch::MismatchRelation::process
6: semverver::traverse::run_analysis
7: rustc_interface::passes::QueryContext::enter
8: <rust_semverver::main::SemverCallbacks as rustc_driver::Callbacks>::after_analysis
9: rustc_interface::queries::<impl rustc_interface::interface::Compiler>::enter
10: rustc_span::with_source_map
11: rustc_interface::interface::create_compiler_and_run
12: scoped_tls::ScopedKey<T>::set
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: rustc-semverver errored
Details:
- rust-semverver built from 0bdee60 using nightly-2020-12-20
- Test against a5dc85d0a38cc55033a367b0f24c7a8c23f314e6 of toml-rs (compared against 0.5.8)
- Running on x86_64-apple-darwin