1
Fork 0

Properly register text_direction_codepoint_in_comment lint.

This commit is contained in:
Hans Kratz 2021-11-05 19:59:06 +01:00
parent 473eaa42e9
commit 9db9811ddf
2 changed files with 10 additions and 0 deletions

View file

@ -3054,6 +3054,7 @@ declare_lint_pass! {
BREAK_WITH_LABEL_AND_LOOP, BREAK_WITH_LABEL_AND_LOOP,
UNUSED_ATTRIBUTES, UNUSED_ATTRIBUTES,
NON_EXHAUSTIVE_OMITTED_PATTERNS, NON_EXHAUSTIVE_OMITTED_PATTERNS,
TEXT_DIRECTION_CODEPOINT_IN_COMMENT,
DEREF_INTO_DYN_SUPERTRAIT, DEREF_INTO_DYN_SUPERTRAIT,
] ]
} }

View file

@ -0,0 +1,9 @@
// check-pass
// Allowing the code lint should work without warning and
// the text flow char in the comment should be ignored.
#![allow(text_direction_codepoint_in_comment)]
fn main() {
// U+2066 LEFT-TO-RIGHT ISOLATE follows:
}