Function rustc_span::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.