mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
16b22a7e0f
Make `convert_while_ascii` unsafe `convert_while_ascii` assumes `convert` only returns ASCII to ensure the output remains valid UTF-8. This adds that requirement as a safety precondition.