Set the non_uppercase_statics lint to warn by default

This commit is contained in:
P1start 2014-09-13 13:55:37 +12:00
parent aa034cd3ba
commit 94bcd3539c
37 changed files with 233 additions and 171 deletions

View file

@ -17,6 +17,7 @@ extern crate regex;
#[deny(unused_variable)]
#[deny(dead_code)]
#[allow(non_uppercase_statics)]
// Tests to make sure that extraneous dead code warnings aren't emitted from
// the code generated by regex!.

View file

@ -12,7 +12,7 @@
#![feature(asm)]
#![allow(dead_code)]
#![allow(dead_code, non_uppercase_statics)]
#[cfg(any(target_arch = "x86",
target_arch = "x86_64"))]

View file

@ -30,4 +30,4 @@ fn main() {
// At least one error is needed so that compilation fails
#[static_assert]
static b: bool = false; //~ ERROR static assertion failed
static B: bool = false; //~ ERROR static assertion failed

View file

@ -11,6 +11,7 @@
#![no_std]
#![allow(unused_variable)]
#![allow(non_camel_case_types)]
#![allow(non_uppercase_statics)]
#![deny(dead_code)]
#![feature(lang_items)]

View file

@ -9,6 +9,7 @@
// except according to those terms.
#![deny(unused_imports)]
#![allow(non_uppercase_statics)]
// The aim of this test is to ensure that deny/allow/warn directives
// are applied to individual "use" statements instead of silently