Skip to content

Commit

Permalink
Rollup merge of #90626 - rusticstuff:be-more-accepting, r=jyn514
Browse files Browse the repository at this point in the history
Properly register text_direction_codepoint_in_comment lint.

This makes it known to the compiler so it can be configured like with `#![allow(text_direction_codepoint_in_comment)]`.

Fixes #90614.
  • Loading branch information
matthiaskrgr authored Nov 5, 2021
2 parents 9032b9d + 9db9811 commit f5f6f73
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 f5f6f73

Please sign in to comment.