Changed comment to better reflect std's exceptional situation

This commit is contained in:
Daniel Henry-Mantilla 2019-09-03 15:36:21 +02:00
parent 23c76ff7b9
commit b03d3dc478

View file

@ -374,11 +374,11 @@ where
// FIXME(danielhenrymantilla): #42788 // FIXME(danielhenrymantilla): #42788
// //
// - This creates a (mut) reference to a slice of // - This creates a (mut) reference to a slice of
// _uninitialized integers_. // _uninitialized_ integers, which is **undefined behavior**
// //
// - This having defined behavior is **unstable**: // - Only the standard library gets to soundly "ignore" this,
// it could become UB in the future, // based on its privileged knowledge of unstable rustc
// at which point it would have be changed. // internals;
g.buf.reserve(reservation_size(r)); g.buf.reserve(reservation_size(r));
let capacity = g.buf.capacity(); let capacity = g.buf.capacity();
g.buf.set_len(capacity); g.buf.set_len(capacity);