Skip to content

Commit 798865c

Browse files
committedJan 25, 2024
Merge commit '66c29b973b3b10278bd39f4e26b08522a379c2c9' into clippy-subtree-update
1 parent 0b6cf3b commit 798865c

File tree

158 files changed

+2839
-999
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+2839
-999
lines changed
 

‎CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -5606,6 +5606,7 @@ Released 2018-09-13
56065606
[`suspicious_else_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting
56075607
[`suspicious_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_map
56085608
[`suspicious_op_assign_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_op_assign_impl
5609+
[`suspicious_open_options`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_open_options
56095610
[`suspicious_operation_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_operation_groupings
56105611
[`suspicious_splitn`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_splitn
56115612
[`suspicious_to_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_to_owned
@@ -5814,6 +5815,7 @@ Released 2018-09-13
58145815
[`absolute-paths-max-segments`]: https://doc.rust-lang.org/clippy/lint_configuration.html#absolute-paths-max-segments
58155816
[`absolute-paths-allowed-crates`]: https://doc.rust-lang.org/clippy/lint_configuration.html#absolute-paths-allowed-crates
58165817
[`allowed-dotfiles`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allowed-dotfiles
5818+
[`allowed-duplicate-crates`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allowed-duplicate-crates
58175819
[`enforce-iter-loop-reborrow`]: https://doc.rust-lang.org/clippy/lint_configuration.html#enforce-iter-loop-reborrow
58185820
[`check-private-items`]: https://doc.rust-lang.org/clippy/lint_configuration.html#check-private-items
58195821
[`pub-underscore-fields-behavior`]: https://doc.rust-lang.org/clippy/lint_configuration.html#pub-underscore-fields-behavior

‎book/src/lint_configuration.md

+17-4
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ default configuration of Clippy. By default, any configuration will replace the
212212
* `doc-valid-idents = ["ClipPy"]` would replace the default list with `["ClipPy"]`.
213213
* `doc-valid-idents = ["ClipPy", ".."]` would append `ClipPy` to the default list.
214214

215-
**Default Value:** `["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "DirectX", "ECMAScript", "GPLv2", "GPLv3", "GitHub", "GitLab", "IPv4", "IPv6", "ClojureScript", "CoffeeScript", "JavaScript", "PureScript", "TypeScript", "WebAssembly", "NaN", "NaNs", "OAuth", "GraphQL", "OCaml", "OpenGL", "OpenMP", "OpenSSH", "OpenSSL", "OpenStreetMap", "OpenDNS", "WebGL", "WebGL2", "WebGPU", "TensorFlow", "TrueType", "iOS", "macOS", "FreeBSD", "TeX", "LaTeX", "BibTeX", "BibLaTeX", "MinGW", "CamelCase"]`
215+
**Default Value:** `["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "DirectX", "ECMAScript", "GPLv2", "GPLv3", "GitHub", "GitLab", "IPv4", "IPv6", "ClojureScript", "CoffeeScript", "JavaScript", "PureScript", "TypeScript", "WebAssembly", "NaN", "NaNs", "OAuth", "GraphQL", "OCaml", "OpenDNS", "OpenGL", "OpenMP", "OpenSSH", "OpenSSL", "OpenStreetMap", "OpenTelemetry", "WebGL", "WebGL2", "WebGPU", "TensorFlow", "TrueType", "iOS", "macOS", "FreeBSD", "TeX", "LaTeX", "BibTeX", "BibLaTeX", "MinGW", "CamelCase"]`
216216

217217
---
218218
**Affected lints:**
@@ -768,7 +768,19 @@ Additional dotfiles (files or directories starting with a dot) to allow
768768
* [`path_ends_with_ext`](https://rust-lang.github.io/rust-clippy/master/index.html#path_ends_with_ext)
769769

770770

771+
## `allowed-duplicate-crates`
772+
A list of crate names to allow duplicates of
773+
774+
**Default Value:** `[]`
775+
776+
---
777+
**Affected lints:**
778+
* [`multiple_crate_versions`](https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions)
779+
780+
771781
## `enforce-iter-loop-reborrow`
782+
Whether to recommend using implicit into iter for reborrowed values.
783+
772784
#### Example
773785
```no_run
774786
let mut vec = vec![1, 2, 3];
@@ -793,7 +805,7 @@ for _ in &mut *rmvec {}
793805

794806

795807
## `check-private-items`
796-
808+
Whether to also run the listed lints on private items.
797809

798810
**Default Value:** `false`
799811

@@ -806,9 +818,10 @@ for _ in &mut *rmvec {}
806818

807819

808820
## `pub-underscore-fields-behavior`
821+
Lint "public" fields in a struct that are prefixed with an underscore based on their
822+
exported visibility, or whether they are marked as "pub".
809823

810-
811-
**Default Value:** `"PublicallyExported"`
824+
**Default Value:** `"PubliclyExported"`
812825

813826
---
814827
**Affected lints:**

0 commit comments

Comments
 (0)