]> git.lizzy.rs Git - rust.git/commit
Improve #Safety in various methods in core::ptr
authorAmos Onn <amosonn@gmail.com>
Fri, 31 Jan 2020 14:22:51 +0000 (15:22 +0100)
committerAmos Onn <amosonn@gmail.com>
Sat, 15 Feb 2020 13:00:21 +0000 (14:00 +0100)
commit40ca16794456e9b1520bba6d887a176395f127f0
treea7e84d11720ce34199c21a92fea85be5d8d45119
parent351782d30aaa6e15204e17ecdd51ac1e712685cf
Improve #Safety in various methods in core::ptr

For all methods which read a value of type T, `read`, `read_unaligned`,
`read_volatile` and `replace`, added missing
constraint:
The value they point to must be properly initialized
src/libcore/ptr/mod.rs