]> git.lizzy.rs Git - rust.git/commit
Changed `Layout::from_size_align` to return `Option`.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 15 Jun 2017 20:44:56 +0000 (22:44 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 15 Jun 2017 21:48:30 +0000 (23:48 +0200)
commit1d3bc4e90fab35d4debe7d6cb0468d299b38354c
tree980b2e38c735479fd6ebae71d85a007d4fd970e5
parent066fafe2062b17fac343219e0067edbc14b774ae
Changed `Layout::from_size_align` to return `Option`.

Added `unwrap` calls in all the places where I can infer that the
conditions are met to avoid panic (or when the calling method itself
says it will panic in such a case).
src/liballoc/allocator.rs