rustc_parse::lexer::unescape_error_reporting

Function emit_unescape_error

Source
pub(crate) fn emit_unescape_error(
    dcx: DiagCtxtHandle<'_>,
    lit: &str,
    full_lit_span: Span,
    err_span: Span,
    mode: Mode,
    range: Range<usize>,
    error: EscapeError,
) -> Option<ErrorGuaranteed>