diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2025-05-27 16:03:35 +0000 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2025-05-27 16:16:34 +0000 |
| commit | f6520673fc28815f5beee5fbd48d4363462fb0f6 (patch) | |
| tree | 58fd8db14c80c8b3cdd7e0f409c962cd3abc7534 /compiler/rustc_lint_defs | |
| parent | e5bfd02c5e8c9176be0bf279a8669d56abe66a5f (diff) | |
| download | rust-f6520673fc28815f5beee5fbd48d4363462fb0f6.tar.gz rust-f6520673fc28815f5beee5fbd48d4363462fb0f6.zip | |
Warn on non-crate level text direction lints
Diffstat (limited to 'compiler/rustc_lint_defs')
| -rw-r--r-- | compiler/rustc_lint_defs/src/builtin.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 9c550a12ce1..56b9891ae0d 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -3809,7 +3809,8 @@ declare_lint! { /// their use. pub TEXT_DIRECTION_CODEPOINT_IN_COMMENT, Deny, - "invisible directionality-changing codepoints in comment" + "invisible directionality-changing codepoints in comment", + crate_level_only } declare_lint! { @@ -3844,6 +3845,7 @@ declare_lint! { Deny, "detect special Unicode codepoints that affect the visual representation of text on screen, \ changing the direction in which text flows", + crate_level_only } declare_lint! { |
