Skip to content

Commit

Permalink
update rustc lints
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Mar 4, 2024
1 parent f3f2d35 commit 4bbd64a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5132,6 +5132,9 @@ pub(crate) static CLIPPYLINTS: &[&str] = &[
//.arg("-Wclippy::internal")
];

/*
for i in `rustc -Whelp | grep "^.*allow " -o | awk '{print $1}'` ; do ; echo "\"-W${i}\"," ; done
*/
pub(crate) static RUSTC_ALLOW_BY_DEFAULT_LINTS: &[&str] = &[
"-Wabsolute-paths-not-starting-with-crate",
"-Wbox-pointers",
Expand All @@ -5149,18 +5152,19 @@ pub(crate) static RUSTC_ALLOW_BY_DEFAULT_LINTS: &[&str] = &[
"-Wmissing-copy-implementations",
"-Wmissing-debug-implementations",
"-Wmissing-docs",
"-Wmultiple-supertrait-upcastable",
"-Wmust-not-suspend",
"-Wnon-ascii-idents",
"-Wnon-exhaustive-omitted-patterns",
"-Wnoop-method-call",
"-Wpointer-structural-match",
"-Wrust-2021-incompatible-closure-captures",
"-Wrust-2021-incompatible-or-patterns",
"-Wrust-2021-prefixes-incompatible-syntax",
"-Wrust-2021-prelude-collisions",
"-Wsingle-use-lifetimes",
"-Wtrivial-casts",
"-Wtrivial-numeric-casts",
"-Wunit-bindings",
"-Wunnameable-types",
"-Wunreachable-pub",
"-Wunsafe-code",
"-Wunsafe-op-in-unsafe-fn",
Expand Down

0 comments on commit 4bbd64a

Please sign in to comment.