Ensure that attributes are spelled properly.
This commit is contained in:
parent
d3c3de8abe
commit
6fbff4f06a
@ -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;
|
||||
^
|
||||
|
@ -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;
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![allow(dead_assignment)]
|
||||
#![allow(unused_variable)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
enum Animal {
|
||||
Dog (String, f64),
|
||||
|
@ -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.
|
||||
|
@ -11,7 +11,7 @@
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![allow(dead_assignment)]
|
||||
#![allow(unused_variable)]
|
||||
#![allow(unused_variables)]
|
||||
#![allow(unknown_features)]
|
||||
#![feature(box_syntax)]
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
use issue12660aux::{my_fn, MyStruct};
|
||||
|
||||
#[allow(path_statement)]
|
||||
#[allow(path_statements)]
|
||||
fn main() {
|
||||
my_fn(MyStruct);
|
||||
MyStruct;
|
||||
|
@ -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() }
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![allow(path_statement)]
|
||||
#![allow(path_statements)]
|
||||
#![allow(unknown_features)]
|
||||
#![feature(box_syntax)]
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
// `e` is a type which requires a destructor.
|
||||
|
||||
|
||||
#![allow(path_statement)]
|
||||
#![allow(path_statements)]
|
||||
|
||||
struct A { n: isize }
|
||||
struct B;
|
||||
|
@ -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) { }
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#![allow(dead_assignment)]
|
||||
#![allow(unreachable_code)]
|
||||
#![allow(unused_variable)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
fn test(_cond: bool) {
|
||||
let v: isize;
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![allow(unused_variable)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
pub fn main() {
|
||||
let mut i: isize = 0;
|
||||
|
@ -11,7 +11,7 @@
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![allow(dead_assignment)]
|
||||
#![allow(unused_variable)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
enum thing { a, b, c, }
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![allow(dead_assignment)]
|
||||
#![allow(unused_variable)]
|
||||
#![allow(unused_variables)]
|
||||
#![allow(unknown_features)]
|
||||
#![feature(box_syntax)]
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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; }
|
||||
|
@ -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;
|
||||
|
@ -9,7 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
|
||||
#![allow(unused_variable)]
|
||||
#![allow(unused_variables)]
|
||||
#![allow(unknown_features)]
|
||||
#![feature(box_syntax)]
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![allow(unused_variable)]
|
||||
#![allow(unused_variables)]
|
||||
#![allow(dead_assignment)]
|
||||
|
||||
fn f(u: ()) { return u; }
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
#![allow(unreachable_code)]
|
||||
#![allow(unused_variable)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
fn id(x: bool) -> bool { x }
|
||||
|
||||
|
@ -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 }
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![allow(path_statement)]
|
||||
#![allow(path_statements)]
|
||||
#![allow(unknown_features)]
|
||||
#![feature(box_syntax)]
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user