Skip to content

Commit 8d86800

Browse files
committed
Add #[allow(unused_mut)] for various cases that arise only in compare-mode=nll.
1 parent c9d9cc6 commit 8d86800

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/test/run-pass/binding/nested-matchs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_mut)] // under NLL we get warning about `bar` below
1213
fn baz() -> ! { panic!(); }
1314

1415
fn foo() {

src/test/run-pass/issues/issue-30371.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// run-pass
1212
#![allow(unreachable_code)]
13+
#![allow(unused_mut)] // rust-lang/rust#54586
1314
#![deny(unused_variables)]
1415

1516
fn main() {

src/test/run-pass/issues/issue-49298.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// run-pass
1212
#![feature(test)]
13+
#![allow(unused_mut)] // under NLL we get warning about `x` below: rust-lang/rust#54499
1314

1415
extern crate test;
1516

0 commit comments

Comments
 (0)