mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
correct "Affected lints" for allow-one-hash-in-raw-strings (#14186)
The `needless_raw_string_hashes` lint was implemented in #10884. However, the name originally considered might have been `unnecessary_raw_string_hashes`, so this part refers to a non-existent lint. r? flip1995 changelog: none
This commit is contained in:
@@ -108,7 +108,7 @@ Whether to allow `r#""#` when `r""` can be used
|
||||
|
||||
---
|
||||
**Affected lints:**
|
||||
* [`unnecessary_raw_string_hashes`](https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_raw_string_hashes)
|
||||
* [`needless_raw_string_hashes`](https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes)
|
||||
|
||||
|
||||
## `allow-panic-in-tests`
|
||||
|
||||
@@ -298,7 +298,7 @@ pub fn get_configuration_metadata() -> Vec<ClippyConfiguration> {
|
||||
#[lints(uninlined_format_args)]
|
||||
allow_mixed_uninlined_format_args: bool = true,
|
||||
/// Whether to allow `r#""#` when `r""` can be used
|
||||
#[lints(unnecessary_raw_string_hashes)]
|
||||
#[lints(needless_raw_string_hashes)]
|
||||
allow_one_hash_in_raw_strings: bool = false,
|
||||
/// Whether `panic` should be allowed in test functions or `#[cfg(test)]`
|
||||
#[lints(panic)]
|
||||
|
||||
Reference in New Issue
Block a user