diff options
Diffstat (limited to 'tests/lint.txt')
-rw-r--r-- | tests/lint.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/lint.txt b/tests/lint.txt index e4c9f98..a258fb8 100644 --- a/tests/lint.txt +++ b/tests/lint.txt @@ -59,6 +59,7 @@ Lint checks provided by rustc: drop-bounds warn bounds of the form `T: Drop` are useless ellipsis-inclusive-range-patterns warn `...` range patterns are deprecated exported-private-dependencies warn public interface leaks type from a private dependency + function-item-references warn suggest casting to a function pointer when attempting to take references to function items 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 @@ -72,6 +73,7 @@ Lint checks provided by rustc: 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 nontrivial-structural-match warn constant used in pattern of non-structural-match type and the constant's initializer expression contains values of non-structural-match types + non-autolinks warn detects URLs that could be written using only angle brackets 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 non-snake-case warn variables, methods, functions, lifetime parameters and modules should have snake case names @@ -79,17 +81,20 @@ Lint checks provided by rustc: no-mangle-generic-items warn generic items must be mangled overlapping-patterns warn detects overlapping patterns path-statements warn path statements with no effect + private-intra-doc-links warn linking from a public item to a private one private-in-public warn detect private items in public interfaces not caught by the old implementation proc-macro-derive-resolution-fallback warn detects proc macro derives using inaccessible names from parent modules redundant-semicolons warn detects unnecessary trailing semicolons renamed-and-removed-lints warn lints that have been renamed or removed safe-packed-borrows warn safe borrows of fields of packed structs were erroneously allowed stable-features warn stable features found in `#[feature]` directive + temporary-cstring-as-ptr warn detects getting the inner pointer of a temporary `CString` trivial-bounds warn these bounds don't depend on an type parameters type-alias-bounds warn bounds in type aliases are not enforced tyvar-behind-raw-pointer warn raw pointer to an inference variable uncommon-codepoints warn detects uncommon Unicode codepoints in identifiers unconditional-recursion warn functions that cannot return without calling themselves + uninhabited-static warn uninhabited static unknown-lints warn unrecognized lint attribute unnameable-test-items warn detects an item that cannot be named being marked as `#[test_case]` unreachable-code warn detects unreachable code paths @@ -130,6 +135,7 @@ Lint checks provided by rustc: soft-unstable deny a feature gate that doesn't break dependent crates unconditional-panic deny operation will cause a panic at runtime unknown-crate-types deny unknown crate type found in `#[crate_type]` directive + useless-deprecated deny detects deprecation attributes with no effect Lint groups provided by rustc: @@ -137,11 +143,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, 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, pointer-structural-match, nontrivial-structural-match, soft-unstable, cenum-impl-drop-cast, const-evaluatable-unchecked, 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, 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, pointer-structural-match, nontrivial-structural-match, soft-unstable, cenum-impl-drop-cast, const-evaluatable-unchecked, uninhabited-static, 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 broken-intra-doc-links, private-intra-doc-links, invalid-codeblock-attributes, missing-doc-code-examples, private-doc-tests, invalid-html-tags + rustdoc non-autolinks, broken-intra-doc-links, private-intra-doc-links, invalid-codeblock-attributes, missing-doc-code-examples, private-doc-tests, invalid-html-tags 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 |