```text
Compiling hello_world v0.0.1 (file:///home/you/projects/hello_world)
-src/main.rs:2:9: 2:10 warning: unused variable: `x`, #[warn(unused_variable)]
+src/main.rs:2:9: 2:10 warning: unused variable: `x`, #[warn(unused_variables)]
on by default
src/main.rs:2 let x: i32;
^
// ignore-pretty: does not work well with `--test`
#![feature(quote, rustc_private)]
-#![deny(unused_variable)]
+#![deny(unused_variables)]
extern crate syntax;
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
enum Animal {
Dog (String, f64),
// pretty-expanded FIXME #23616
-#![allow(unused_variable)]
+#![allow(unused_variables)]
pub fn main() {
// We should be able to type infer inside of ||s.
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
#![allow(unknown_features)]
#![feature(box_syntax)]
use issue12660aux::{my_fn, MyStruct};
-#[allow(path_statement)]
+#[allow(path_statements)]
fn main() {
my_fn(MyStruct);
MyStruct;
// pretty-expanded FIXME #23616
-#![allow(unused_variable)]
+#![allow(unused_variables)]
struct T { f: extern "Rust" fn() }
struct S { f: extern "Rust" fn() }
// pretty-expanded FIXME #23616
-#![allow(path_statement)]
+#![allow(path_statements)]
#![allow(unknown_features)]
#![feature(box_syntax)]
// `e` is a type which requires a destructor.
-#![allow(path_statement)]
+#![allow(path_statements)]
struct A { n: isize }
struct B;
// (Closes #7911) Test that we can use the same self expression
// with different mutability in macro in two methods
-#![allow(unused_variable)] // unused foobar_immut + foobar_mut
+#![allow(unused_variables)] // unused foobar_immut + foobar_mut
trait FooBar {
fn dummy(&self) { }
}
#![allow(dead_assignment)]
#![allow(unreachable_code)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
fn test(_cond: bool) {
let v: isize;
// pretty-expanded FIXME #23616
-#![allow(unused_variable)]
+#![allow(unused_variables)]
pub fn main() {
let mut i: isize = 0;
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
enum thing { a, b, c, }
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
#![allow(unknown_features)]
#![feature(box_syntax)]
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
#![allow(unknown_features)]
// FIXME (#22405): Replace `Box::new` with `box` here when/if possible.
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
trait Foo {
fn foo(&self, mut v: isize) { v = 1; }
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
fn f() {
let x = 10; let mut y = 11;
// except according to those terms.
-#![allow(unused_variable)]
+#![allow(unused_variables)]
#![allow(unknown_features)]
#![feature(box_syntax)]
// pretty-expanded FIXME #23616
-#![allow(unused_variable)]
+#![allow(unused_variables)]
#![allow(dead_assignment)]
fn f(u: ()) { return u; }
#![allow(unreachable_code)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
fn id(x: bool) -> bool { x }
// except according to those terms.
-#![allow(path_statement)]
+#![allow(path_statements)]
#![allow(unreachable_code)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
fn id(x: bool) -> bool { x }
// pretty-expanded FIXME #23616
-#![allow(path_statement)]
+#![allow(path_statements)]
#![allow(unknown_features)]
#![feature(box_syntax)]
// except according to those terms.
#![allow(dead_assignment)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
pub fn main() {
let mut y: isize = 42;