feat(lints): Add deny-by-default text_direction_codepoint lints#16950
Merged
weihanglo merged 3 commits intorust-lang:masterfrom May 1, 2026
Merged
feat(lints): Add deny-by-default text_direction_codepoint lints#16950weihanglo merged 3 commits intorust-lang:masterfrom
weihanglo merged 3 commits intorust-lang:masterfrom
Conversation
Collaborator
|
r? @weihanglo rustbot has assigned @weihanglo. Use Why was this reviewer chosen?The reviewer was selected based on:
|
weihanglo
approved these changes
May 1, 2026
| docs: Some( | ||
| r#" | ||
| ### What it does | ||
| Detects Unicode codepoints in comments that change the visual representation of text on screen |
Member
There was a problem hiding this comment.
It detect manifests only. Should we say it explicitly as we also own Cargo configuration and other files?
I know we didn't do this for other lints though their contexts are more specific.
Contributor
Author
There was a problem hiding this comment.
Updated to mention it.
Collaborator
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
weihanglo
approved these changes
May 1, 2026
rust-bors Bot
pushed a commit
to rust-lang/rust
that referenced
this pull request
May 2, 2026
Update cargo submodule 10 commits in eb9b60f1f6604b5e022c56be31692c215b8ba11d..4f9b52075316e9ced380c8fa492858048d5758b6 2026-04-24 20:52:07 +0000 to 2026-05-01 22:36:41 +0000 - chore(deps): update compatible (rust-lang/cargo#16952) - feat(lints): Add deny-by-default text_direction_codepoint lints (rust-lang/cargo#16950) - chore(deps): update embarkstudios/cargo-deny-action action to v2.0.17 (rust-lang/cargo#16953) - docs(guide): Switch from third-party to first-party unused deps detection (rust-lang/cargo#16946) - Remove curl dependency from crates-io crate (rust-lang/cargo#16936) - chore(deps): update gix to 0.83 (rust-lang/cargo#16945) - fix(compile): Where possible, hint about misplaced deps (rust-lang/cargo#16940) - Remove `windows-sys` from `home` (rust-lang/cargo#16918) - docs(resolver): `--precise <yanked>` is on stable (rust-lang/cargo#16944) - Update `gix` to 0.82 (with security fixes and hardened parsers) (rust-lang/cargo#16941)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What does this PR try to resolve?
These are meant to mirror
Note: on publish we strip comments but the codepoints will still be unescaped in literals. I considered escaping by default in
tomlbut there can be legitimate reasons to use these code points unescaped, hence why there are two lints.Fixes #16374
Fixes #16373
Closes #16452
How to test and review this PR?