diff options
| author | bors <bors@rust-lang.org> | 2017-07-28 00:49:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-07-28 00:49:39 +0000 |
| commit | 63b3a03dc8db9a11412f47ca0fbe78ce70e76bc9 (patch) | |
| tree | 52fdc95489cec0c15b3febfda38e8b03d0136549 /src/rustllvm/RustWrapper.cpp | |
| parent | 8a78a12a55621f22475dedacc0f6b42bff87a4c1 (diff) | |
| parent | ef8804ba277b055fdc3e6d148e680e3c1b597ad8 (diff) | |
| download | rust-63b3a03dc8db9a11412f47ca0fbe78ce70e76bc9.tar.gz rust-63b3a03dc8db9a11412f47ca0fbe78ce70e76bc9.zip | |
Auto merge of #43217 - pnkfelix:alloc-requires-align-it-in-u32, r=alexcrichton
Add precondition to `Layout` that the `align` fit in a u32. Add precondition to `Layout` that the `align` not exceed 2^31. This precondition takes the form of a behavorial change in `Layout::from_size_align` (so it returns `None` if the input `align` is too large) and a new requirement for safe usage of `Layout::from_size_align_unchecked`. Fix #30170.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
