about summary refs log tree commit diff
path: root/src/libstd/io/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/io/mod.rs')
-rw-r--r--src/libstd/io/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index 495c0c8d172..0386dbd490d 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -374,11 +374,11 @@ where
                 // FIXME(danielhenrymantilla): #42788
                 //
                 //   - This creates a (mut) reference to a slice of
-                //     _uninitialized integers_.
+                //     _uninitialized_ integers, which is **undefined behavior**
                 //
-                //   - This having defined behavior is **unstable**:
-                //     it could become UB in the future,
-                //     at which point it would have be changed.
+                //   - Only the standard library gets to soundly "ignore" this,
+                //     based on its privileged knowledge of unstable rustc
+                //     internals;
                 g.buf.reserve(reservation_size(r));
                 let capacity = g.buf.capacity();
                 g.buf.set_len(capacity);