Skip to main content

Module unused

Module unused 

Source

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ยง

must_use

Structsยง

PathStatements
UnusedAllocation
UnusedBraces
UnusedImportBraces
UnusedParens ๐Ÿ”’

Enumsยง

NoBoundsException ๐Ÿ”’
Whether parentheses may be omitted from a type without resulting in ambiguity.
UnusedDelimsCtx ๐Ÿ”’

Staticsยง

PATH_STATEMENTS
The path_statements lint detects path statements with no effect.
UNUSED_ALLOCATION ๐Ÿ”’
The unused_allocation lint detects unnecessary allocations that can be eliminated.
UNUSED_BRACES ๐Ÿ”’
The unused_braces lint detects unnecessary braces around an expression.
UNUSED_IMPORT_BRACES ๐Ÿ”’
The unused_import_braces lint catches unnecessary braces around an imported item.
UNUSED_PARENS ๐Ÿ”’
The unused_parens lint detects if, match, while and return with parentheses; they do not need them.

Traitsยง

UnusedDelimLint ๐Ÿ”’
Used by both UnusedParens and UnusedBraces to prevent code duplication.