We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9025c5 commit 73e27b3Copy full SHA for 73e27b3
library/std/src/process.rs
@@ -105,6 +105,7 @@
105
//! [`Read`]: ../io/trait.Read.html
106
107
#![stable(feature = "process", since = "1.0.0")]
108
+#![deny(unsafe_op_in_unsafe_fn)]
109
110
use crate::io::prelude::*;
111
@@ -311,7 +312,8 @@ impl Read for ChildStdout {
311
312
313
#[inline]
314
unsafe fn initializer(&self) -> Initializer {
- Initializer::nop()
315
+ // SAFETY: Read is guaranteed to work on uninitialized memory
316
+ unsafe { Initializer::nop() }
317
}
318
319
@@ -372,7 +374,8 @@ impl Read for ChildStderr {
372
374
373
375
376
377
378
379
380
381
0 commit comments