mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-07 20:43:03 +00:00
Rollup merge of #90626 - rusticstuff:be-more-accepting, r=jyn514
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.
This commit is contained in:
commit
f5f6f73faf
@ -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,
|
||||
]
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user