about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-15 19:43:58 +0000
committerbors <bors@rust-lang.org>2021-04-15 19:43:58 +0000
commit52c8c9c520359f197b15aa6b69e7a779c9be8eb5 (patch)
tree5087a9a950edb626892f9120afe4e1dfda16ed79
parentb1c675f3fc682201cdb28719133285b878e2d157 (diff)
parent014bf4390c3dcce701749d09ea253126181bc37a (diff)
downloadrust-52c8c9c520359f197b15aa6b69e7a779c9be8eb5.tar.gz
rust-52c8c9c520359f197b15aa6b69e7a779c9be8eb5.zip
Auto merge of #7090 - camsteffen:pre-expansion-note, r=Manishearth
Add a note for pre-expansion passes

changelog: none

Just had to turn away a PR for using pre-expansion. I don't think that was the first time. So hopefully this will inform people sooner.

r? flip1995
-rw-r--r--clippy_lints/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs
index 78a95b00403..93631c5669b 100644
--- a/clippy_lints/src/lib.rs
+++ b/clippy_lints/src/lib.rs
@@ -390,6 +390,7 @@ pub use crate::utils::conf::Conf;
 ///
 /// Used in `./src/driver.rs`.
 pub fn register_pre_expansion_lints(store: &mut rustc_lint::LintStore) {
+    // NOTE: Do not add any more pre-expansion passes. These should be removed eventually.
     store.register_pre_expansion_pass(|| box write::Write::default());
     store.register_pre_expansion_pass(|| box attrs::EarlyAttributes);
     store.register_pre_expansion_pass(|| box dbg_macro::DbgMacro);