about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src/implied_bounds.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-24 12:23:00 +0000
committerbors <bors@rust-lang.org>2024-05-24 12:23:00 +0000
commit213ad10c8f0fc275648552366275dc4e07f97462 (patch)
treef8fd81abfddb7485310347dc95022726627cc10e /compiler/rustc_ty_utils/src/implied_bounds.rs
parent464987730ab36e3456ba57c53965372989382deb (diff)
parent004100c222638c980b6509aba0ed4990181fa5dc (diff)
downloadrust-213ad10c8f0fc275648552366275dc4e07f97462.tar.gz
rust-213ad10c8f0fc275648552366275dc4e07f97462.zip
Auto merge of #121150 - Swatinem:debug-ascii-str, r=joboet
Add a fast-path to `Debug` ASCII `&str`

Instead of going through the `EscapeDebug` machinery, we can just skip over ASCII chars that don’t need any escaping.

---

This is an alternative / a companion to https://github.com/rust-lang/rust/pull/121138.

The other PR is adding the fast path deep within `EscapeDebug`, whereas this skips as early as possible.
Diffstat (limited to 'compiler/rustc_ty_utils/src/implied_bounds.rs')
0 files changed, 0 insertions, 0 deletions