rustc_span

Function normalize_newlines

Source
pub(crate) fn normalize_newlines(
    src: &mut String,
    normalized_pos: &mut Vec<NormalizedPos>,
)
Expand description

Replaces \r\n with \n in-place in src.

Leaves any occurrences of lone \r unchanged.