Skip to main content

reveal_actual_level_spec

Function reveal_actual_level_spec 

Source
pub fn reveal_actual_level_spec(
    sess: &Session,
    lint: LintId,
    probe_for_lint_level_spec: impl Fn(LintId) -> Option<LevelSpec>,
) -> LevelSpec
Expand description

Verify the effect of special annotations: warnings lint level and lint caps.

The return of this function is suitable for diagnostics.