ascii::Char-ify the escaping code

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.
This commit is contained in:
Scott McMurray
2023-05-12 19:37:02 -07:00
parent 4a59ba4d54
commit 28449daa22
5 changed files with 65 additions and 50 deletions

View File

@@ -215,6 +215,7 @@
#![feature(intra_doc_pointers)]
#![feature(intrinsics)]
#![feature(lang_items)]
#![feature(let_chains)]
#![feature(link_llvm_intrinsics)]
#![feature(macro_metavar_expr)]
#![feature(min_specialization)]