about summary refs log tree commit diff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
authorP1start <rewi-github@whanau.org>2014-09-13 13:55:37 +1200
committerP1start <rewi-github@whanau.org>2014-10-03 20:39:56 +1300
commit94bcd3539c761b4ecf423800bce21057c4e961fa (patch)
tree51c0030bfc0a527ce57da49f0987f726ea0ed912 /src/test/compile-fail
parentaa034cd3bac3155e0f6c74c399314b5ee32f88fc (diff)
downloadrust-94bcd3539c761b4ecf423800bce21057c4e961fa.tar.gz
rust-94bcd3539c761b4ecf423800bce21057c4e961fa.zip
Set the `non_uppercase_statics` lint to warn by default
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/asm-misplaced-option.rs2
-rw-r--r--src/test/compile-fail/issue-6804.rs2
-rw-r--r--src/test/compile-fail/lint-dead-code-1.rs1
-rw-r--r--src/test/compile-fail/lint-directives-on-use-items-issue-10534.rs1
4 files changed, 4 insertions, 2 deletions
diff --git a/src/test/compile-fail/asm-misplaced-option.rs b/src/test/compile-fail/asm-misplaced-option.rs
index 8006789d440..74bfc6e6ffc 100644
--- a/src/test/compile-fail/asm-misplaced-option.rs
+++ b/src/test/compile-fail/asm-misplaced-option.rs
@@ -12,7 +12,7 @@
 
 #![feature(asm)]
 
-#![allow(dead_code)]
+#![allow(dead_code, non_uppercase_statics)]
 
 #[cfg(any(target_arch = "x86",
           target_arch = "x86_64"))]
diff --git a/src/test/compile-fail/issue-6804.rs b/src/test/compile-fail/issue-6804.rs
index 600b28048b4..30d3ab17a46 100644
--- a/src/test/compile-fail/issue-6804.rs
+++ b/src/test/compile-fail/issue-6804.rs
@@ -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
diff --git a/src/test/compile-fail/lint-dead-code-1.rs b/src/test/compile-fail/lint-dead-code-1.rs
index b7feea775cb..45380235a2a 100644
--- a/src/test/compile-fail/lint-dead-code-1.rs
+++ b/src/test/compile-fail/lint-dead-code-1.rs
@@ -11,6 +11,7 @@
 #![no_std]
 #![allow(unused_variable)]
 #![allow(non_camel_case_types)]
+#![allow(non_uppercase_statics)]
 #![deny(dead_code)]
 #![feature(lang_items)]
 
diff --git a/src/test/compile-fail/lint-directives-on-use-items-issue-10534.rs b/src/test/compile-fail/lint-directives-on-use-items-issue-10534.rs
index e920bfd412d..bbd88f1f0aa 100644
--- a/src/test/compile-fail/lint-directives-on-use-items-issue-10534.rs
+++ b/src/test/compile-fail/lint-directives-on-use-items-issue-10534.rs
@@ -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