Skip to content

Commit

Permalink
Auto merge of #121150 - Swatinem:debug-ascii-str, r=joboet
Browse files Browse the repository at this point in the history
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 rust-lang/rust#121138.

The other PR is adding the fast path deep within `EscapeDebug`, whereas this skips as early as possible.
  • Loading branch information
bors committed May 24, 2024
2 parents 47190be + b3a4888 commit c83874a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit c83874a

Please sign in to comment.