Skip to content

Commit

Permalink
correct "Affected lints" for allow-one-hash-in-raw-strings (rust-la…
Browse files Browse the repository at this point in the history
…ng#14186)

The `needless_raw_string_hashes` lint was implemented in rust-lang#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
  • Loading branch information
flip1995 authored Feb 10, 2025
2 parents 8939915 + 749eb37 commit b7ec4c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book/src/lint_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion clippy_config/src/conf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit b7ec4c1

Please sign in to comment.