[PATCH] Avoid forming references to an uninitialized memory in DroplessArena
authorTomasz Miąsko <tomasz.miasko@gmail.com>
Sun, 14 Jun 2020 00:00:00 +0000 (00:00 +0000)
committerXimin Luo <infinity0@debian.org>
Thu, 6 Aug 2020 20:11:39 +0000 (21:11 +0100)
commit57f94bf5deb76567fe821dff85ecd01002c4d03f
treebf3b7cce62173b6e80f9472ff2c9be64b5958248
parenta2cc8d868adb0c64be5f76985c826922cb269a25
[PATCH] Avoid forming references to an uninitialized memory in DroplessArena

Return a pointer from `alloc_raw` instead of a slice. There is no
practical use for slice as a return type and changing it to a pointer
avoids forming references to an uninitialized memory.

Gbp-Pq: Name u-1f0895162ba5a783d4d73d5c263552eaca9343b3.patch
src/libarena/lib.rs
src/librustc_middle/ty/list.rs