We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7b7f6f9 + 71a5c46 commit fe716d0Copy full SHA for fe716d0
library/alloc/tests/vec.rs
@@ -1511,6 +1511,9 @@ fn test_stable_pointers() {
1511
// Test that, if we reserved enough space, adding and removing elements does not
1512
// invalidate references into the vector (such as `v0`). This test also
1513
// runs in Miri, which would detect such problems.
1514
+ // Note that this test does *not* constitute a stable guarantee that all these functions do not
1515
+ // reallocate! Only what is explicitly documented at
1516
+ // <https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#guarantees> is stably guaranteed.
1517
let mut v = Vec::with_capacity(128);
1518
v.push(13);
1519
0 commit comments