Skip to content

Commit 18cc4e7

Browse files
committed
Auto merge of rust-lang#7907 - Alexendoo:non-ascii-restriction, r=flip1995
Move non_ascii_literal to restriction It feels like the more apt category, since cases where you'd want it enabled would be pretty specific changelog: Move [`non_ascii_literal`] to `restriction`
2 parents 9720619 + 28c225f commit 18cc4e7

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

clippy_lints/src/lib.register_pedantic.rs

-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ store.register_group(true, "clippy::pedantic", Some("clippy_pedantic"), vec![
8888
LintId::of(transmute::TRANSMUTE_PTR_TO_PTR),
8989
LintId::of(types::LINKEDLIST),
9090
LintId::of(types::OPTION_OPTION),
91-
LintId::of(unicode::NON_ASCII_LITERAL),
9291
LintId::of(unicode::UNICODE_NOT_NFC),
9392
LintId::of(unit_types::LET_UNIT_VALUE),
9493
LintId::of(unnecessary_wraps::UNNECESSARY_WRAPS),

clippy_lints/src/lib.register_restriction.rs

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ store.register_group(true, "clippy::restriction", Some("clippy_restriction"), ve
6161
LintId::of(types::RC_BUFFER),
6262
LintId::of(types::RC_MUTEX),
6363
LintId::of(undocumented_unsafe_blocks::UNDOCUMENTED_UNSAFE_BLOCKS),
64+
LintId::of(unicode::NON_ASCII_LITERAL),
6465
LintId::of(unnecessary_self_imports::UNNECESSARY_SELF_IMPORTS),
6566
LintId::of(unwrap_in_result::UNWRAP_IN_RESULT),
6667
LintId::of(verbose_file_reads::VERBOSE_FILE_READS),

clippy_lints/src/unicode.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ declare_clippy_lint! {
4545
/// let x = String::from("\u{20ac}");
4646
/// ```
4747
pub NON_ASCII_LITERAL,
48-
pedantic,
48+
restriction,
4949
"using any literal non-ASCII chars in a string literal instead of using the `\\u` escape"
5050
}
5151

0 commit comments

Comments
 (0)