This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit d3c44b1
committed
Auto merge of rust-lang#121150 - Swatinem:debug-ascii-str, r=<try>
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#121138.
The other PR is adding the fast path deep within `EscapeDebug`, whereas this skips as early as possible.1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2340 | 2340 | | |
2341 | 2341 | | |
2342 | 2342 | | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
2343 | 2348 | | |
2344 | 2349 | | |
2345 | 2350 | | |
| |||
0 commit comments