about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-05-17 15:45:19 +0200
committerGitHub <noreply@github.com>2025-05-17 15:45:19 +0200
commiteb01ba0b574f9e27410fdcd7d8e12ca96b0d8974 (patch)
tree4ec8866dd02ccb0ca8eccb635d57f78ac1745d20 /compiler/rustc_codegen_llvm/src
parent836db3ccae0b7cfb21a1da01c3f4bb6dea81daae (diff)
parent101e24a223f818e17d2c68298d48d4e6008c02aa (diff)
downloadrust-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