Re-exportsยง
use rustc_ast::util::classify;๐use rustc_ast::util::parser;๐use rustc_ast as ast;๐use rustc_ast::ExprKind;๐use rustc_ast::FnRetTy;๐use rustc_ast::ForLoop;๐use rustc_ast::HasAttrs as _;๐use rustc_ast::StmtKind;๐use rustc_data_structures::fx::FxHashMap;๐use rustc_errors::MultiSpan;๐use rustc_hir as hir;๐use rustc_lint_defs::declare_lint;๐use rustc_lint_defs::declare_lint_pass;๐use rustc_lint_defs::impl_lint_pass;๐use rustc_middle::ty;๐use rustc_middle::ty::adjustment;๐use rustc_span::edition::Edition::Edition2015;๐use rustc_span::BytePos;๐use rustc_span::Span;๐use rustc_span::kw;๐use rustc_span::sym;๐use crate::diagnostics::PathStatementDrop;๐use crate::diagnostics::PathStatementDropSub;๐use crate::diagnostics::PathStatementNoEffect;๐use crate::diagnostics::UnusedAllocationDiag;๐use crate::diagnostics::UnusedAllocationMutDiag;๐use crate::diagnostics::UnusedDelim;๐use crate::diagnostics::UnusedDelimSuggestion;๐use crate::diagnostics::UnusedImportBracesDiag;๐use crate::EarlyContext;๐use crate::EarlyLintPass;๐use crate::LateContext;๐use crate::LateLintPass;๐use crate::Lint;๐use crate::LintContext;๐
Modulesยง
Structsยง
Enumsยง
- NoBounds
Exception ๐ - Whether parentheses may be omitted from a type without resulting in ambiguity.
- Unused
Delims ๐Ctx
Staticsยง
- PATH_
STATEMENTS - The
path_statementslint detects path statements with no effect. - UNUSED_
ALLOCATION ๐ - The
unused_allocationlint detects unnecessary allocations that can be eliminated. - UNUSED_
BRACES ๐ - The
unused_braceslint detects unnecessary braces around an expression. - UNUSED_
IMPORT_ ๐BRACES - The
unused_import_braceslint catches unnecessary braces around an imported item. - UNUSED_
PARENS ๐ - The
unused_parenslint detectsif,match,whileandreturnwith parentheses; they do not need them.
Traitsยง
- Unused
Delim ๐Lint - Used by both
UnusedParensandUnusedBracesto prevent code duplication.