about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOliver Schneider <github35764891676564198441@oli-obk.de>2018-07-23 00:19:07 +0200
committerOliver Schneider <github35764891676564198441@oli-obk.de>2018-07-23 00:19:07 +0200
commitff0e5f967fde38242a1f2bf852082d2e105fc29c (patch)
treeb5dd6a3b79c52995af4ecf3e08b03e5791b2f36b /src
parent8085ed733fefeaf37aca0a39da93344326de5d57 (diff)
downloadrust-ff0e5f967fde38242a1f2bf852082d2e105fc29c.tar.gz
rust-ff0e5f967fde38242a1f2bf852082d2e105fc29c.zip
Rewrite the print/write macro checks as a PreExpansionPass
Diffstat (limited to 'src')
-rw-r--r--src/driver.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/driver.rs b/src/driver.rs
index 585edcd82a6..e9e81bb88e3 100644
--- a/src/driver.rs
+++ b/src/driver.rs
@@ -118,6 +118,7 @@ pub fn main() {
             for (name, to) in lint_groups {
                 ls.register_group(Some(sess), true, name, to);
             }
+            clippy_lints::register_pre_expansion_lints(sess, &mut ls);
 
             sess.plugin_llvm_passes.borrow_mut().extend(llvm_passes);
             sess.plugin_attributes.borrow_mut().extend(attributes);