diff options
| author | Philipp Krones <hello@philkrones.com> | 2025-02-10 14:19:42 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-10 14:19:42 +0000 |
| commit | b7ec4c13f34dae4a2309f5dcc074e149b36ea81b (patch) | |
| tree | b9598871491fbb0668ed22ad40cf3cd659643ea1 | |
| parent | 8939915d5bbc685d066ab7411bb2b0011d863fbc (diff) | |
| parent | 749eb371bf498224a03541980d4635db232c71b4 (diff) | |
| download | rust-b7ec4c13f34dae4a2309f5dcc074e149b36ea81b.tar.gz rust-b7ec4c13f34dae4a2309f5dcc074e149b36ea81b.zip | |
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
| -rw-r--r-- | book/src/lint_configuration.md | 2 | ||||
| -rw-r--r-- | clippy_config/src/conf.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/book/src/lint_configuration.md b/book/src/lint_configuration.md index 6803a1db2bb..f43c3a28072 100644 --- a/book/src/lint_configuration.md +++ b/book/src/lint_configuration.md @@ -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` diff --git a/clippy_config/src/conf.rs b/clippy_config/src/conf.rs index 10a17da1517..28e42c67d98 100644 --- a/clippy_config/src/conf.rs +++ b/clippy_config/src/conf.rs @@ -298,7 +298,7 @@ define_Conf! { #[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)] |
