Skip to content

Commit 43a1e53

Browse files
Rust 1.79.0: Enable new rustc lints
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
1 parent a3199ca commit 43a1e53

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Cargo.toml

+12-4
Original file line numberDiff line numberDiff line change
@@ -72,26 +72,34 @@ unsafe_code = 'forbid'
7272
# A subset of `rustc` lints that are allowed by default.
7373
# A few notable ones that we do not enable:
7474
#
75-
# - `variant_size_differences`
76-
# `clippy::large_enum_variant` does nearly the same thing and is enabled by default.
75+
# - `elided_lifetimes_in_paths`
76+
# It hurts readability and doesn't provide a clear benefit.
77+
#
78+
# - `keyword_idents_2024`
79+
# Starting with Rust 1.79.0, uses of `rand::Rng::gen` trigger `keyword_idents_2024`.
80+
# `rand` has renamed the method to `random`, but the change has not been released. See:
81+
# - <https://github.com/rust-random/rand/issues/1435>
82+
# - <https://github.com/rust-random/rand/pull/1438>
7783
#
7884
# - `missing_copy_implementations`
7985
# This would be more useful if it only triggered for types that are `Clone` but not `Copy`.
8086
#
81-
# - `elided_lifetimes_in_paths`
82-
# It hurts readability and doesn't provide a clear benefit.
87+
# - `variant_size_differences`
88+
# `clippy::large_enum_variant` does nearly the same thing and is enabled by default.
8389
#
8490
# See the output of `rustc --warn help` for a full list of lints available in the current version.
8591
# They are documented at <https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html>.
8692
absolute_paths_not_starting_with_crate = 'warn'
8793
anonymous_parameters = 'warn'
8894
deprecated_in_future = 'warn'
8995
indirect_structural_match = 'warn'
96+
keyword_idents_2018 = 'warn'
9097
let_underscore_drop = 'warn'
9198
macro_use_extern_crate = 'warn'
9299
meta_variable_misuse = 'warn'
93100
non_ascii_idents = 'warn'
94101
non_local_definitions = 'warn'
102+
redundant_lifetimes = 'warn'
95103
trivial_casts = 'warn'
96104
trivial_numeric_casts = 'warn'
97105
unit_bindings = 'warn'

0 commit comments

Comments
 (0)