Skip to content

Commit 9db9811

Browse files
committed
Properly register text_direction_codepoint_in_comment lint.
1 parent 473eaa4 commit 9db9811

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Diff for: compiler/rustc_lint_defs/src/builtin.rs

+1
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
}
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)