rust/library/alloc
Michael Goulet 493852ccd6
Rollup merge of #130408 - okaneco:into_lossy_refactor, r=Noratrieb
Avoid re-validating UTF-8 in `FromUtf8Error::into_utf8_lossy`

Part of the unstable feature `string_from_utf8_lossy_owned` - #129436

Refactor `FromUtf8Error::into_utf8_lossy` to copy valid UTF-8 bytes into the buffer, avoiding double validation of bytes.
Add tests that mirror the `String::from_utf8_lossy` tests.
2024-09-21 15:18:56 -04:00
..
benches Ban non-array SIMD 2024-09-09 19:39:43 -07:00
src Rollup merge of #130408 - okaneco:into_lossy_refactor, r=Noratrieb 2024-09-21 15:18:56 -04:00
tests Rollup merge of #130408 - okaneco:into_lossy_refactor, r=Noratrieb 2024-09-21 15:18:56 -04:00
Cargo.toml Update compiler-builtins to 0.1.125 2024-09-05 09:31:17 -07:00