rust/library/alloc/tests
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
..
arc.rs PinCoerceUnsized trait into core 2024-07-31 17:10:55 +08:00
autotraits.rs
borrow.rs
boxed.rs Removes dead code from the compiler 2024-08-25 13:41:39 +08:00
btree_set_hash.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
c_str.rs
const_fns.rs
cow_str.rs
fmt.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
heap.rs
lib.rs Avoid re-validating UTF-8 in FromUtf8Error::into_utf8_lossy 2024-09-20 20:56:07 -04:00
linked_list.rs
rc.rs PinCoerceUnsized trait into core 2024-07-31 17:10:55 +08:00
slice.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
str.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
string.rs Avoid re-validating UTF-8 in FromUtf8Error::into_utf8_lossy 2024-09-20 20:56:07 -04:00
task.rs ignore some vtable/fn ptr equality tests in Miri, their result is not fully predictable 2024-08-12 10:39:11 +02:00
thin_box.rs
vec_deque_alloc_error.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
vec_deque.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
vec.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00