Closed
Description
Checked out the latest version of the compiler today to write a patch, but ran into an ICE when doing py check
. I haven't changed anything recently, so not sure what's causing this.
Code
Compiling the compiler at commit 13edc17
Meta
rustc --version --verbose
:
rustc 1.55.0-beta.1 (739f8f0a8 2021-07-28) running on x86_64-pc-windows-gnu
Error output
thread 'rustc' panicked at 'no entry found for key', compiler\rustc_query_impl\src\on_disk_cache.rs:175:20
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: internal compiler error: unexpected panic
note: 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: rustc 1.55.0-beta.1 (739f8f0a8 2021-07-28) running on x86_64-pc-windows-gnu
note: compiler flags: -Z macro-backtrace -Z binary-dep-depinfo -Z force-unstable-if-unmarked -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -C incremental -C llvm-args=-import-instr-limit=10 --crate-type dylib
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [predicates_of] computing predicates of `common::FunctionCx`
#1 [check_item_well_formed] checking that `abi::comments::add_arg_comment` is well-formed
end of query stack
error: could not compile `rustc_codegen_cranelift`
Backtrace
PS C:\Users\yoshu\Code\rust> py .\x.py check
Updating only changed submodules
Submodules updated in 0.11 seconds
Finished dev [unoptimized + debuginfo] target(s) in 2.15s
Checking stage0 std artifacts (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu)
Finished release [optimized] target(s) in 0.59s
Checking stage0 std test/bench/example targets (x86_64-pc-windows-gnu
-> x86_64-pc-windows-gnu)
Finished release [optimized] target(s) in 0.59s
Checking stage0 compiler artifacts (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu)
warning: library kind `static-nobundle` has been superseded by specifying `-bundle` on library kind `static`. Try `static:-bundle`
warning: `rustc_llvm` (lib) generated 1 warning
warning: `rustc_llvm` (lib test) generated 1 warning (1 duplicate)
Finished release [optimized] target(s) in 1.97s
Checking stage0 rustdoc artifacts (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu)
Finished release [optimized] target(s) in 0.98s
Checking stage0 cranelift artifacts (x86_64-pc-windows-gnu -> x86_64-pc-windows-gnu)
Checking rustc_codegen_cranelift v0.1.0 (C:\Users\yoshu\Code\rust\compiler\rustc_codegen_cranelift)
thread 'rustc' panicked at 'no entry found for key', compiler\rustc_query_impl\src\on_disk_cache.rs:175:20
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: internal compiler error: unexpected panic
note: 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: rustc 1.55.0-beta.1 (739f8f0a8 2021-07-28) running on x86_64-pc-windows-gnu
note: compiler flags: -Z macro-backtrace -Z binary-dep-depinfo -Z force-unstable-if-unmarked -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -C incremental -C llvm-args=-import-instr-limit=10 --crate-type dylib
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [predicates_of] computing predicates of `common::FunctionCx`
#1 [check_item_well_formed] checking that `abi::comments::add_arg_comment` is well-formed
end of query stack
error: could not compile `rustc_codegen_cranelift`
Caused by:
process didn't exit successfully: `C:\Users\yoshu\Code\rust\build\bootstrap/debug/rustc --crate-name rustc_codegen_cranelift --edition=2018 src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type dylib --emit=dep-info,metadata -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -C metadata=46f7e1b0fd3f3e68 -C extra-filename=-46f7e1b0fd3f3e68 --out-dir C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\deps --target x86_64-pc-windows-gnu -C incremental=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\incremental -L dependency=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\deps -L dependency=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\release\deps --extern ar=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\deps\libar-008c953fc1022421.rmeta --extern cranelift_codegen=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\deps\libcranelift_codegen-e3f012bff9079dc3.rmeta --extern cranelift_frontend=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\deps\libcranelift_frontend-70b32e62a9b56945.rmeta --extern cranelift_module=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\deps\libcranelift_module-a02560616de272a2.rmeta --extern cranelift_native=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\deps\libcranelift_native-69d1bf02ade6427b.rmeta --extern cranelift_object=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\deps\libcranelift_object-8c36e952eceda322.rmeta --extern gimli=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\deps\libgimli-8c830305f513e434.rmeta --extern indexmap=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\deps\libindexmap-509c3c26a3c04416.rmeta --extern
object=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\deps\libobject-b937931e2b43b5fb.rmeta --extern smallvec=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\deps\libsmallvec-bf0557f61df3ef35.rmeta --extern target_lexicon=C:\Users\yoshu\Code\rust\build\x86_64-pc-windows-gnu\stage0-codegen\x86_64-pc-windows-gnu\release\deps\libtarget_lexicon-d1e221e5b1c4e96c.rmeta --cfg=bootstrap -Zmacro-backtrace -Cllvm-args=-import-instr-limit=10 -Z binary-dep-depinfo` (exit code: 0x80000003)
Build completed unsuccessfully in 0:00:20
Metadata
Metadata
Assignees
Labels
Area: Incremental compilationCategory: This is a bug.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the compiler team, which will review and decide on the PR/issue.Performance or correctness regression from stable to beta.