rust/library/alloc
Konrad Borowski cef81dcd0a 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>
2022-10-06 16:05:38 +00:00
..
benches Optimized vec::IntoIter::next_chunk impl 2022-07-26 20:31:43 +02:00
src Rollup merge of #101642 - SkiFire13:fix-inplace-collection-leak, r=the8472 2022-10-04 16:11:01 +05:30
tests Fix handling of trailing bare CR in str::lines 2022-10-06 16:05:38 +00:00
Cargo.toml Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00