Skip to content

Commit b520c2f

Browse files
committed
Adjust comments in test case
1 parent 483ae32 commit b520c2f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/run-pass/cleanup-rvalue-scopes.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ macro_rules! end_of_block(
6767
println!("end_of_block({})", stringify!({let $pat = $expr;}));
6868

6969
{
70-
// Destructor here does not run until exit from the block,
71-
// because value is assigned to.
70+
// Destructor here does not run until exit from the block.
7271
let $pat = $expr;
7372
check_flags(0);
7473
}
@@ -83,8 +82,8 @@ macro_rules! end_of_stmt(
8382
println!("end_of_stmt({})", stringify!($expr));
8483

8584
{
86-
// Destructor here does not run until exit from the block,
87-
// because value is assigned to.
85+
// Destructor here run after `let` statement
86+
// terminates.
8887
let $pat = $expr;
8988
check_flags(1);
9089
}

0 commit comments

Comments
 (0)