This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit d253c69
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 | |
|---|---|---|---|
| |||
2363 | 2363 | | |
2364 | 2364 | | |
2365 | 2365 | | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
2366 | 2371 | | |
2367 | 2372 | | |
2368 | 2373 | | |
| |||
0 commit comments