Skip to content

Commit e63c3b5

Browse files
hkratzcuviper
authored andcommitted
Properly register text_direction_codepoint_in_comment lint.
(cherry picked from commit 9db9811)
1 parent d9ddee4 commit e63c3b5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3054,6 +3054,7 @@ declare_lint_pass! {
30543054
BREAK_WITH_LABEL_AND_LOOP,
30553055
UNUSED_ATTRIBUTES,
30563056
NON_EXHAUSTIVE_OMITTED_PATTERNS,
3057+
TEXT_DIRECTION_CODEPOINT_IN_COMMENT,
30573058
DEREF_INTO_DYN_SUPERTRAIT,
30583059
]
30593060
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// check-pass
2+
// Allowing the code lint should work without warning and
3+
// the text flow char in the comment should be ignored.
4+
5+
#![allow(text_direction_codepoint_in_comment)]
6+
7+
fn main() {
8+
// U+2066 LEFT-TO-RIGHT ISOLATE follows:⁦⁦
9+
}

0 commit comments

Comments
 (0)