From 6028a71b6264132949d79319c241c382647d63fa Mon Sep 17 00:00:00 2001 From: Ragnar Date: Wed, 5 Nov 2025 18:42:02 +0100 Subject: [PATCH] Update early.rs --- crates/lint/src/linter/early.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/lint/src/linter/early.rs b/crates/lint/src/linter/early.rs index dae64bb409657..dfdbd5a823ad3 100644 --- a/crates/lint/src/linter/early.rs +++ b/crates/lint/src/linter/early.rs @@ -50,7 +50,7 @@ pub trait EarlyLintPass<'ast>: Send + Sync { /// /// ### Example /// ```rust,ignore - /// fn check_full_source_unit(&mut self, ctx: &LintContext<'ast>, ast: &'ast ast::SourceUnit<'ast>) { + /// fn check_full_source_unit(&mut self, ctx: &LintContext<'ast, '_>, ast: &'ast ast::SourceUnit<'ast>) { /// // Check if the lint is enabled before performing expensive work. /// if ctx.is_lint_enabled(MY_EXPENSIVE_LINT.id) { /// // ... perform computation and emit diagnostics ...