Skip to content

Commit a193942

Browse files
committed
Address review comments
1 parent 4120702 commit a193942

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/test/pretty/block-disambig.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
use std::cell::Cell;
99

10-
fn test1() { let val = &0; { } let _ = *val; }
10+
#[allow(unused_must_use)]
11+
fn test1() { let val = &0; { } *val; }
1112

1213
fn test2() -> isize { let val = &0; { } *val }
1314

src/test/pretty/unary-op-disambig.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ fn alt_semi() -> isize { match true { true => { f() } _ => { } }; -1 }
1616

1717
fn alt_no_semi() -> isize { (match true { true => { 0 } _ => { 1 } }) - 1 }
1818

19-
fn stmt() { { f() }; let _ = -1; }
19+
#[allow(unused_must_use)]
20+
fn stmt() { { f() }; -1; }

0 commit comments

Comments
 (0)