Add lint for useless anonymous reexports

This commit is contained in:
Guillaume Gomez 2023-03-10 22:19:48 +01:00
parent 24c0b81c1f
commit 2df7770d5e
4 changed files with 95 additions and 0 deletions

View file

@ -1530,3 +1530,10 @@ pub struct UnusedAllocationDiag;
#[derive(LintDiagnostic)]
#[diag(lint_unused_allocation_mut)]
pub struct UnusedAllocationMutDiag;
#[derive(LintDiagnostic)]
#[diag(lint_useless_anonymous_reexport)]
pub struct UselessAnonymousReexportDiag {
pub article: &'static str,
pub desc: &'static str,
}