Add #[allow(unused_mut)]
for various cases that arise only in compare-mode=nll.
This commit is contained in:
parent
c9d9cc6e44
commit
8d86800500
3 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// run-pass
|
// run-pass
|
||||||
|
#![allow(unused_mut)] // under NLL we get warning about `bar` below
|
||||||
fn baz() -> ! { panic!(); }
|
fn baz() -> ! { panic!(); }
|
||||||
|
|
||||||
fn foo() {
|
fn foo() {
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
// run-pass
|
// run-pass
|
||||||
#![allow(unreachable_code)]
|
#![allow(unreachable_code)]
|
||||||
|
#![allow(unused_mut)] // rust-lang/rust#54586
|
||||||
#![deny(unused_variables)]
|
#![deny(unused_variables)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
// run-pass
|
// run-pass
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
|
#![allow(unused_mut)] // under NLL we get warning about `x` below: rust-lang/rust#54499
|
||||||
|
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue