Properly register text_direction_codepoint_in_comment lint.
This commit is contained in:
parent
473eaa42e9
commit
9db9811ddf
2 changed files with 10 additions and 0 deletions
|
@ -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,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -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:
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue