rustc_session::parse

Function add_feature_diagnostics

Source
pub fn add_feature_diagnostics<G: EmissionGuarantee>(
    err: &mut Diag<'_, G>,
    sess: &Session,
    feature: Symbol,
)
Expand description

Adds the diagnostics for a feature to an existing error. Must be a language feature!