about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-20 04:43:17 +0000
committerbors <bors@rust-lang.org>2023-05-20 04:43:17 +0000
commite86fd62b6b198584a47798eb271d4b54c4dc96ec (patch)
tree72cfb864600ac1437dd46be482005b597cf56270 /compiler/rustc_codegen_llvm/src/errors.rs
parent7047d97e012d5ed90cf2837c361150bc149837b4 (diff)
parent28449daa2241410d4c384c5608b87fe7c85ffae6 (diff)
downloadrust-e86fd62b6b198584a47798eb271d4b54c4dc96ec.tar.gz
rust-e86fd62b6b198584a47798eb271d4b54c4dc96ec.zip
Auto merge of #111524 - scottmcm:escape-using-ascii, r=cuviper
`ascii::Char`-ify the escaping code in `core`

This means that `EscapeIterInner::as_str` no longer needs unsafe code, because the type system ensures the internal buffer is only ASCII, and thus valid UTF-8.

Come to think of it, this also gives it a (non-guaranteed) niche.

cc `@BurntSushi` as potentially interested
`ascii::Char` tracking issue: #110998
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions