rust/library/core
Matthias Krüger c1ccdb7d0c
Rollup merge of #130659 - bjoernager:const-char-encode-utf16, r=dtolnay
Support `char::encode_utf16` in const scenarios.

Relevant tracking issue: #130660

The method `char::encode_utf16` should be marked "const" to allow compile-time conversions.

This PR additionally rewrites the `encode_utf16_raw` function for better readability whilst also reducing the amount of unsafe code.

try-job: x86_64-msvc
2024-09-23 06:45:33 +02:00
..
benches Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
src Rollup merge of #130659 - bjoernager:const-char-encode-utf16, r=dtolnay 2024-09-23 06:45:33 +02:00
tests Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
Cargo.toml Port std library to RTEMS 2024-09-03 09:19:29 +02:00