Skip to content

uninterned StableCrateId: StableCrateId(10368175013544693233) thread 'rustc' panicked at 'Box<dyn Any>' #113266

Closed as not planned
@Ddystopia

Description

@Ddystopia

I've done x check after git pull and it ICEd.

After I've done x check again, it also ICEd.
After x clean it does not ICEs anymore

You could find more data like commits in Shell Output

All Shell Output (Including Backtrace)

❯ git pull upstream master
remote: Enumerating objects: 4895, done.
remote: Counting objects: 100% (3085/3085), done.
remote: Compressing objects: 100% (80/80), done.
remote: Total 4895 (delta 3024), reused 3039 (delta 3004), pack-reused 1810
Receiving objects: 100% (4895/4895), 2.99 MiB | 6.56 MiB/s, done.
Resolving deltas: 100% (3821/3821), completed with 1089 local objects.
From https://github.com/rust-lang/rust
 * branch                    master     -> FETCH_HEAD
   69a63737fa1..131a03664ef  master     -> upstream/master
Fetching submodule src/doc/book
From https://github.com/rust-lang/book
   8fa6b85..668c647  main       -> origin/main
Fetching submodule src/doc/nomicon
From https://github.com/rust-lang/nomicon
   927dfbd..c369e4b  master     -> origin/master
Fetching submodule src/doc/reference
From https://github.com/rust-lang/reference
   5787c88..1c231ad  master     -> origin/master
Fetching submodule src/doc/rust-by-example
From https://github.com/rust-lang/rust-by-example
   2d56dd9..57636d6  master     -> origin/master
Fetching submodule src/tools/cargo
From https://github.com/rust-lang/cargo
   03bc66b55..5b377cece  master     -> origin/master
Updating 69a63737fa1..131a03664ef
Fast-forward
 .github/ISSUE_TEMPLATE/config.yml                                                            |   3 +
 .github/workflows/ci.yml                                                                     |  24 +-
 .github/workflows/dependencies.yml                                                           |   3 +
 Cargo.lock                                                                                   | 135 +++--------
 README.md                                                                                    |  15 +-
 compiler/rustc_ast_lowering/src/expr.rs                                                      |   4 +-
 compiler/rustc_ast_lowering/src/lib.rs                                                       | 133 +++++++----
 compiler/rustc_ast_passes/src/ast_validation.rs                                              |   7 +-
 compiler/rustc_ast_passes/src/errors.rs                                                      |   7 -
 [... Removed ...]
 triagebot.toml                                                                               |   1 +
 x.ps1                                                                                        |  14 +-
 x.py                                                                                         |   2 +-
 1085 files changed, 13928 insertions(+), 5975 deletions(-)
 create mode 100644 compiler/rustc_codegen_ssa/src/mir/locals.rs
 delete mode 100644 compiler/rustc_data_structures/src/small_str.rs
 [... Removed ...]
 create mode 100644 tests/ui/underscore-lifetime/where-clause-trait-impl-region-2018.fixed
 create mode 100644 tests/ui/underscore-lifetime/where-clause-trait-impl-region-2018.rs
 rename tests/ui/underscore-lifetime/{where-clause-inherent-impl-ampersand.rust2015.stderr => where-clause-trait-impl-region-2018.stderr} (55%)
 delete mode 100644 tests/ui/underscore-lifetime/where-clause-trait-impl-region.rs
 create mode 100644 tests/ui/uninhabited/projection.rs
 ο rust master ✗
❯ x check
Building bootstrap
   Compiling proc-macro2 v1.0.60
   Compiling quote v1.0.26
   Compiling syn v2.0.8
   Compiling clap_derive v4.2.0
   Compiling serde_derive v1.0.160
   Compiling clap v4.2.4
   Compiling clap_complete v4.2.2
   Compiling bootstrap v0.0.0 (/home/ddystopia/code/rust/src/bootstrap)
    Finished dev [unoptimized] target(s) in 12.04s
Updating submodule src/tools/cargo
Submodule path 'src/tools/cargo': checked out '5b377cece0e0dd0af686cf53ce4637d5d85c2a10'
Updating submodule src/doc/nomicon
Submodule path 'src/doc/nomicon': checked out 'c369e4b489332f8721fbae630354fa83385d457d'
Updating submodule src/doc/reference
Submodule path 'src/doc/reference': checked out '5ca365eac678cb0d41a20b3204546d6ed70c7171'
Updating submodule src/doc/book
Submodule path 'src/doc/book': checked out '21cf840842bdf768a798869f06373c96c1cc5122'
Updating submodule src/doc/rust-by-example
Submodule path 'src/doc/rust-by-example': checked out '57636d6926762861f34e030d52ca25a71e95e5bf'
Checking stage0 library artifacts (x86_64-unknown-linux-gnu)
    Updating crates.io index
    Checking core v0.0.0 (/home/ddystopia/code/rust/library/core)
    Checking rustc-std-workspace-core v1.99.0 (/home/ddystopia/code/rust/library/rustc-std-workspace-core)
    Checking compiler_builtins v0.1.93
    Checking libc v0.2.146
    Checking alloc v0.0.0 (/home/ddystopia/code/rust/library/alloc)
    Checking cfg-if v1.0.0
    Checking memchr v2.5.0
    Checking adler v1.0.2
    Checking rustc-demangle v0.1.21
    Checking unwind v0.0.0 (/home/ddystopia/code/rust/library/unwind)
    Checking rustc-std-workspace-alloc v1.99.0 (/home/ddystopia/code/rust/library/rustc-std-workspace-alloc)
    Checking panic_abort v0.0.0 (/home/ddystopia/code/rust/library/panic_abort)
    Checking panic_unwind v0.0.0 (/home/ddystopia/code/rust/library/panic_unwind)
    Checking gimli v0.27.2
    Checking hashbrown v0.14.0
    Checking miniz_oxide v0.6.2
    Checking std_detect v0.1.5 (/home/ddystopia/code/rust/library/stdarch/crates/std_detect)
    Checking object v0.30.1
    Checking addr2line v0.19.0
    Checking std v0.0.0 (/home/ddystopia/code/rust/library/std)
    Checking rustc-std-workspace-std v1.99.0 (/home/ddystopia/code/rust/library/rustc-std-workspace-std)
    Checking proc_macro v0.0.0 (/home/ddystopia/code/rust/library/proc_macro)
    Checking unicode-width v0.1.10
    Checking getopts v0.2.21
    Checking test v0.0.0 (/home/ddystopia/code/rust/library/test)
    Checking sysroot v0.0.0 (/home/ddystopia/code/rust/library/sysroot)
    Finished release [optimized] target(s) in 16.17s
Checking stage0 library test/bench/example targets (x86_64-unknown-linux-gnu)
    Checking sysroot v0.0.0 (/home/ddystopia/code/rust/library/sysroot)
    Finished release [optimized] target(s) in 0.13s
Checking stage0 compiler artifacts (x86_64-unknown-linux-gnu)
  Downloaded chalk-derive v0.92.0
  Downloaded chalk-ir v0.92.0
  Downloaded chalk-engine v0.92.0
  Downloaded chalk-solve v0.92.0
  Downloaded 4 crates (204.9 KB) in 0.33s
   Compiling proc-macro2 v1.0.60
    Checking cfg-if v1.0.0
    Checking once_cell v1.17.1
    Checking stable_deref_trait v1.2.0
    [... Removed ...]
    Checking regalloc2 v0.8.1
    Checking cranelift-control v0.96.1
    Checking gimli v0.27.2
    Checking object v0.30.4
    Checking cranelift-codegen v0.96.1
    Checking cranelift-module v0.96.1
    Checking cranelift-native v0.96.1
    Checking cranelift-frontend v0.96.1
    Checking cranelift-object v0.96.1
    Checking rustc_codegen_cranelift v0.1.0 (/home/ddystopia/code/rust/compiler/rustc_codegen_cranelift)
error: internal compiler error: compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:595:32: uninterned StableCrateId: StableCrateId(10368175013544693233)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/eff24c06d8f4397802b546aa2e52450e1022fc02/compiler/rustc_errors/src/lib.rs:1651:9
stack backtrace:
   0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
   1: <rustc_errors::HandlerInner>::bug::<alloc::string::String>
   2: <rustc_errors::Handler>::bug::<alloc::string::String>
   3: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
   4: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
   5: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
   6: rustc_middle::util::bug::bug_fmt
   7: <rustc_metadata::creader::CStore as rustc_session::cstore::CrateStore>::stable_crate_id_to_crate_num
   8: <rustc_span::span_encoding::Span as rustc_serialize::serialize::Decodable<rustc_middle::query::on_disk_cache::CacheDecoder>>::decode
   9: <rustc_middle::ty::generics::GenericPredicates as rustc_serialize::serialize::Decodable<rustc_middle::query::on_disk_cache::CacheDecoder>>::decode
  10: rustc_query_system::query::plumbing::try_execute_query::<rustc_query_impl::DynamicConfig<rustc_query_system::query::caches::DefaultCache<rustc_span::def_id::DefId, rustc_middle::query::erase::Erased<[u8; 24]>>, false, false, false>, rustc_query_impl::plumbing::QueryCtxt, true>
  11: <rustc_privacy::ReachEverythingInTheInterfaceVisitor>::predicates
  12: <rustc_privacy::EmbargoVisitor as rustc_hir::intravisit::Visitor>::visit_item
  13: <rustc_middle::hir::map::Map>::visit_all_item_likes_in_crate::<rustc_privacy::EmbargoVisitor>
  14: rustc_privacy::effective_visibilities
  15: rustc_passes::stability::check_unused_or_stable_features
  16: <rustc_session::session::Session>::time::<(), rustc_interface::passes::analysis::{closure#0}::{closure#2}::{closure#0}>
  17: <rustc_session::session::Session>::time::<(), rustc_interface::passes::analysis::{closure#0}>
  18: rustc_interface::passes::analysis
  19: <rustc_interface::queries::QueryResult<&rustc_middle::ty::context::GlobalCtxt>>::enter::<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#1}::{closure#2}::{closure#4}>
  20: <rustc_interface::interface::Compiler>::enter::<rustc_driver_impl::run_compiler::{closure#1}::{closure#2}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_span::ErrorGuaranteed>>
  21: rustc_span::set_source_map::<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

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.71.0-beta.1 (eff24c06d 2023-05-29) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type dylib -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -Z unstable-options -C incremental=[REDACTED] -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C split-debuginfo=off -C llvm-args=-import-instr-limit=10 -Z binary-dep-depinfo -Z force-unstable-if-unmarked

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
thread panicked while processing panic. aborting.
rustc exited with signal: 6 (SIGABRT) (core dumped)
error: could not compile `rustc_codegen_cranelift` (lib)

Caused by:
  process didn't exit successfully: `/home/ddystopia/code/rust/build/bootstrap/debug/rustc --crate-name rustc_codegen_cranelift --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=146 --crate-type dylib --emit=dep-info,metadata -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -Zunstable-options --check-cfg 'values(feature, "cranelift-jit", "inline_asm", "jit", "libloading", "unstable-features")' --check-cfg 'names()' --check-cfg 'values()' -C metadata=b750c77675e3c654 -C extra-filename=-b750c77675e3c654 --out-dir /home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C incremental=/home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/incremental -L dependency=/home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/release/deps --extern cranelift_codegen=/home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libcranelift_codegen-f9d45514492e7409.rmeta --extern cranelift_frontend=/home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libcranelift_frontend-c720db7615aa9f93.rmeta --extern cranelift_module=/home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libcranelift_module-ea42c1a2056b0c63.rmeta --extern cranelift_native=/home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libcranelift_native-9cbd30efe0d0292e.rmeta --extern cranelift_object=/home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libcranelift_object-1adb12633af0802f.rmeta --extern gimli=/home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libgimli-73b124f479b1f91d.rmeta --extern indexmap=/home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libindexmap-5d6b7320ce9f95df.rmeta --extern object=/home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libobject-75744b134167a438.rmeta --extern smallvec=/home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libsmallvec-c59d547ef7be3cd6.rmeta --extern target_lexicon=/home/ddystopia/code/rust/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/deps/libtarget_lexicon-8f597294f0dfce7c.rmeta --cfg=bootstrap -Csymbol-mangling-version=v0 -Zunstable-options '--check-cfg=values(bootstrap)' '--check-cfg=values(parallel_compiler)' -Zmacro-backtrace -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Csplit-debuginfo=off -Cllvm-args=-import-instr-limit=10 -Z binary-dep-depinfo` (exit status: 254)
Build completed unsuccessfully in 0:02:06

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions