We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5a9bc9 commit 2bf56b9Copy full SHA for 2bf56b9
compiler/rustc_lint/src/context.rs
@@ -166,7 +166,12 @@ impl LintStore {
166
self.early_passes.push(Box::new(pass));
167
}
168
169
- /// Used by clippy.
+ /// 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)
175
pub fn register_pre_expansion_pass(
176
&mut self,
177
pass: impl Fn() -> EarlyLintPassObject + 'static + sync::Send + sync::Sync,
0 commit comments