Skip to content

Commit b7ec4c1

Browse files
authored
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
2 parents 8939915 + 749eb37 commit b7ec4c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: book/src/lint_configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Whether to allow `r#""#` when `r""` can be used
108108

109109
---
110110
**Affected lints:**
111-
* [`unnecessary_raw_string_hashes`](https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_raw_string_hashes)
111+
* [`needless_raw_string_hashes`](https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes)
112112

113113

114114
## `allow-panic-in-tests`

Diff for: clippy_config/src/conf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ define_Conf! {
298298
#[lints(uninlined_format_args)]
299299
allow_mixed_uninlined_format_args: bool = true,
300300
/// Whether to allow `r#""#` when `r""` can be used
301-
#[lints(unnecessary_raw_string_hashes)]
301+
#[lints(needless_raw_string_hashes)]
302302
allow_one_hash_in_raw_strings: bool = false,
303303
/// Whether `panic` should be allowed in test functions or `#[cfg(test)]`
304304
#[lints(panic)]

0 commit comments

Comments
 (0)