Skip to content

Commit f652067

Browse files
committed
Warn on non-crate level text direction lints
1 parent e5bfd02 commit f652067

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3809,7 +3809,8 @@ declare_lint! {
38093809
/// their use.
38103810
pub TEXT_DIRECTION_CODEPOINT_IN_COMMENT,
38113811
Deny,
3812-
"invisible directionality-changing codepoints in comment"
3812+
"invisible directionality-changing codepoints in comment",
3813+
crate_level_only
38133814
}
38143815

38153816
declare_lint! {
@@ -3844,6 +3845,7 @@ declare_lint! {
38443845
Deny,
38453846
"detect special Unicode codepoints that affect the visual representation of text on screen, \
38463847
changing the direction in which text flows",
3848+
crate_level_only
38473849
}
38483850

38493851
declare_lint! {

tests/crashes/140281.rs

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)