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.
|
||||
|
||||
// run-pass
|
||||
#![allow(unused_mut)] // under NLL we get warning about `bar` below
|
||||
fn baz() -> ! { panic!(); }
|
||||
|
||||
fn foo() {
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
// run-pass
|
||||
#![allow(unreachable_code)]
|
||||
#![allow(unused_mut)] // rust-lang/rust#54586
|
||||
#![deny(unused_variables)]
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
// run-pass
|
||||
#![feature(test)]
|
||||
#![allow(unused_mut)] // under NLL we get warning about `x` below: rust-lang/rust#54499
|
||||
|
||||
extern crate test;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue