]> git.lizzy.rs Git - rust.git/commit
Auto merge of #45688 - Gankro:layout-tests, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 9 Nov 2017 00:50:56 +0000 (00:50 +0000)
committerbors <bors@rust-lang.org>
Thu, 9 Nov 2017 00:50:56 +0000 (00:50 +0000)
commitfc77b623d3072005f35e320e652f2b31695d493c
tree3e715c71fcceb7d739cdd84b9e5744ccc5903ba9
parentda3fbe750fa0f971f24a41e574fd44ca582be239
parente156f89e116f662110d01476c4ae4b400a8fa75d
Auto merge of #45688 - Gankro:layout-tests, r=alexcrichton

Add reftest that checks the layout of repr(int) on non-c-like enums

This verifies the first layout specified in https://github.com/rust-lang/rfcs/pull/2195

The second (`repr(C)`) layout isn't included here because it doesn't actually exist today. However if/when that's implemented a second test could be fairly easily derived from this one.

CC @eddyb