1
Fork 0

Add #[allow(unused_mut)] for various cases that arise only in compare-mode=nll.

This commit is contained in:
Felix S. Klock II 2018-09-26 13:04:07 +02:00
parent c9d9cc6e44
commit 8d86800500
3 changed files with 3 additions and 0 deletions

View file

@ -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() {

View file

@ -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() {

View file

@ -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;