mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
red_knot_python_semantic: remove last vestige of old diagnostics!
This commit is contained in:
parent
17f799424a
commit
810478f68b
1 changed files with 0 additions and 16 deletions
|
@ -81,22 +81,6 @@ impl<'db> InferContext<'db> {
|
|||
self.diagnostics.get_mut().extend(other);
|
||||
}
|
||||
|
||||
/// Reports a lint located at `ranged`.
|
||||
pub(super) fn report_lint_old<T>(
|
||||
&self,
|
||||
lint: &'static LintMetadata,
|
||||
ranged: T,
|
||||
message: fmt::Arguments,
|
||||
) where
|
||||
T: Ranged,
|
||||
{
|
||||
let Some(builder) = self.report_lint(lint, ranged) else {
|
||||
return;
|
||||
};
|
||||
let mut diag = builder.into_diagnostic("");
|
||||
diag.set_primary_message(message);
|
||||
}
|
||||
|
||||
/// Optionally return a builder for a lint diagnostic guard.
|
||||
///
|
||||
/// If the current context believes a diagnostic should be reported for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue