Freezing uninitialized values (freeze loads)
tl;dr I would like to add the following function to the language and the standard library: // in `core::ptr` pub unsafe fn read_freeze<T>(ptr: *const T) -> T; This function works like core::ptr::read(), but if the value…