reveal_actual_level_spec in rustc_middle::lint - Rust
Description: Verify the effect of special annotations: `warnings` lint level and lint caps.

Skip to main content

## reveal_actual_level_spec

# Function reveal_actual_level_spec

Source

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

Expand description

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

The return of this function is suitable for diagnostics.