about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorKonrad Borowski <konrad@borowski.pw>2022-08-09 07:12:15 +0000
committerKonrad Borowski <konrad@borowski.pw>2022-10-06 16:05:38 +0000
commitcef81dcd0a9503ff8a8f915c43688a78c1c11d83 (patch)
tree44cc2a7f596826fb188e4d3eb025f95d6dc2b26c /compiler/rustc_codegen_llvm/src
parent0d8a0c56fee71dac218eb949817669ab8bb00c5e (diff)
downloadrust-cef81dcd0a9503ff8a8f915c43688a78c1c11d83.tar.gz
rust-cef81dcd0a9503ff8a8f915c43688a78c1c11d83.zip
Fix handling of trailing bare CR in str::lines
Previously "bare\r" was split into ["bare"] even though the
documentation said that only LF and CRLF count as newlines.

This fix is a behavioural change, even though it brings the behaviour
into line with the documentation, and into line with that of
`std::io::BufRead::lines()`.

This is an alternative to #91051, which proposes to document rather
than fix the behaviour.

Fixes #94435.

Co-authored-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions