Skip to content

Commit 2bf56b9

Browse files
committed
Document that pre-expansion lint passes are deprecated
1 parent d5a9bc9 commit 2bf56b9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

compiler/rustc_lint/src/context.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,12 @@ impl LintStore {
166166
self.early_passes.push(Box::new(pass));
167167
}
168168

169-
/// Used by clippy.
169+
/// This lint pass is softly deprecated. It misses expanded code and has caused a few
170+
/// errors in the past. Currently, it is only used in Clippy. New implementations
171+
/// should avoid using this interface, as it might be removed in the future.
172+
///
173+
/// * See [rust#69838](https://github.com/rust-lang/rust/pull/69838)
174+
/// * See [rust-clippy#5518](https://github.com/rust-lang/rust-clippy/pull/5518)
170175
pub fn register_pre_expansion_pass(
171176
&mut self,
172177
pass: impl Fn() -> EarlyLintPassObject + 'static + sync::Send + sync::Sync,

0 commit comments

Comments
 (0)