Skip to content

Commit

Permalink
Ensure that attributes are spelled properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedcharles committed Aug 13, 2016
1 parent d3c3de8 commit 6fbff4f
Show file tree
Hide file tree
Showing 23 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/doc/book/variable-bindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
^
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass-fulldeps/quote-unused-sp-no-warning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/enum-variants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// pretty-expanded FIXME #23616

#![allow(dead_assignment)]
#![allow(unused_variable)]
#![allow(unused_variables)]

enum Animal {
Dog (String, f64),
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/fn-type-infer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/generic-tag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// pretty-expanded FIXME #23616

#![allow(dead_assignment)]
#![allow(unused_variable)]
#![allow(unused_variables)]
#![allow(unknown_features)]
#![feature(box_syntax)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/issue-12660.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern crate issue12660aux;

use issue12660aux::{my_fn, MyStruct};

#[allow(path_statement)]
#[allow(path_statements)]
fn main() {
my_fn(MyStruct);
MyStruct;
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/issue-1451.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/issue-3878.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// pretty-expanded FIXME #23616

#![allow(path_statement)]
#![allow(path_statements)]
#![allow(unknown_features)]
#![feature(box_syntax)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/issue-4734.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// `e` is a type which requires a destructor.


#![allow(path_statement)]
#![allow(path_statements)]

struct A { n: isize }
struct B;
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/issue-7911.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) { }
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/liveness-assign-imm-local-after-loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#![allow(dead_assignment)]
#![allow(unreachable_code)]
#![allow(unused_variable)]
#![allow(unused_variables)]

fn test(_cond: bool) {
let v: isize;
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/long-while.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// pretty-expanded FIXME #23616

#![allow(unused_variable)]
#![allow(unused_variables)]

pub fn main() {
let mut i: isize = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/match-phi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// pretty-expanded FIXME #23616

#![allow(dead_assignment)]
#![allow(unused_variable)]
#![allow(unused_variables)]

enum thing { a, b, c, }

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/output-slot-variants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// pretty-expanded FIXME #23616

#![allow(dead_assignment)]
#![allow(unused_variable)]
#![allow(unused_variables)]
#![allow(unknown_features)]
#![feature(box_syntax)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/regions-fn-subtyping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/traits-default-method-mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/typestate-cfg-nesting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/unique-move-drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// except according to those terms.


#![allow(unused_variable)]
#![allow(unused_variables)]
#![allow(unknown_features)]
#![feature(box_syntax)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// pretty-expanded FIXME #23616

#![allow(unused_variable)]
#![allow(unused_variables)]
#![allow(dead_assignment)]

fn f(u: ()) { return u; }
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/unreachable-code-1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


#![allow(unreachable_code)]
#![allow(unused_variable)]
#![allow(unused_variables)]

fn id(x: bool) -> bool { x }

Expand Down
4 changes: 2 additions & 2 deletions src/test/run-pass/unreachable-code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/unused-move.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

// pretty-expanded FIXME #23616

#![allow(path_statement)]
#![allow(path_statements)]
#![allow(unknown_features)]
#![feature(box_syntax)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/while-loop-constraints-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6fbff4f

Please sign in to comment.