about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2014-06-18 12:35:48 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2014-06-24 11:36:28 -0700
commite67e6e678de8d449e8a6d00b2e3ab476848959fd (patch)
tree2d7383cc4e1e8fbe72b104b67e418761ab7421cc
parentc747626cedaaf91d357ffd48d1459b507afb0538 (diff)
downloadrust-e67e6e678de8d449e8a6d00b2e3ab476848959fd.tar.gz
rust-e67e6e678de8d449e8a6d00b2e3ab476848959fd.zip
List builtin lints one per line for better diffs
-rw-r--r--src/librustc/lint/builtin.rs17
-rw-r--r--src/librustc/lint/context.rs33
2 files changed, 37 insertions, 13 deletions
diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs
index 604edf280f1..f41a212df21 100644
--- a/src/librustc/lint/builtin.rs
+++ b/src/librustc/lint/builtin.rs
@@ -1531,9 +1531,18 @@ pub struct HardwiredLints;
 impl LintPass for HardwiredLints {
     fn get_lints(&self) -> LintArray {
         lint_array!(
-            UNUSED_IMPORTS, UNNECESSARY_QUALIFICATION, UNRECOGNIZED_LINT,
-            UNUSED_VARIABLE, DEAD_ASSIGNMENT, DEAD_CODE, VISIBLE_PRIVATE_TYPES,
-            UNREACHABLE_CODE, WARNINGS, UNKNOWN_FEATURES, UNKNOWN_CRATE_TYPE,
-            VARIANT_SIZE_DIFFERENCE)
+            UNUSED_IMPORTS,
+            UNNECESSARY_QUALIFICATION,
+            UNRECOGNIZED_LINT,
+            UNUSED_VARIABLE,
+            DEAD_ASSIGNMENT,
+            DEAD_CODE,
+            VISIBLE_PRIVATE_TYPES,
+            UNREACHABLE_CODE,
+            WARNINGS,
+            UNKNOWN_FEATURES,
+            UNKNOWN_CRATE_TYPE,
+            VARIANT_SIZE_DIFFERENCE
+        )
     }
 }
diff --git a/src/librustc/lint/context.rs b/src/librustc/lint/context.rs
index 628171bf168..4c01792bf9c 100644
--- a/src/librustc/lint/context.rs
+++ b/src/librustc/lint/context.rs
@@ -136,18 +136,33 @@ impl LintStore {
             )*}
         ))
 
-        add_builtin!(sess, HardwiredLints,
-                     WhileTrue, UnusedCasts, CTypes, HeapMemory,
-                     UnusedAttribute, PathStatement, UnusedResult,
-                     DeprecatedOwnedVector, NonCamelCaseTypes,
-                     NonSnakeCaseFunctions, NonUppercaseStatics,
-                     NonUppercasePatternStatics, UppercaseVariables,
-                     UnnecessaryParens, UnusedUnsafe, UnsafeBlock,
-                     UnusedMut, UnnecessaryAllocation, Stability,
+        add_builtin!(sess,
+                     HardwiredLints,
+                     WhileTrue,
+                     UnusedCasts,
+                     CTypes,
+                     HeapMemory,
+                     UnusedAttribute,
+                     PathStatement,
+                     UnusedResult,
+                     DeprecatedOwnedVector,
+                     NonCamelCaseTypes,
+                     NonSnakeCaseFunctions,
+                     NonUppercaseStatics,
+                     NonUppercasePatternStatics,
+                     UppercaseVariables,
+                     UnnecessaryParens,
+                     UnusedUnsafe,
+                     UnsafeBlock,
+                     UnusedMut,
+                     UnnecessaryAllocation,
+                     Stability,
         )
 
         add_builtin_with_new!(sess,
-                              TypeLimits, RawPointerDeriving, MissingDoc,
+                              TypeLimits,
+                              RawPointerDeriving,
+                              MissingDoc,
         )
 
         // We have one lint pass defined in this module.