Function rustc_const_eval::const_eval::error::lint

source ·
pub(super) fn lint<'tcx, 'mir, L>(
    tcx: TyCtxtAt<'tcx>,
    machine: &CompileTimeInterpreter<'mir, 'tcx>,
    lint: &'static Lint,
    decorator: impl FnOnce(Vec<FrameNote>) -> L
)
where L: for<'a> LintDiagnostic<'a, ()>,
Expand description

Emit a lint from a const-eval situation.