Function rustc_parse_format::find_skips_from_snippet
source · pub(crate) fn find_skips_from_snippet(
snippet: Option<String>,
str_style: Option<usize>
) -> (Vec<usize>, bool)
Expand description
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 synthesise the intra-string Span
s for error diagnostics.