Skip to content

Commit e698ca1

Browse files
committed
fix a misleading comment in TB tests
1 parent 8b10bda commit e698ca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/tests/pass/tree_borrows/tree-borrows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ fn not_unpin_not_protected() {
321321
pub struct NotUnpin(#[allow(dead_code)] i32, PhantomPinned);
322322

323323
fn inner(x: &mut NotUnpin, f: fn(&mut NotUnpin)) {
324-
// `f` may mutate, but it may not deallocate!
324+
// `f` is allowed to deallocate `x`.
325325
f(x)
326326
}
327327

0 commit comments

Comments
 (0)