]> git.lizzy.rs Git - rust.git/commitdiff
Ensure that attributes are spelled properly.
authorAhmed Charles <acharles@outlook.com>
Sat, 13 Aug 2016 09:41:43 +0000 (02:41 -0700)
committerAhmed Charles <acharles@outlook.com>
Sat, 13 Aug 2016 09:41:43 +0000 (02:41 -0700)
23 files changed:
src/doc/book/variable-bindings.md
src/test/run-pass-fulldeps/quote-unused-sp-no-warning.rs
src/test/run-pass/enum-variants.rs
src/test/run-pass/fn-type-infer.rs
src/test/run-pass/generic-tag.rs
src/test/run-pass/issue-12660.rs
src/test/run-pass/issue-1451.rs
src/test/run-pass/issue-3878.rs
src/test/run-pass/issue-4734.rs
src/test/run-pass/issue-7911.rs
src/test/run-pass/liveness-assign-imm-local-after-loop.rs
src/test/run-pass/long-while.rs
src/test/run-pass/match-phi.rs
src/test/run-pass/output-slot-variants.rs
src/test/run-pass/regions-fn-subtyping.rs
src/test/run-pass/traits-default-method-mut.rs
src/test/run-pass/typestate-cfg-nesting.rs
src/test/run-pass/unique-move-drop.rs
src/test/run-pass/unit.rs
src/test/run-pass/unreachable-code-1.rs
src/test/run-pass/unreachable-code.rs
src/test/run-pass/unused-move.rs
src/test/run-pass/while-loop-constraints-2.rs

index b6751f57a972146a8bbefc936ed1cee0d3fba26c..30e922d7f4dc0714f8ddd12eeabcdb2c2bbaf438 100644 (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;
                       ^
index e9de95b95e5fd0cb1c47a519611fc94dd455d8c2..460eab998c6fb473e5515ec4a444a31be66cd3e1 100644 (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;
 
index 77e6141d5592d2ed01b86b690c0de8d1d1542ba8..5eb7a243acf0c242e7e43b91495eb3fe64a80f1a 100644 (file)
@@ -11,7 +11,7 @@
 // pretty-expanded FIXME #23616
 
 #![allow(dead_assignment)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
 
 enum Animal {
     Dog (String, f64),
index 3e1674a97e089f5a311f9bdfd365fb8a77a623d7..ad6c10611aaa053df61538e5f9e12a7e35f14415 100644 (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.
index 942bdb97ba20383b16fcb8fde05ae8d230dde877..75fd9fcb7b6d835e369504deecdc55a28e8afde0 100644 (file)
@@ -11,7 +11,7 @@
 // pretty-expanded FIXME #23616
 
 #![allow(dead_assignment)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
 #![allow(unknown_features)]
 #![feature(box_syntax)]
 
index 331f9d991d681ab0173059ad9673d1d001122076..ebf390cfe4fc32c530fdae15419a04e834696f28 100644 (file)
@@ -16,7 +16,7 @@
 
 use issue12660aux::{my_fn, MyStruct};
 
-#[allow(path_statement)]
+#[allow(path_statements)]
 fn main() {
     my_fn(MyStruct);
     MyStruct;
index 1cbe986e88af0ebd77cbc91d32e3a86233c6215f..b65a3a9ab70841b05991fd5503c2e213fd6c247d 100644 (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() }
index c98110b9054bedc5bea0342ff049ecd0d0a68647..5d094af2149e13082526f363ba750a60589bfc92 100644 (file)
@@ -10,7 +10,7 @@
 
 // pretty-expanded FIXME #23616
 
-#![allow(path_statement)]
+#![allow(path_statements)]
 #![allow(unknown_features)]
 #![feature(box_syntax)]
 
index 88a3b24d14fc899efa335d28b92b3cf1f8cc5676..9fb826712adc0363a780980728e283067b60e35b 100644 (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;
index 3eb593708bee82e3651a74875f4ec1e418bb1e70..5324ddb49e79f7e2f9c0983b48b16116da527fae 100644 (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) { }
 }
index df89809ef1fed25a0dc86778e8b784790bedc9d8..dfa080550469abde09071ab991ffd5a075f5d82c 100644 (file)
@@ -12,7 +12,7 @@
 
 #![allow(dead_assignment)]
 #![allow(unreachable_code)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
 
 fn test(_cond: bool) {
     let v: isize;
index 6e0f1bb87a5fb678e558d176249f7eeb99ed374e..ce55c76120235fc8e61fb5612b204ca8d33a7ccf 100644 (file)
@@ -10,7 +10,7 @@
 
 // pretty-expanded FIXME #23616
 
-#![allow(unused_variable)]
+#![allow(unused_variables)]
 
 pub fn main() {
     let mut i: isize = 0;
index ac070cb1f2542d593c25a798b971f63ae8207c52..24185ffa4128fe457bf0fd71c63a1e33ca45bd6f 100644 (file)
@@ -11,7 +11,7 @@
 // pretty-expanded FIXME #23616
 
 #![allow(dead_assignment)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
 
 enum thing { a, b, c, }
 
index 33489688d4a5c60ada36996534e109a5951ddca3..4c3017c066e81b313521fc8da64cba10c9461be1 100644 (file)
@@ -11,7 +11,7 @@
 // pretty-expanded FIXME #23616
 
 #![allow(dead_assignment)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
 #![allow(unknown_features)]
 #![feature(box_syntax)]
 
index e5b652c306f4df744b91e3cb8d679bb209bd97d8..fc42fbc714c099cfbb5d27e1e1aeac7b5042b07a 100644 (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.
index 3f61eb47233b6dc731196181e84d3fd411f72360..bcdadb1d90d385eb4c3e0a1dc158d7e113d0f28f 100644 (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; }
index 86184f6cf0f4370d06f4bc7cbf5394c30b1ef6da..2acaff262690bb1771a3086114a39aa54944b640 100644 (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;
index 530ba4789102eca7e1b5a8cdb0c64848627c41b9..c2813771b7c34499cfb15d82461d5d6e7c6bb8b0 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 
-#![allow(unused_variable)]
+#![allow(unused_variables)]
 #![allow(unknown_features)]
 #![feature(box_syntax)]
 
index 2679c4c033121111574ef566c4cecea176ef5558..67eceba020c803a03a98bf297e04c3e3fff3c78a 100644 (file)
@@ -10,7 +10,7 @@
 
 // pretty-expanded FIXME #23616
 
-#![allow(unused_variable)]
+#![allow(unused_variables)]
 #![allow(dead_assignment)]
 
 fn f(u: ()) { return u; }
index c1c069236c88de2cd436d3b24c5737cee4dc9821..189c5cdb9b747f7aaf7c64c28f72a176455efd69 100644 (file)
@@ -10,7 +10,7 @@
 
 
 #![allow(unreachable_code)]
-#![allow(unused_variable)]
+#![allow(unused_variables)]
 
 fn id(x: bool) -> bool { x }
 
index e19fda5f872d26dcfcee39799e623add08ade42a..5cb5e8c4f99cd9271053911f1750dec46f28e016 100644 (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 }
 
index 015b6f80946f837e2925783054574271058b6bf8..e4b9d14fb4b30aab6d2b5c45e85f0e2204dc5257 100644 (file)
@@ -14,7 +14,7 @@
 
 // pretty-expanded FIXME #23616
 
-#![allow(path_statement)]
+#![allow(path_statements)]
 #![allow(unknown_features)]
 #![feature(box_syntax)]
 
index 6e3392324753b42e5486755025c550564255c91d..6e9e7bc24d6a028031f5f266ce4847f08cb44398 100644 (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;