We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be3695e commit e03b369Copy full SHA for e03b369
src/libs/maintaining-std.md
@@ -260,7 +260,7 @@ impl<T> Drop for OptionCell<T> {
260
if self.is_init {
261
// Safety: `value` is guaranteed to be fully initialized when `is_init` is true.
262
// Safety: The cell is being dropped, so it can't be accessed again.
263
- drop(unsafe { self.value.read() });
+ unsafe { self.value.assume_init_drop() };
264
}
265
266
0 commit comments