]> git.lizzy.rs Git - rust.git/commit
Auto merge of #34539 - arielb1:metadata-hash, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 2 Jul 2016 13:50:59 +0000 (06:50 -0700)
committerGitHub <noreply@github.com>
Sat, 2 Jul 2016 13:50:59 +0000 (06:50 -0700)
commit7a262d303489fcbd8410b4e4cecc563b06799e16
tree8d3e21b20c9d10c5037b6923ce051b2139c56a76
parent8a50e295fa2f3e550e1c9c19e1a9cadb6323ff40
parent42b7c32ac8cdd08d3d396925f99d99286f581193
Auto merge of #34539 - arielb1:metadata-hash, r=alexcrichton

Make the metadata lock more robust

Fixes #33778 and friends.

I also needed to add a metadata encoding version to rlibs, as they did not have it before. To keep it backwards-compatible, I added 4 zeroes to the start of the metadata, which are treated as an empty length field by older rustcs.

r? @alexcrichton
src/librustc_metadata/astencode.rs