Skip to content

Commit

Permalink
Warn against select few more rustc lints
Browse files Browse the repository at this point in the history
The first one is enabled in the `rustc` itself and vendored-in tools:
`unused_lifetimes`. It makes sense to warn against it by default and
pepper allows or change the code such that it's used, e.g. with
PhantomData.

The second one will be already uplifted to `dead_code` (which is
warn-by-default) but since we're warning against some lints, it can't
hurt.
  • Loading branch information
Xanewok committed Dec 12, 2023
1 parent 9245976 commit c721b9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ lto = true
rustflags = [
# rustc additional warnings:
"-Wunused_crate_dependencies",
"-Wunused_lifetimes",
"-Wunused_tuple_struct_fields", # Will be uplifed into `dead_code` (warn-by-default) with https://github.com/rust-lang/rust/pull/118297
# Rust 2018 idioms that are not yet warn-by-default:
"-Welided_lifetimes_in_paths",
"-Wunused_extern_crates",
Expand Down

0 comments on commit c721b9f

Please sign in to comment.