Skip to main content

Module lint

Module lint 

Source

Re-exportsยง

use std::cmp::min; ๐Ÿ”’
use rustc_data_structures::fx::FxIndexMap; ๐Ÿ”’
use rustc_data_structures::sorted_map::SortedMap; ๐Ÿ”’
use rustc_errors::Diag; ๐Ÿ”’
use rustc_errors::Diagnostic; ๐Ÿ”’
use rustc_errors::EmissionOverride; ๐Ÿ”’
use rustc_errors::MultiSpan; ๐Ÿ”’
use rustc_hir::HirId; ๐Ÿ”’
use rustc_hir::ItemLocalId; ๐Ÿ”’
use rustc_lint_defs::EditionFcw; ๐Ÿ”’
use rustc_lint_defs::FutureIncompatibilityReason; ๐Ÿ”’
use rustc_lint_defs::Level; ๐Ÿ”’
use rustc_lint_defs::Lint; ๐Ÿ”’
use rustc_lint_defs::LintExpectationId; ๐Ÿ”’
use rustc_lint_defs::LintId; ๐Ÿ”’
use rustc_lint_defs::StableLintExpectationId; ๐Ÿ”’
use rustc_lint_defs::UnstableLintExpectationId; ๐Ÿ”’
use rustc_lint_defs::builtin; ๐Ÿ”’
use rustc_macros::Decodable; ๐Ÿ”’
use rustc_macros::Encodable; ๐Ÿ”’
use rustc_macros::StableHash; ๐Ÿ”’
use rustc_session::Session; ๐Ÿ”’
use rustc_span::DUMMY_SP; ๐Ÿ”’
use rustc_span::ExpnKind; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use rustc_span::kw; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use crate::ty::TyCtxt; ๐Ÿ”’

Structsยง

LevelSpec
Convenience helper for things that are frequently used together.
LintExpectation
This struct represents a lint expectation and holds all required information to emit the unfulfilled_lint_expectations lint if it is unfulfilled after the LateLintPass has completed.
ShallowLintLevelMap
Return type for the shallow_lint_levels_on query.

Enumsยง

LintLevelSource
How a lint level was set.

Functionsยง

emit_lint_base
The innermost function for emitting lints implementing the Diagnostic trait.
explain_lint_level_source ๐Ÿ”’
reveal_actual_level_spec
Verify the effect of special annotations: warnings lint level and lint caps.

Type Aliasesยง

StableLevelSpec
UnstableLevelSpec