Function rustc_session::parse::feature_err_issue
source · pub fn feature_err_issue(
sess: &ParseSess,
feature: Symbol,
span: impl Into<MultiSpan>,
issue: GateIssue,
explain: impl Into<DiagnosticMessage>
) -> DiagnosticBuilder<'_, ErrorGuaranteed>
Expand description
Construct a diagnostic for a feature gate error.
This variant allows you to control whether it is a library or language feature.
Almost always, you want to use this for a language feature. If so, prefer feature_err
.