Commit 1f6d023
committed
Prefer encoding the char when checking for string prefix/suffix
This enables constant folding when matching a literal char.
Fixes rust-lang#41993.1 parent cc863f0 commit 1f6d023
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
| 453 | + | |
| 454 | + | |
458 | 455 | | |
459 | 456 | | |
460 | 457 | | |
461 | 458 | | |
462 | 459 | | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
| 460 | + | |
| 461 | + | |
468 | 462 | | |
469 | 463 | | |
470 | 464 | | |
| |||
0 commit comments