Skip to content

Commit 4aef6bb

Browse files
committed
Update to latest rustc lints
1 parent 135e114 commit 4aef6bb

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

Cargo.toml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ assets = [
9696
]
9797

9898
[lints.rust]
99+
deprecated_safe = { level = "warn", priority = -2 }
99100
future_incompatible = { level = "warn", priority = -2 }
100101
keyword_idents = { level = "warn", priority = -3 }
101102
let_underscore = { level = "warn", priority = -2 }
@@ -114,13 +115,18 @@ renamed_and_removed_lints = { level = "warn", priority = -1 }
114115
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(tarpaulin_include)"] }
115116

116117
# absolute_paths_not_starting_with_crate - group rust_2018_compatibility
117-
# box-pointers - used in project, and is safe to do so
118-
deprecated_in_future = "warn"
118+
ambiguous_negative_literals = "warn"
119+
closure_returning_async_block = "warn"
120+
# deprecated_in_future - internal lint, not for user code
121+
# deprecated_safe_2024 - group: deprecated_safe
122+
edition-2024-expr-fragment-specifier = "allow" # migration not needed
119123
# elided_lifetimes_in_paths - group: rust_2018_idioms
120124
# explicit_outlives_requirements - group: rust_2018_idioms
121125
ffi_unwind_calls = "warn"
122126
# fuzzy_provenance_casts - unstable
123-
# impl_trait_overcaptures - unstable
127+
if_let_rescope = "allow" # migration not needed
128+
impl_trait_overcaptures = "warn"
129+
impl_trait_redundant_captures = "warn"
124130
# keyword_idents_2018 - group: rust_2018_compatibility
125131
# keyword_idents_2024 - group: rust_2024_compatibility
126132
# let_underscore_drop - group: let_underscore
@@ -131,22 +137,29 @@ missing_abi = "warn"
131137
missing_copy_implementations = "warn"
132138
missing_debug_implementations = "warn"
133139
# missing_docs - not requiring docs in this project
140+
# missing-unsafe-on-extern - group: rust_2024_compatibility
134141
# multiple_supertrait_upcastable - unstable
135142
# must_not_suspend - unstable
136143
non_ascii_idents = "warn"
137144
# non_exhaustive_omitted_patterns - unstable
145+
redundant_imports = "warn"
138146
redundant_lifetimes = "warn"
139147
# rust_2021_incompatible_closure_captures - group: rust_2021_compatibility
140148
# rust_2021_incompatible_or_patterns - group: rust_2021_compatibility
141149
# rust_2021_prefixes_incompatible_syntax - group: rust_2021_compatibility
142150
# rust_2021_prelude_collisions - group: rust_2021_compatibility
143-
# rust_2024_incompatible_pat - unstable
151+
# rust_2024_guarded_string_incompatible_syntax - group: rust_2024_compatibility
152+
# rust_2024_incompatible_pat - group: rust_2024_compatibility
153+
# rust_2024_prelude_collisions - group: rust_2024_compatibility
144154
single_use_lifetimes = "warn"
155+
tail_expr_drop_order = "allow" # migration not needed
145156
trivial_casts = "warn"
146157
trivial_numeric_casts = "warn"
147158
unit-bindings = "warn"
148159
unnameable_types = "warn"
160+
# unqualified_local_imports = "warn" - unstable
149161
unreachable_pub = "warn"
162+
# unsafe_attr_outside_unsafe - group: rust_2024_compatibility
150163
unsafe_code = "warn"
151164
# unsafe_op_in_unsafe_fn - group: rust_2024_compatibility
152165
# unstable_features - deprecated
@@ -188,6 +201,7 @@ needless_raw_string_hashes = "allow"
188201
needless_raw_strings = "allow"
189202
new_without_default = "allow"
190203
non_ascii_literal = "allow"
204+
cfg_not_test = "allow"
191205
option_if_let_else = "allow"
192206
pattern_type_mismatch = "allow"
193207
pub_use = "allow"

0 commit comments

Comments
 (0)