Move to using Cargo.toml [lints] #5974
Labels
C-test-infra
Component: Integration test infrastructure
S-medium
Size: Less than a week (larger bug fix or enhancement)
Milestone
This is our current lint boilerplate
We are now on Rust 1.81, and can instead use Cargo's
[lints]
table, and Workspace lints, so that this can be defined in one place.The
cfg(test)
matters more for the panicky lints: These can instead be covered by the Clippyallow_panic_in_tests
,allow_expect_in_tests
,allow_unwrap_in_tests
.allow_indexing_slicing_in_tests
configs. A similar config could be added to the exhaustiveness lints but we have a very small number of structs/enums in tests and we can justallow
there.cc @robertbastian @sffc
The text was updated successfully, but these errors were encountered: