From: bors Date: Wed, 23 Nov 2016 23:48:44 +0000 (-0600) Subject: Auto merge of #37931 - eddyb:meta-version, r=jseyfried X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=1e45b63052ae19c206a347d7fdfcdd97929f57d3;p=rust.git Auto merge of #37931 - eddyb:meta-version, r=jseyfried rustc_metadata: don't break the version check when CrateRoot changes. In #36551 I made `rustc_version` a field of `CrateRoot`, but despite it being the first field, one could still break the version check by changing `CrateRoot` so older compilers couldn't fully decode it (e.g. #37463). This PR fixes #37803 by moving the version string back at the beginning of metadata, right after the 32-bit big-endian absolute position of `CrateRoot`, and by incrementing `METADATA_VERSION`. --- 1e45b63052ae19c206a347d7fdfcdd97929f57d3