Rollup merge of #88293 - est31:fix_grammar, r=Mark-Simulacrum
Fix grammar in alloc test
This commit is contained in:
commit
0aabf4bb4b
@ -35,11 +35,11 @@ fn box_clone_and_clone_from_equivalence() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This test might give a false positive in case the box realocates, but the alocator keeps the
|
/// This test might give a false positive in case the box reallocates,
|
||||||
/// original pointer.
|
/// but the allocator keeps the original pointer.
|
||||||
///
|
///
|
||||||
/// On the other hand it won't give a false negative, if it fails than the memory was definitely not
|
/// On the other hand, it won't give a false negative: If it fails, then the
|
||||||
/// reused
|
/// memory was definitely not reused.
|
||||||
#[test]
|
#[test]
|
||||||
fn box_clone_from_ptr_stability() {
|
fn box_clone_from_ptr_stability() {
|
||||||
for size in (0..8).map(|i| 2usize.pow(i)) {
|
for size in (0..8).map(|i| 2usize.pow(i)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user