]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #38023 - arielb1:constant-evil-x2, r=eddyb
authorbors <bors@rust-lang.org>
Sun, 27 Nov 2016 03:49:41 +0000 (21:49 -0600)
committerGitHub <noreply@github.com>
Sun, 27 Nov 2016 03:49:41 +0000 (21:49 -0600)
don't double-apply variant padding to const enums

`build_const_struct` already returns the struct with padding - don't double-apply it in the `General` case.

This should hopefully be the last time we have this sort of bug.

Fixes #38002.

Beta-nominating because regression.

r? @eddyb


Trivial merge