Auto merge of #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`
This commit is contained in:
bors 2021-11-02 10:36:26 +00:00
commit 18cc4e74f8
3 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,6 @@
LintId::of(transmute::TRANSMUTE_PTR_TO_PTR), LintId::of(transmute::TRANSMUTE_PTR_TO_PTR),
LintId::of(types::LINKEDLIST), LintId::of(types::LINKEDLIST),
LintId::of(types::OPTION_OPTION), LintId::of(types::OPTION_OPTION),
LintId::of(unicode::NON_ASCII_LITERAL),
LintId::of(unicode::UNICODE_NOT_NFC), LintId::of(unicode::UNICODE_NOT_NFC),
LintId::of(unit_types::LET_UNIT_VALUE), LintId::of(unit_types::LET_UNIT_VALUE),
LintId::of(unnecessary_wraps::UNNECESSARY_WRAPS), LintId::of(unnecessary_wraps::UNNECESSARY_WRAPS),

View File

@ -61,6 +61,7 @@
LintId::of(types::RC_BUFFER), LintId::of(types::RC_BUFFER),
LintId::of(types::RC_MUTEX), LintId::of(types::RC_MUTEX),
LintId::of(undocumented_unsafe_blocks::UNDOCUMENTED_UNSAFE_BLOCKS), LintId::of(undocumented_unsafe_blocks::UNDOCUMENTED_UNSAFE_BLOCKS),
LintId::of(unicode::NON_ASCII_LITERAL),
LintId::of(unnecessary_self_imports::UNNECESSARY_SELF_IMPORTS), LintId::of(unnecessary_self_imports::UNNECESSARY_SELF_IMPORTS),
LintId::of(unwrap_in_result::UNWRAP_IN_RESULT), LintId::of(unwrap_in_result::UNWRAP_IN_RESULT),
LintId::of(verbose_file_reads::VERBOSE_FILE_READS), LintId::of(verbose_file_reads::VERBOSE_FILE_READS),

View File

@ -45,7 +45,7 @@
/// let x = String::from("\u{20ac}"); /// let x = String::from("\u{20ac}");
/// ``` /// ```
pub NON_ASCII_LITERAL, pub NON_ASCII_LITERAL,
pedantic, restriction,
"using any literal non-ASCII chars in a string literal instead of using the `\\u` escape" "using any literal non-ASCII chars in a string literal instead of using the `\\u` escape"
} }