1
Fork 0

Add `on_unimplemented" typo suggestions

This commit is contained in:
mejrs 2024-05-15 00:49:33 +02:00
parent ac385a5af6
commit 18d7411719
5 changed files with 85 additions and 5 deletions

View file

@ -347,5 +347,13 @@ pub(super) fn builtin(sess: &Session, diagnostic: BuiltinLintDiag, diag: &mut Di
"reduce the glob import's visibility or increase visibility of imported items",
);
}
BuiltinLintDiag::MaybeTypo { span, name } => {
diag.span_suggestion_verbose(
span,
"an attribute with a similar name exists",
name,
Applicability::MachineApplicable,
);
}
}
}