diff options
Diffstat (limited to 'tests/lint.txt')
-rw-r--r-- | tests/lint.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/lint.txt b/tests/lint.txt index 5110d4b..4205786 100644 --- a/tests/lint.txt +++ b/tests/lint.txt @@ -13,7 +13,6 @@ Lint checks provided by rustc: absolute-paths-not-starting-with-crate allow fully qualified paths that start with a module name instead of `crate`, `self`, or an extern crate name anonymous-parameters allow detects anonymous parameters box-pointers allow use of owned (Box type) heap memory - confusable-idents allow detects visually confusable pairs between identifiers deprecated-in-future allow detects use of items that will be deprecated in a future version elided-lifetimes-in-paths allow hidden lifetime parameters in types are deprecated explicit-outlives-requirements allow outlives requirements can be inferred @@ -47,20 +46,25 @@ Lint checks provided by rustc: asm-sub-register warn using only a subset of a register for inline asm inputs bare-trait-objects warn suggest using `dyn Trait` for trait objects bindings-with-variant-name warn detects pattern bindings with the same name as one of the matched variants + cenum-impl-drop-cast warn a C-like enum implementing Drop is cast + clashing-extern-declarations warn detects when an extern fn has been declared with the same name but different types coherence-leak-check warn distinct impls distinguished only by the leak-check code + confusable-idents warn detects visually confusable pairs between identifiers dead-code warn detect unused, unexported items deprecated warn detects use of deprecated items ellipsis-inclusive-range-patterns warn `...` range patterns are deprecated exported-private-dependencies warn public interface leaks type from a private dependency illegal-floating-point-literal-pattern warn floating-point literals cannot be used in patterns improper-ctypes warn proper use of libc types in foreign modules + improper-ctypes-definitions warn proper use of libc types in foreign item definitions incomplete-features warn incomplete features that may function improperly in some or all cases inline-no-sanitize warn detects incompatible use of `#[inline(always)]` and `#[no_sanitize(...)]` intra-doc-link-resolution-failure warn failures in resolving intra-doc link targets - invalid-codeblock-attribute warn codeblock attribute looks a lot like a known one + invalid-codeblock-attributes warn codeblock attribute looks a lot like a known one invalid-value warn an invalid value is being created (such as a NULL reference) irrefutable-let-patterns warn detects irrefutable patterns in if-let and while-let statements late-bound-lifetime-arguments warn detects generic lifetime arguments in path segments with late bound lifetime parameters + mixed-script-confusables warn detects Unicode scripts whose mixed script confusables codepoints are solely used mutable-borrow-reservation-conflict warn reservation of a two-phased borrow conflicts with other shared borrows non-camel-case-types warn types, variants, traits and type parameters should have camel case names non-shorthand-field-patterns warn using `Struct { x: x }` instead of `Struct { x }` in a pattern @@ -128,11 +132,11 @@ Lint groups provided by rustc: name sub-lints ---- --------- warnings all lints that are set to issue warnings - future-incompatible keyword-idents, anonymous-parameters, illegal-floating-point-literal-pattern, private-in-public, pub-use-of-private-extern-crate, invalid-type-param-default, safe-packed-borrows, patterns-in-fns-without-body, missing-fragment-specifier, late-bound-lifetime-arguments, order-dependent-trait-objects, coherence-leak-check, tyvar-behind-raw-pointer, absolute-paths-not-starting-with-crate, unstable-name-collisions, where-clauses-object-safety, proc-macro-derive-resolution-fallback, macro-expanded-macro-exports-accessed-by-absolute-paths, ill-formed-attribute-input, conflicting-repr-hints, ambiguous-associated-items, mutable-borrow-reservation-conflict, indirect-structural-match, soft-unstable, array-into-iter + future-incompatible keyword-idents, anonymous-parameters, illegal-floating-point-literal-pattern, private-in-public, pub-use-of-private-extern-crate, invalid-type-param-default, safe-packed-borrows, patterns-in-fns-without-body, missing-fragment-specifier, late-bound-lifetime-arguments, order-dependent-trait-objects, coherence-leak-check, tyvar-behind-raw-pointer, absolute-paths-not-starting-with-crate, unstable-name-collisions, where-clauses-object-safety, proc-macro-derive-resolution-fallback, macro-expanded-macro-exports-accessed-by-absolute-paths, ill-formed-attribute-input, conflicting-repr-hints, ambiguous-associated-items, mutable-borrow-reservation-conflict, indirect-structural-match, soft-unstable, cenum-impl-drop-cast, array-into-iter nonstandard-style non-camel-case-types, non-snake-case, non-upper-case-globals rust-2018-compatibility keyword-idents, anonymous-parameters, tyvar-behind-raw-pointer, absolute-paths-not-starting-with-crate rust-2018-idioms bare-trait-objects, unused-extern-crates, ellipsis-inclusive-range-patterns, elided-lifetimes-in-paths, explicit-outlives-requirements - rustdoc intra-doc-link-resolution-failure, invalid-codeblock-attribute, missing-doc-code-examples, private-doc-tests + rustdoc intra-doc-link-resolution-failure, invalid-codeblock-attributes, missing-doc-code-examples, private-doc-tests unused unused-imports, unused-variables, unused-assignments, dead-code, unused-mut, unreachable-code, unreachable-patterns, overlapping-patterns, unused-must-use, unused-unsafe, path-statements, unused-attributes, unused-macros, unused-allocation, unused-doc-comments, unused-extern-crates, unused-features, unused-labels, unused-parens, unused-braces, redundant-semicolons |