mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
#[deny(unsafe_op_in_unsafe_fn)] in libstd/fs.rs
This commit is contained in:
+4
-2
@@ -666,7 +666,8 @@ fn is_read_vectored(&self) -> bool {
|
||||
|
||||
#[inline]
|
||||
unsafe fn initializer(&self) -> Initializer {
|
||||
Initializer::nop()
|
||||
// SAFETY: Read is guaranteed to work on uninitialized memory
|
||||
unsafe { Initializer::nop() }
|
||||
}
|
||||
}
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
@@ -711,7 +712,8 @@ fn is_read_vectored(&self) -> bool {
|
||||
|
||||
#[inline]
|
||||
unsafe fn initializer(&self) -> Initializer {
|
||||
Initializer::nop()
|
||||
// SAFETY: Read is guaranteed to work on uninitialized memory
|
||||
unsafe { Initializer::nop() }
|
||||
}
|
||||
}
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
Reference in New Issue
Block a user