Ensure that attributes are spelled properly.

This commit is contained in:
Ahmed Charles 2016-08-13 02:41:43 -07:00
parent d3c3de8abe
commit 6fbff4f06a
23 changed files with 24 additions and 24 deletions

View File

@ -125,7 +125,7 @@ warning, but it will still print "Hello, world!":
```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;
^

View File

@ -12,7 +12,7 @@
// ignore-pretty: does not work well with `--test`
#![feature(quote, rustc_private)]
#![deny(unused_variable)]
#![deny(unused_variables)]
extern crate syntax;

View File

@ -11,7 +11,7 @@
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
#![allow(unused_variable)]
#![allow(unused_variables)]
enum Animal {
Dog (String, f64),

View File

@ -10,7 +10,7 @@
// pretty-expanded FIXME #23616
#![allow(unused_variable)]
#![allow(unused_variables)]
pub fn main() {
// We should be able to type infer inside of ||s.

View File

@ -11,7 +11,7 @@
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
#![allow(unused_variable)]
#![allow(unused_variables)]
#![allow(unknown_features)]
#![feature(box_syntax)]

View File

@ -16,7 +16,7 @@
use issue12660aux::{my_fn, MyStruct};
#[allow(path_statement)]
#[allow(path_statements)]
fn main() {
my_fn(MyStruct);
MyStruct;

View File

@ -10,7 +10,7 @@
// pretty-expanded FIXME #23616
#![allow(unused_variable)]
#![allow(unused_variables)]
struct T { f: extern "Rust" fn() }
struct S { f: extern "Rust" fn() }

View File

@ -10,7 +10,7 @@
// pretty-expanded FIXME #23616
#![allow(path_statement)]
#![allow(path_statements)]
#![allow(unknown_features)]
#![feature(box_syntax)]

View File

@ -12,7 +12,7 @@
// `e` is a type which requires a destructor.
#![allow(path_statement)]
#![allow(path_statements)]
struct A { n: isize }
struct B;

View File

@ -13,7 +13,7 @@
// (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) { }
}

View File

@ -12,7 +12,7 @@
#![allow(dead_assignment)]
#![allow(unreachable_code)]
#![allow(unused_variable)]
#![allow(unused_variables)]
fn test(_cond: bool) {
let v: isize;

View File

@ -10,7 +10,7 @@
// pretty-expanded FIXME #23616
#![allow(unused_variable)]
#![allow(unused_variables)]
pub fn main() {
let mut i: isize = 0;

View File

@ -11,7 +11,7 @@
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
#![allow(unused_variable)]
#![allow(unused_variables)]
enum thing { a, b, c, }

View File

@ -11,7 +11,7 @@
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
#![allow(unused_variable)]
#![allow(unused_variables)]
#![allow(unknown_features)]
#![feature(box_syntax)]

View File

@ -13,7 +13,7 @@
// 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.

View File

@ -11,7 +11,7 @@
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
#![allow(unused_variable)]
#![allow(unused_variables)]
trait Foo {
fn foo(&self, mut v: isize) { v = 1; }

View File

@ -11,7 +11,7 @@
// pretty-expanded FIXME #23616
#![allow(dead_assignment)]
#![allow(unused_variable)]
#![allow(unused_variables)]
fn f() {
let x = 10; let mut y = 11;

View File

@ -9,7 +9,7 @@
// except according to those terms.
#![allow(unused_variable)]
#![allow(unused_variables)]
#![allow(unknown_features)]
#![feature(box_syntax)]

View File

@ -10,7 +10,7 @@
// pretty-expanded FIXME #23616
#![allow(unused_variable)]
#![allow(unused_variables)]
#![allow(dead_assignment)]
fn f(u: ()) { return u; }

View File

@ -10,7 +10,7 @@
#![allow(unreachable_code)]
#![allow(unused_variable)]
#![allow(unused_variables)]
fn id(x: bool) -> bool { x }

View File

@ -9,9 +9,9 @@
// 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 }

View File

@ -14,7 +14,7 @@
// pretty-expanded FIXME #23616
#![allow(path_statement)]
#![allow(path_statements)]
#![allow(unknown_features)]
#![feature(box_syntax)]

View File

@ -9,7 +9,7 @@
// except according to those terms.
#![allow(dead_assignment)]
#![allow(unused_variable)]
#![allow(unused_variables)]
pub fn main() {
let mut y: isize = 42;