Skip to content

Commit

Permalink
Auto merge of #91715 - the8472:bump-rmeta-fromat-version, r=Mark-Simu…
Browse files Browse the repository at this point in the history
…lacrum

Bump rmeta version to fix rustc_serialize ICE

#91407 changed the serialization format which leads to ICEs for nightly users such as #91663 and linked issues. The issue can be solved by running `cargo clean`. But bumping the metadata version should lead to the cached files being discarded, avoiding the issue entirely.
  • Loading branch information
bors committed Dec 11, 2021
2 parents f0448f4 + 0696e79 commit 82575a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_metadata/src/rmeta/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ crate fn rustc_version() -> String {
/// Metadata encoding version.
/// N.B., increment this if you change the format of metadata such that
/// the rustc version can't be found to compare with `rustc_version()`.
const METADATA_VERSION: u8 = 5;
const METADATA_VERSION: u8 = 6;

/// Metadata header which includes `METADATA_VERSION`.
///
Expand Down

0 comments on commit 82575a1

Please sign in to comment.