# Function rustc_middle::lint::reveal_actual_level

source ·

    pub fn reveal_actual_level(
        level: Option<Level>,
        src: &mut LintLevelSource,
        sess: &Session,
        lint: LintId,
        probe_for_lint_level: impl FnOnce(LintId) -> (Option<Level>, LintLevelSource)
    ) -> Level

Expand description

From an initial level and source, verify the effect of special annotations: `warnings` lint level and lint caps.

The return of this function is suitable for diagnostics.