@@ -72,26 +72,34 @@ unsafe_code = 'forbid'
72
72
# A subset of `rustc` lints that are allowed by default.
73
73
# A few notable ones that we do not enable:
74
74
#
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>
77
83
#
78
84
# - `missing_copy_implementations`
79
85
# This would be more useful if it only triggered for types that are `Clone` but not `Copy`.
80
86
#
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 .
83
89
#
84
90
# See the output of `rustc --warn help` for a full list of lints available in the current version.
85
91
# They are documented at <https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html>.
86
92
absolute_paths_not_starting_with_crate = ' warn'
87
93
anonymous_parameters = ' warn'
88
94
deprecated_in_future = ' warn'
89
95
indirect_structural_match = ' warn'
96
+ keyword_idents_2018 = ' warn'
90
97
let_underscore_drop = ' warn'
91
98
macro_use_extern_crate = ' warn'
92
99
meta_variable_misuse = ' warn'
93
100
non_ascii_idents = ' warn'
94
101
non_local_definitions = ' warn'
102
+ redundant_lifetimes = ' warn'
95
103
trivial_casts = ' warn'
96
104
trivial_numeric_casts = ' warn'
97
105
unit_bindings = ' warn'
0 commit comments