Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 2 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
3f1e391
Exclude manually arranged ascii tables from rustfmt
dtolnay Nov 30, 2019
24d7f72
Suppress libcore/ptr/mod.rs filelength lint
dtolnay Nov 30, 2019
c737169
Format libcore with rustfmt (including tests and benches)
dtolnay Dec 7, 2019
e9840d9
Print the visibility in `print_variant`.
Centril Dec 1, 2019
1b2a422
Simplify `check_decl_no_pat`.
Centril Dec 1, 2019
7ba1232
libcore: ignore tests in Miri instead of removing them entirely
RalfJung Dec 7, 2019
ca2ffe3
liballoc: ignore tests in Miri instead of removing them entirely
RalfJung Dec 7, 2019
ab73d10
fix warnings with cfg(miri)
RalfJung Dec 7, 2019
d97379a
Added ExactSizeIterator bound to return types
Dec 7, 2019
2b2b16c
Simplify `Layout::extend_packed`
kraai Dec 6, 2019
2468b23
fix miri step debug printing
RalfJung Dec 8, 2019
4ea7bb8
Move `Layout`s instead of binding by reference
kraai Dec 8, 2019
b879ecc
Do not ICE on closure
JohnTitor Dec 8, 2019
bf1f1c2
inline some common methods on OsStr
tesuji Dec 9, 2019
9e6725d
resolve: Resolve visibilities on fields with non-builtin attributes
petrochenkov Dec 6, 2019
e2c962d
resolve: Cleanup some field processing code
petrochenkov Dec 6, 2019
5f6267c
resolve: Make visibility resolution more speculative
petrochenkov Dec 6, 2019
989bf84
Added ExactSizeIterator bound to return types
Dec 9, 2019
4166ce8
Rollup merge of #66892 - dtolnay:fmt5, r=KodrAus
tmandry Dec 9, 2019
5c6941b
Rollup merge of #67106 - petrochenkov:docerr, r=matthewjasper
tmandry Dec 9, 2019
3340a5b
Rollup merge of #67113 - Centril:enum-vis-pretty-fix, r=davidtwco
tmandry Dec 9, 2019
a0e00f8
Rollup merge of #67115 - Centril:simplify-check-decl-no-pat, r=davidtwco
tmandry Dec 9, 2019
e775820
Rollup merge of #67119 - RalfJung:miri-test-libstd, r=alexcrichton
tmandry Dec 9, 2019
28b112f
Rollup merge of #67125 - hashedone:master, r=petrochenkov
tmandry Dec 9, 2019
6b6b6f3
Rollup merge of #67138 - kraai:simplify-Layout-extend_packed, r=Amanieu
tmandry Dec 9, 2019
5ce5464
Rollup merge of #67145 - RalfJung:miri-step, r=oli-obk
tmandry Dec 9, 2019
c2702e3
Rollup merge of #67149 - JohnTitor:fix-ice-1, r=Dylan-DPC
tmandry Dec 9, 2019
196ca9d
Rollup merge of #67155 - kraai:move-instead-of-binding-to-reference, …
tmandry Dec 9, 2019
c255815
Rollup merge of #67169 - lzutao:inline_osstr, r=nagisa
tmandry Dec 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/libcore/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,7 @@ impl Layout {
pub fn extend_packed(&self, next: Self) -> Result<Self, LayoutErr> {
let new_size = self.size().checked_add(next.size())
.ok_or(LayoutErr { private: () })?;
let layout = Layout::from_size_align(new_size, self.align())?;
Ok(layout)
Layout::from_size_align(new_size, self.align())
}

/// Creates a layout describing the record for a `[T; n]`.
Expand Down