Skip to content

Commit

Permalink
Properly register text_direction_codepoint_in_comment lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
hkratz committed Nov 5, 2021
1 parent 473eaa4 commit 9db9811
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_lint_defs/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3054,6 +3054,7 @@ declare_lint_pass! {
BREAK_WITH_LABEL_AND_LOOP,
UNUSED_ATTRIBUTES,
NON_EXHAUSTIVE_OMITTED_PATTERNS,
TEXT_DIRECTION_CODEPOINT_IN_COMMENT,
DEREF_INTO_DYN_SUPERTRAIT,
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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:⁦⁦
}

0 comments on commit 9db9811

Please sign in to comment.