]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #39683 - solson:fix-unaligned-load-librustc_metadata, r=bluss
authorCorey Farwell <coreyf@rwell.org>
Thu, 9 Feb 2017 17:14:24 +0000 (12:14 -0500)
committerGitHub <noreply@github.com>
Thu, 9 Feb 2017 17:14:24 +0000 (12:14 -0500)
Fix unaligned load in librustc_metadata::index.

The derived `Clone` impl contains UB and will be unsafe when we fix https://github.com/rust-lang/rust/issues/27060. See [this comment](https://github.com/rust-lang/rust/issues/27060#issuecomment-278617096) for more context.

r? @bluss


Trivial merge