Skip to content

ICE: stage2 builds of rustc itself see metadata serialized by a different rustc #76720

Closed
@arora-aman

Description

@arora-aman

Error happened while working on updating closure capture analysis in rustc which is part of rustc_typeck.

Code

https://github.com/rust-lang/rust/compare/master...sexxi-goose:use_places_new?expand=1#diff-a7b1a49c68b1a1ce388558eee4f3514aR267

The highlighted line is what changed between the build that broke and the build before it.

Meta

Version reported in build log

rustc 1.48.0-dev running on x86_64-unknown-linux-gnu

Error output

error: internal compiler error: compiler/rustc_middle/src/ty/query/on_disk_cache.rs:422:23: could not decode cached query result: read_option: expected 0 for None or 1 for Some

thread 'rustc' panicked at 'assertion failed: `(left == right)
thread 'rustc' panicked at 'assertion failed: `(left == right)`
  left: `245`,
 right: `0`', 

and similarly one or two more

Complete build log: http://csclub.uwaterloo.ca/~a52arora/ice/log_75e93202-df10-4ea2-bff9-167ff9b968c2
Build log with RUST_BACKTRACE=1: http://csclub.uwaterloo.ca/~a52arora/ice/log_b7ef389e-c9a9-495e-92c1-5f55468705ec

Build directory: http://csclub.uwaterloo.ca/~a52arora/ice/build.tar (Heads up, this is 29G tar, 39G extracted)

Metadata

Metadata

Assignees

Labels

A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustA-metadataArea: Crate metadataC-bugCategory: This is a bug.E-help-wantedCall for participation: Help is requested to fix this issue.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)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