about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-01-12 03:27:54 +0100
committerGitHub <noreply@github.com>2020-01-12 03:27:54 +0100
commit019790c72a079fd9f695290322985bd693e06037 (patch)
treee923e00968dba3ec09e9998242bf15ee76b30cd9 /src/test/debuginfo/enum-thinlto.rs
parentf363745872f9b45cfec575f3c2cac42f0c242c03 (diff)
parentc5a9a14c9f793ce20d34cffac09f4ee21d541565 (diff)
downloadrust-019790c72a079fd9f695290322985bd693e06037.tar.gz
rust-019790c72a079fd9f695290322985bd693e06037.zip
Rollup merge of #67494 - lukaslueg:const_alloc, r=oli-obk
Constify more of alloc::Layout

Making more methods of `alloc::Layout` const would allow us to compute alignment/size information for arbitrary (sized) types at compile-time, including placing the information in associated constants. While `mem::size_of` and `mem::align_of` are already const and `Layout` is solely based on those, there is no guarantee in the implementation that a const derived from these functions will be exactly the same as what `Layout` uses and is subsequently used in a call to `alloc::alloc`. Constifying `Layout` makes this possible.

First contribution to core, excuse my ignorance.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions