about summary refs log tree commit diff
path: root/src/librustc_lint/lib.rs
diff options
context:
space:
mode:
authorWesley Wiser <wwiser@gmail.com>2015-09-14 22:36:39 -0400
committerWesley Wiser <wwiser@gmail.com>2015-09-19 17:35:18 -0400
commited77fcc8a67cbff506ffaf73781e8d25d382a2f3 (patch)
tree787d45abbc6175f86e3d9351168467e11d3bb1d3 /src/librustc_lint/lib.rs
parent837840c61fce44da78096110ff83c91099a83da7 (diff)
downloadrust-ed77fcc8a67cbff506ffaf73781e8d25d382a2f3.tar.gz
rust-ed77fcc8a67cbff506ffaf73781e8d25d382a2f3.zip
Split out the bad_style lints into a new module
Part of #22206
Diffstat (limited to 'src/librustc_lint/lib.rs')
-rw-r--r--src/librustc_lint/lib.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/librustc_lint/lib.rs b/src/librustc_lint/lib.rs
index 53383164060..a05abbb3fab 100644
--- a/src/librustc_lint/lib.rs
+++ b/src/librustc_lint/lib.rs
@@ -58,8 +58,12 @@ pub use rustc::util as util;
 use session::Session;
 use lint::LintId;
 
+mod bad_style;
 mod builtin;
 
+use bad_style::*;
+use builtin::*;
+
 /// Tell the `LintStore` about all the built-in lints (the ones
 /// defined in this crate and the ones defined in
 /// `rustc::lint::builtin`).
@@ -67,7 +71,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
     macro_rules! add_builtin {
         ($sess:ident, $($name:ident),*,) => (
             {$(
-                store.register_late_pass($sess, false, box builtin::$name);
+                store.register_late_pass($sess, false, box $name);
                 )*}
             )
     }
@@ -75,7 +79,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
     macro_rules! add_early_builtin {
         ($sess:ident, $($name:ident),*,) => (
             {$(
-                store.register_early_pass($sess, false, box builtin::$name);
+                store.register_early_pass($sess, false, box $name);
                 )*}
             )
     }
@@ -83,14 +87,14 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
     macro_rules! add_builtin_with_new {
         ($sess:ident, $($name:ident),*,) => (
             {$(
-                store.register_late_pass($sess, false, box builtin::$name::new());
+                store.register_late_pass($sess, false, box $name::new());
                 )*}
             )
     }
 
     macro_rules! add_lint_group {
         ($sess:ident, $name:expr, $($lint:ident),*) => (
-            store.register_group($sess, false, $name, vec![$(LintId::of(builtin::$lint)),*]);
+            store.register_group($sess, false, $name, vec![$(LintId::of($lint)),*]);
             )
     }