|
|
@ -2,94 +2,124 @@ |
|
|
|
rustflags = [ |
|
|
|
rustflags = [ |
|
|
|
"-Wtrivial-casts", |
|
|
|
"-Wtrivial-casts", |
|
|
|
"-Wtrivial-numeric-casts", |
|
|
|
"-Wtrivial-numeric-casts", |
|
|
|
"-Wunsafe_code", |
|
|
|
"-Wunsafe-code", |
|
|
|
"-Wunused-lifetimes", |
|
|
|
"-Wunused-lifetimes", |
|
|
|
"-Wunused-qualifications", |
|
|
|
"-Wunused-qualifications", |
|
|
|
|
|
|
|
# TODO: 1.63+ "-Wclippy::as-underscore", |
|
|
|
|
|
|
|
# TODO: 1.65+ ""-Wclippy::bool-to-int-with-if", |
|
|
|
|
|
|
|
"-Wclippy::borrow-as-ptr", |
|
|
|
|
|
|
|
"-Wclippy::case-sensitive-file-extension-comparisons", |
|
|
|
"-Wclippy::cast-lossless", |
|
|
|
"-Wclippy::cast-lossless", |
|
|
|
"-Wclippy::cast-possible-truncation", |
|
|
|
"-Wclippy::cast-possible-truncation", |
|
|
|
"-Wclippy::cast-possible-wrap", |
|
|
|
"-Wclippy::cast-possible-wrap", |
|
|
|
"-Wclippy::cast-precision-loss", |
|
|
|
"-Wclippy::cast-precision-loss", |
|
|
|
|
|
|
|
"-Wclippy::cast-ptr-alignment", |
|
|
|
"-Wclippy::cast-sign-loss", |
|
|
|
"-Wclippy::cast-sign-loss", |
|
|
|
"-Wclippy::checked-conversions", |
|
|
|
"-Wclippy::checked-conversions", |
|
|
|
|
|
|
|
"-Wclippy::clone-on-ref-ptr", |
|
|
|
"-Wclippy::cloned-instead-of-copied", |
|
|
|
"-Wclippy::cloned-instead-of-copied", |
|
|
|
"-Wclippy::copy-iterator", |
|
|
|
"-Wclippy::copy-iterator", |
|
|
|
"-Wclippy::dbg-macro", |
|
|
|
"-Wclippy::dbg-macro", |
|
|
|
"-Wclippy::debug-assert-with-mut-call", |
|
|
|
|
|
|
|
"-Wclippy::decimal-literal-representation", |
|
|
|
"-Wclippy::decimal-literal-representation", |
|
|
|
"-Wclippy::empty-line-after-outer-attr", |
|
|
|
"-Wclippy::default-trait-access", |
|
|
|
|
|
|
|
"-Wclippy::default-union-representation", |
|
|
|
|
|
|
|
# TODO: 1.61+ "-Wclippy::deref-by-slicing", |
|
|
|
|
|
|
|
# TODO: 1.63+ "-Wclippy::doc-link-with-quotes", |
|
|
|
|
|
|
|
# TODO: 1.62+ "-Wclippy::empty-drop", |
|
|
|
"-Wclippy::empty-enum", |
|
|
|
"-Wclippy::empty-enum", |
|
|
|
|
|
|
|
# TODO: on major version "-Wclippy::empty-structs-with-brackets", |
|
|
|
"-Wclippy::enum-glob-use", |
|
|
|
"-Wclippy::enum-glob-use", |
|
|
|
|
|
|
|
"-Wclippy::exit", |
|
|
|
"-Wclippy::expect-used", |
|
|
|
"-Wclippy::expect-used", |
|
|
|
"-Wclippy::expl-impl-clone-on-copy", |
|
|
|
"-Wclippy::expl-impl-clone-on-copy", |
|
|
|
"-Wclippy::explicit-deref-methods", |
|
|
|
"-Wclippy::explicit-deref-methods", |
|
|
|
"-Wclippy::explicit-into-iter-loop", |
|
|
|
"-Wclippy::explicit-into-iter-loop", |
|
|
|
"-Wclippy::explicit-iter-loop", |
|
|
|
"-Wclippy::explicit-iter-loop", |
|
|
|
"-Wclippy::fallible-impl-from", |
|
|
|
|
|
|
|
"-Wclippy::filter-map-next", |
|
|
|
"-Wclippy::filter-map-next", |
|
|
|
"-Wclippy::flat-map-option", |
|
|
|
"-Wclippy::flat-map-option", |
|
|
|
|
|
|
|
"-Wclippy::fn-to-numeric-cast-any", |
|
|
|
|
|
|
|
# TODO: 1.62+ "-Wclippy::format-push-string", |
|
|
|
"-Wclippy::from-iter-instead-of-collect", |
|
|
|
"-Wclippy::from-iter-instead-of-collect", |
|
|
|
"-Wclippy::get-unwrap", |
|
|
|
"-Wclippy::get-unwrap", |
|
|
|
"-Wclippy::if-not-else", |
|
|
|
"-Wclippy::if-not-else", |
|
|
|
|
|
|
|
"-Wclippy::if-then-some-else-none", |
|
|
|
"-Wclippy::implicit-clone", |
|
|
|
"-Wclippy::implicit-clone", |
|
|
|
"-Wclippy::implicit-saturating-sub", |
|
|
|
|
|
|
|
"-Wclippy::imprecise-flops", |
|
|
|
|
|
|
|
"-Wclippy::inconsistent-struct-constructor", |
|
|
|
"-Wclippy::inconsistent-struct-constructor", |
|
|
|
|
|
|
|
"-Wclippy::index-refutable-slice", |
|
|
|
"-Wclippy::inefficient-to-string", |
|
|
|
"-Wclippy::inefficient-to-string", |
|
|
|
"-Wclippy::inline-always", |
|
|
|
"-Wclippy::inline-always", |
|
|
|
|
|
|
|
"-Wclippy::inline-asm-x86-att-syntax", |
|
|
|
|
|
|
|
"-Wclippy::inline-asm-x86-intel-syntax", |
|
|
|
"-Wclippy::invalid-upcast-comparisons", |
|
|
|
"-Wclippy::invalid-upcast-comparisons", |
|
|
|
"-Wclippy::items-after-statements", |
|
|
|
"-Wclippy::items-after-statements", |
|
|
|
"-Wclippy::large-digit-groups", |
|
|
|
"-Wclippy::large-digit-groups", |
|
|
|
|
|
|
|
# TODO: 1.68+ "-Wclippy::large-futures", |
|
|
|
"-Wclippy::large-stack-arrays", |
|
|
|
"-Wclippy::large-stack-arrays", |
|
|
|
"-Wclippy::large-types-passed-by-value", |
|
|
|
"-Wclippy::large-types-passed-by-value", |
|
|
|
"-Wclippy::let-underscore-must-use", |
|
|
|
"-Wclippy::let-underscore-must-use", |
|
|
|
"-Wclippy::let-unit-value", |
|
|
|
"-Wclippy::let-unit-value", |
|
|
|
"-Wclippy::linkedlist", |
|
|
|
"-Wclippy::linkedlist", |
|
|
|
|
|
|
|
"-Wclippy::lossy-float-literal", |
|
|
|
"-Wclippy::macro-use-imports", |
|
|
|
"-Wclippy::macro-use-imports", |
|
|
|
|
|
|
|
"-Wclippy::manual-assert", |
|
|
|
|
|
|
|
# TODO: 1.65+ "-Wclippy::manual-instant-elapsed", |
|
|
|
|
|
|
|
# TODO: 1.67+ "-Wclippy::manual-let-else", |
|
|
|
"-Wclippy::manual-ok-or", |
|
|
|
"-Wclippy::manual-ok-or", |
|
|
|
"-Wclippy::map-flatten", |
|
|
|
# TODO: 1.65+ "-Wclippy::manual-string-new", |
|
|
|
|
|
|
|
"-Wclippy::many-single-char-names", |
|
|
|
"-Wclippy::map-unwrap-or", |
|
|
|
"-Wclippy::map-unwrap-or", |
|
|
|
"-Wclippy::match-bool", |
|
|
|
"-Wclippy::match-bool", |
|
|
|
"-Wclippy::match-same-arms", |
|
|
|
"-Wclippy::match-same-arms", |
|
|
|
"-Wclippy::match-wildcard-for-single-variants", |
|
|
|
"-Wclippy::match-wildcard-for-single-variants", |
|
|
|
"-Wclippy::maybe-infinite-iter", |
|
|
|
"-Wclippy::maybe-infinite-iter", |
|
|
|
"-Wclippy::mem-forget", |
|
|
|
"-Wclippy::mem-forget", |
|
|
|
|
|
|
|
# TODO: 1.63+ "-Wclippy::mismatching-type-param-order", |
|
|
|
"-Wclippy::multiple-inherent-impl", |
|
|
|
"-Wclippy::multiple-inherent-impl", |
|
|
|
"-Wclippy::mut-mut", |
|
|
|
"-Wclippy::mut-mut", |
|
|
|
"-Wclippy::mutex-integer", |
|
|
|
"-Wclippy::mutex-atomic", |
|
|
|
"-Wclippy::naive-bytecount", |
|
|
|
"-Wclippy::naive-bytecount", |
|
|
|
"-Wclippy::needless-bitwise-bool", |
|
|
|
"-Wclippy::needless-bitwise-bool", |
|
|
|
"-Wclippy::needless-continue", |
|
|
|
"-Wclippy::needless-continue", |
|
|
|
"-Wclippy::needless-pass-by-value", |
|
|
|
"-Wclippy::needless-pass-by-value", |
|
|
|
|
|
|
|
"-Wclippy::no-effect-underscore-binding", |
|
|
|
|
|
|
|
# TODO: 1.69+ "-Wclippy::no-mangle-with-rust-abi", |
|
|
|
"-Wclippy::non-ascii-literal", |
|
|
|
"-Wclippy::non-ascii-literal", |
|
|
|
"-Wclippy::nonstandard-macro-braces", |
|
|
|
|
|
|
|
"-Wclippy::path-buf-push-overwrite", |
|
|
|
|
|
|
|
"-Wclippy::print-stderr", |
|
|
|
"-Wclippy::print-stderr", |
|
|
|
"-Wclippy::print-stdout", |
|
|
|
"-Wclippy::print-stdout", |
|
|
|
|
|
|
|
"-Wclippy::ptr-as-ptr", |
|
|
|
"-Wclippy::range-minus-one", |
|
|
|
"-Wclippy::range-minus-one", |
|
|
|
"-Wclippy::range-plus-one", |
|
|
|
"-Wclippy::range-plus-one", |
|
|
|
|
|
|
|
"-Wclippy::rc-buffer", |
|
|
|
"-Wclippy::rc-mutex", |
|
|
|
"-Wclippy::rc-mutex", |
|
|
|
"-Wclippy::enum-variant-names", |
|
|
|
"-Wclippy::redundant-closure-for-method-calls", |
|
|
|
"-Wclippy::redundant-else", |
|
|
|
"-Wclippy::redundant-else", |
|
|
|
"-Wclippy::redundant-pub-crate", |
|
|
|
"-Wclippy::redundant-feature-names", |
|
|
|
"-Wclippy::ref-binding-to-reference", |
|
|
|
"-Wclippy::ref-binding-to-reference", |
|
|
|
"-Wclippy::ref-option-ref", |
|
|
|
"-Wclippy::ref-option-ref", |
|
|
|
"-Wclippy::rest-pat-in-fully-bound-structs", |
|
|
|
"-Wclippy::rest-pat-in-fully-bound-structs", |
|
|
|
|
|
|
|
"-Wclippy::return-self-not-must-use", |
|
|
|
"-Wclippy::same-functions-in-if-condition", |
|
|
|
"-Wclippy::same-functions-in-if-condition", |
|
|
|
|
|
|
|
# TODO: strange failure on 1.60 "-Wclippy::same-name-method", |
|
|
|
|
|
|
|
# TODO: 1.68+ "-Wclippy::semicolon-outside-block", |
|
|
|
|
|
|
|
"-Wclippy::single-match-else", |
|
|
|
|
|
|
|
"-Wclippy::stable-sort-primitive", |
|
|
|
"-Wclippy::str-to-string", |
|
|
|
"-Wclippy::str-to-string", |
|
|
|
"-Wclippy::string-add", |
|
|
|
"-Wclippy::string-add", |
|
|
|
"-Wclippy::string-add-assign", |
|
|
|
"-Wclippy::string-add-assign", |
|
|
|
"-Wclippy::string-lit-as-bytes", |
|
|
|
"-Wclippy::string-lit-as-bytes", |
|
|
|
"-Wclippy::string-to-string", |
|
|
|
"-Wclippy::string-to-string", |
|
|
|
"-Wclippy::suboptimal-flops", |
|
|
|
# TODO: 1.67+ "-Wclippy::suspicious-xor-used-as-pow", |
|
|
|
"-Wclippy::suspicious-operation-groupings", |
|
|
|
|
|
|
|
"-Wclippy::todo", |
|
|
|
"-Wclippy::todo", |
|
|
|
"-Wclippy::trait-duplication-in-bounds", |
|
|
|
|
|
|
|
"-Wclippy::transmute-ptr-to-ptr", |
|
|
|
"-Wclippy::transmute-ptr-to-ptr", |
|
|
|
"-Wclippy::trivial-regex", |
|
|
|
|
|
|
|
"-Wclippy::trivially-copy-pass-by-ref", |
|
|
|
"-Wclippy::trivially-copy-pass-by-ref", |
|
|
|
"-Wclippy::type-repetition-in-bounds", |
|
|
|
"-Wclippy::try-err", |
|
|
|
"-Wclippy::unicode-not-nfc", |
|
|
|
"-Wclippy::unicode-not-nfc", |
|
|
|
"-Wclippy::unimplemented", |
|
|
|
"-Wclippy::unimplemented", |
|
|
|
|
|
|
|
# TODO: 1.66+ "-Wclippy::uninlined-format-args", |
|
|
|
|
|
|
|
# TODO: 1.70+ "-Wclippy::unnecessary-box-returns", |
|
|
|
|
|
|
|
# TODO: 1.61+ "-Wclippy::unnecessary-join", |
|
|
|
|
|
|
|
# TODO: 1.67+ "-Wclippy::unnecessary-safety-comment", |
|
|
|
|
|
|
|
# TODO: 1.67+ "-Wclippy::unnecessary-safety-doc", |
|
|
|
"-Wclippy::unnecessary-self-imports", |
|
|
|
"-Wclippy::unnecessary-self-imports", |
|
|
|
"-Wclippy::unnecessary-wraps", |
|
|
|
"-Wclippy::unnecessary-wraps", |
|
|
|
"-Wclippy::unneeded-field-pattern", |
|
|
|
"-Wclippy::unneeded-field-pattern", |
|
|
@ -99,13 +129,9 @@ rustflags = [ |
|
|
|
"-Wclippy::unused-async", |
|
|
|
"-Wclippy::unused-async", |
|
|
|
"-Wclippy::unused-self", |
|
|
|
"-Wclippy::unused-self", |
|
|
|
"-Wclippy::use-debug", |
|
|
|
"-Wclippy::use-debug", |
|
|
|
"-Wclippy::use-self", |
|
|
|
|
|
|
|
"-Wclippy::used-underscore-binding", |
|
|
|
"-Wclippy::used-underscore-binding", |
|
|
|
"-Wclippy::useless-let-if-seq", |
|
|
|
|
|
|
|
"-Wclippy::useless-transmute", |
|
|
|
|
|
|
|
"-Wclippy::verbose-bit-mask", |
|
|
|
"-Wclippy::verbose-bit-mask", |
|
|
|
"-Wclippy::verbose-file-reads", |
|
|
|
"-Wclippy::verbose-file-reads", |
|
|
|
"-Wclippy::wildcard-dependencies", |
|
|
|
"-Wclippy::wildcard-dependencies", |
|
|
|
"-Wclippy::zero-sized-map-values", |
|
|
|
"-Wclippy::zero-sized-map-values", |
|
|
|
"-Wclippy::wrong-self-convention", |
|
|
|
|
|
|
|
] |
|
|
|
] |