Skip to content

Commit

Permalink
Rust 1.79.0: Enable new rustc lints
Browse files Browse the repository at this point in the history
dereferencing_mut_binding was added in Rust 1.79.0 as an experiment and removed in Rust 1.80.0.
See:
- https://doc.rust-lang.org/1.79.0/rustc/lints/listing/allowed-by-default.html#dereferencing-mut-binding
- rust-lang/rust#120095
- rust-lang/rust#123076
  • Loading branch information
weekday-grandine-io committed Sep 5, 2024
1 parent a3199ca commit 43a1e53
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,34 @@ unsafe_code = 'forbid'
# A subset of `rustc` lints that are allowed by default.
# A few notable ones that we do not enable:
#
# - `variant_size_differences`
# `clippy::large_enum_variant` does nearly the same thing and is enabled by default.
# - `elided_lifetimes_in_paths`
# It hurts readability and doesn't provide a clear benefit.
#
# - `keyword_idents_2024`
# Starting with Rust 1.79.0, uses of `rand::Rng::gen` trigger `keyword_idents_2024`.
# `rand` has renamed the method to `random`, but the change has not been released. See:
# - <https://github.com/rust-random/rand/issues/1435>
# - <https://github.com/rust-random/rand/pull/1438>
#
# - `missing_copy_implementations`
# This would be more useful if it only triggered for types that are `Clone` but not `Copy`.
#
# - `elided_lifetimes_in_paths`
# It hurts readability and doesn't provide a clear benefit.
# - `variant_size_differences`
# `clippy::large_enum_variant` does nearly the same thing and is enabled by default.
#
# See the output of `rustc --warn help` for a full list of lints available in the current version.
# They are documented at <https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html>.
absolute_paths_not_starting_with_crate = 'warn'
anonymous_parameters = 'warn'
deprecated_in_future = 'warn'
indirect_structural_match = 'warn'
keyword_idents_2018 = 'warn'
let_underscore_drop = 'warn'
macro_use_extern_crate = 'warn'
meta_variable_misuse = 'warn'
non_ascii_idents = 'warn'
non_local_definitions = 'warn'
redundant_lifetimes = 'warn'
trivial_casts = 'warn'
trivial_numeric_casts = 'warn'
unit_bindings = 'warn'
Expand Down

0 comments on commit 43a1e53

Please sign in to comment.