-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unescaping cleanups #118734
Merged
Merged
Unescaping cleanups #118734
Commits on Dec 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 856b55f - Browse repository at this point
Copy the full SHA 856b55fView commit details -
Identify impossible cases in
ascii_escapes_should_be_ascii
.Raw strings (of all kinds) don't support escapes, so this function should never be called on them.
Configuration menu - View commit details
-
Copy full SHA for e290582 - Browse repository at this point
Copy the full SHA e290582View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6bbb37 - Browse repository at this point
Copy the full SHA c6bbb37View commit details
Commits on Dec 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 08b8ba0 - Browse repository at this point
Copy the full SHA 08b8ba0View commit details -
Remove explicit
\n
and\t
handling inunescape_str_common
.The fallback `_` case works for these chars, no need to treat them specially.
Configuration menu - View commit details
-
Copy full SHA for f883762 - Browse repository at this point
Copy the full SHA f883762View commit details -
Eliminate
is_byte: bool
args in unescaping code.These don't really make sense since C string literals were added. This commit removes them in favour for `mode: Mode` args. `ascii_check` still has a `characters_should_be_ascii: bool` arg. Also, `characters_should_be_ascii` is renamed to be shorter.
Configuration menu - View commit details
-
Copy full SHA for 119b1d0 - Browse repository at this point
Copy the full SHA 119b1d0View commit details -
The `empty!` macro calls should be outside the `cfg(FALSE)` function.
Configuration menu - View commit details
-
Copy full SHA for 9741dba - Browse repository at this point
Copy the full SHA 9741dbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for adc46e5 - Browse repository at this point
Copy the full SHA adc46e5View commit details -
- Add `use Mode::*` to avoid all the qualifiers. - Reorder the variants. The existing order makes no particular sense, which has bugged me for some time. I've chosen an order that makes sense to me.
Configuration menu - View commit details
-
Copy full SHA for 0a401b6 - Browse repository at this point
Copy the full SHA 0a401b6View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.