query stack during panic:
#0 [resolver_for_lowering] getting the resolver for lowering
end of query stack
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::slice::index::slice_start_index_len_fail
3: ::get_header
4: ::extract_one
5: ::extract_lib
6: ::maybe_load_library_crate
7: ::load
8: ::maybe_resolve_crate
9: ::maybe_process_path_extern
10: ::extern_prelude_get
11: ::early_resolve_ident_in_lexical_scope
12: ::resolve_path_with_ribs
13: ::resolve_imports
14: ::fully_expand_fragment
15: ::expand_crate
16: ::time::
17: rustc_interface::passes::resolver_for_lowering
[... omitted 2 frames ...]
18: ::enter::)>>
19: ::enter::, rustc_span::ErrorGuaranteed>>
20: rustc_span::set_source_map::, rustc_interface::interface::run_compiler, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
21: >::set::, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>
22: rustc_span::create_session_globals_then::, rustc_interface::util::run_in_thread_pool_with_globals, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}>
error: could not compile `borsh-derive-internal` (lib)
error: could not compile `borsh-derive-internal` (lib)
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: could not compile `borsh-schema-derive-internal` (lib)
error: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: please attach the file at `/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/borsh-schema-derive-internal-0.10.3/rustc-ice-2024-09-22T15_52_34-3162.txt` to your bug report
note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C overflow-checks=on
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [resolver_for_lowering] getting the resolver for lowering
end of query stack
error: the compiler unexpectedly panicked. this is a bug.
I fixed this in one of 1.78, 1.79, or 1.80. This ICE is from a 1.75 nightly, you should try updating your toolchain. If nothing else, you'll get an error message that explains that you ran out of disk space.
Code
Meta
This is done in the Ackee Blockchain's docker image provided for their fuzzing classes
rustc --version --verbose
:Error output
query stack during panic: #0 [resolver_for_lowering] getting the resolver for lowering end of query stack 0: rust_begin_unwind 1: core::panicking::panic_fmt 2: core::slice::index::slice_start_index_len_fail 3:::get_header
4: ::extract_one
5: ::extract_lib
6: ::maybe_load_library_crate
7: ::load
8: ::maybe_resolve_crate
9: ::maybe_process_path_extern
10: ::extern_prelude_get
11: ::early_resolve_ident_in_lexical_scope
12: ::resolve_path_with_ribs
13: ::resolve_imports
14: ::fully_expand_fragment
15: ::expand_crate
16: ::time::
17: rustc_interface::passes::resolver_for_lowering
[... omitted 2 frames ...]
18: ::enter::)>>
19: ::enter::, rustc_span::ErrorGuaranteed>>
20: rustc_span::set_source_map::, rustc_interface::interface::run_compiler, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
21: >::set::, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>
22: rustc_span::create_session_globals_then::, rustc_interface::util::run_in_thread_pool_with_globals, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}>
error: could not compile `borsh-derive-internal` (lib)
error: could not compile `borsh-derive-internal` (lib)
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: could not compile `borsh-schema-derive-internal` (lib)
error: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: please attach the file at `/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/borsh-schema-derive-internal-0.10.3/rustc-ice-2024-09-22T15_52_34-3162.txt` to your bug report
note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C overflow-checks=on
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [resolver_for_lowering] getting the resolver for lowering
end of query stack
error: the compiler unexpectedly panicked. this is a bug.
```
```