Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 9db9811

Browse files
committedNov 5, 2021
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
 

‎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
This file contains bidirectional or hidden 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
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)
This repository has been archived.