[−][src]Function rustc_parse_format::find_skips_from_snippet

pub(crate) fn find_skips_from_snippet(
    snippet: Option<String>,
    str_style: Option<usize>
) -> (Vec<usize>, bool)

Finds the indices of all characters that have been processed and differ between the actual written code (code snippet) and the InternedString that gets processed in the Parser in order to properly synthethise the intra-string Spans for error diagnostics.