diff options
| author | Daniel Henry-Mantilla <daniel.henrymantilla@gatewatcher.com> | 2019-09-03 15:36:21 +0200 |
|---|---|---|
| committer | Daniel Henry-Mantilla <daniel.henrymantilla@gatewatcher.com> | 2019-09-03 15:36:21 +0200 |
| commit | b03d3dc478ba13f405cf9a877a4894de096a1cc1 (patch) | |
| tree | 472f461acdee5200158ad25f541130a9f4f5d756 /src/libstd/io/mod.rs | |
| parent | 23c76ff7b912f16f6fdbde167306b08e59353427 (diff) | |
| download | rust-b03d3dc478ba13f405cf9a877a4894de096a1cc1.tar.gz rust-b03d3dc478ba13f405cf9a877a4894de096a1cc1.zip | |
Changed comment to better reflect std's exceptional situation
Diffstat (limited to 'src/libstd/io/mod.rs')
| -rw-r--r-- | src/libstd/io/mod.rs | 8 |
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); |
