about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-01-10 04:18:29 +0900
committerGitHub <noreply@github.com>2020-01-10 04:18:29 +0900
commit92bd267ba8d8d12cba15490c618628c1f3ea5ac5 (patch)
tree8582ecf268d798cb4219229716a51e417a5e837c /src/test/debuginfo/enum-thinlto.rs
parentc404ce689f7692f2c9b1df51803faf88ba11d2e8 (diff)
parentd860def8e2e2c807c37907c764b937ec35d4f2e6 (diff)
downloadrust-92bd267ba8d8d12cba15490c618628c1f3ea5ac5.tar.gz
rust-92bd267ba8d8d12cba15490c618628c1f3ea5ac5.zip
Rollup merge of #66254 - CAD97:patch-1, r=KodrAus
Make Layout::new const

This seems like a reasonable change to make. If we don't provide `Layout::new::<T>` as `const`, then users can just instead do the more error prone `Layout::from_size_align_unchecked(mem::size_of::<T>(), mem::align_of::<T>())` for the same effect and an extra `unsafe { }` incantation.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions