diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-05-17 15:45:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-17 15:45:19 +0200 |
| commit | eb01ba0b574f9e27410fdcd7d8e12ca96b0d8974 (patch) | |
| tree | 4ec8866dd02ccb0ca8eccb635d57f78ac1745d20 /compiler/rustc_codegen_llvm/src | |
| parent | 836db3ccae0b7cfb21a1da01c3f4bb6dea81daae (diff) | |
| parent | 101e24a223f818e17d2c68298d48d4e6008c02aa (diff) | |
| download | rust-eb01ba0b574f9e27410fdcd7d8e12ca96b0d8974.tar.gz rust-eb01ba0b574f9e27410fdcd7d8e12ca96b0d8974.zip | |
Rollup merge of #137432 - djscythe:char_u8_str_as_ascii_unchecked, r=scottmcm
Add as_ascii_unchecked() methods to char, u8, and str This PR adds the `as_ascii_unchecked()` method to `char`, `u8`, and `str`, allowing users to convert these types to `ascii::Char`s (see #110998) in an `unsafe` context without first checking for validity. This method was already available for `[u8]`, so this PR makes the API more consistent across other types.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
