about summary refs log tree commit diff
path: root/tests
AgeCommit message (Collapse)AuthorLines
2019-03-26Hacky rustupOliver Scherer-96/+55
2019-03-23Change explicit_counter_loop's message to add parentheses if necessaryrail-3/+18
2019-03-23Change explicit_counter_loop's message to reflect original variable namerail-4/+4
2019-03-19cargo fmtPhilipp Hansch-14/+12
2019-03-19Add rustfix tests for mistyped_literal_suffix lintPhilipp Hansch-92/+126
This moves all `mistyped_literal_suffix` tests to their own file and enables rustfix tests for them. cc #3603, #2038 Based on #3887
2019-03-19Move some `unreadable_literal` ui tests to correct filePhilipp Hansch-48/+52
The moved tests were part of `tests/ui/literals.rs` before. Now they are placed in `tests/ui/unreadable_literal.rs`, which now also runs `rustfix` on these 4 extra let statements.
2019-03-15Auto merge of #3886 - phansch:rustfix_useless_asref, r=flip1995bors-12/+152
Enable rustfix for `useless_asref` lint tests cc #3630
2019-03-15Enable rustfix for `useless_asref` lint testsPhilipp Hansch-12/+152
2019-03-15Auto merge of #3883 - daxpedda:missing_docs_in_private_items, r=phanschbors-0/+20
Add `doc(include = ...)` detection to `missing_docs_in_private_items` The whole `missing documentation in crate` part doesn't have any tests. If I should add test cases tell me.
2019-03-14Another test for missing crate documentation.daxpedda-0/+15
2019-03-14Add a test for `doc(include)`daxpedda-0/+5
Tiny code improvement.
2019-03-14Auto merge of #3879 - phansch:rustfix_string_lit_as_bytes, r=flip1995bors-36/+61
Run rustfix for string_lit_as_bytes tests This moves the `string_lit_as_bytes` tests into a new file and enables rustfix tests for them. cc #3603, #2038
2019-03-14Auto merge of #3877 - rink1969:3842, r=flip1995bors-134/+190
casting integer literal to float is unnecessary fix issue https://github.com/rust-lang/rust-clippy/issues/3842
2019-03-14casting integer literal to float is unnecessaryrink1969-134/+190
2019-03-14UI test cleanup: Extract manual_memcpy testsPhilipp Hansch-182/+186
2019-03-14Run rustfix for string_lit_as_bytes testsPhilipp Hansch-36/+61
This moves the `string_lit_as_bytes` tests into a new file and enables rustfix tests for them.
2019-03-12Auto merge of #3869 - taiki-e:use_self, r=flip1995bors-4/+36
Fix `use_self` false positive on nested functions Related to https://github.com/rust-lang/rust-clippy/pull/3640 The current `use_self` warns the following code. ```rust #![warn(clippy::use_self)] struct Foo {} impl Foo { fn bar() { fn baz() -> Foo { //^ warning: unnecessary structure name repetition Foo {} //^ warning: unnecessary structure name repetition } } } ```
2019-03-12Auto merge of #3794 - mikerite:fix-3739, r=phanschbors-1/+27
Fix `boxed_local` suggestion Don't warn about an argument that is moved into a closure. ExprUseVisitor doesn't walk into nested bodies so use a new visitor that collects the variables that are moved into closures. Fixes #3739
2019-03-12Auto merge of #3871 - taiki-e:needless_continue, r=phanschbors-4/+110
Fix `needless_continue` false positive If the `continue` has a label, check it matches the label of the loop. Fixes https://github.com/rust-lang/rust-clippy/issues/2329
2019-03-12Merge branch 'master' into fix-3739Michael Wright-481/+909
2019-03-12Fix `needless_continue` false positiveTaiki Endo-4/+110
2019-03-11Fix `use_self` false positive on nested functionsTaiki Endo-4/+36
2019-03-11Filter out proc_macro and proc_macro_attributeTaiki Endo-0/+10
2019-03-10Run rustfmtflip1995-1/+0
2019-03-10Update testsflip1995-114/+108
2019-03-10Reblessed test outputs.Alexander Regueiro-3/+3
2019-03-10Addressed points raised in review.Alexander Regueiro-6/+7
2019-03-10Various cosmetic improvements.Alexander Regueiro-145/+163
2019-03-09Move get_unwrap to restrictionManish Goregaokar-14/+20
fixes #3862
2019-03-07fix missing a semicolonrchaser53-6/+33
2019-03-07Enable rustfix on `unused_unit` testsMichael Wright-11/+58
2019-03-07Add `[rustfmt::skip]` to `unused_unit` testMichael Wright-7/+9
2019-03-07Add `[rustfmt::skip]` to `doc_markdown` testsMichael Wright-30/+32
2019-03-06Renamed: Cyclomatic Complexity -> Cognitive ComplexityFélix Fischer-85/+122
* Ran automatic naming update * Formalized rename of `cyclomatic_complexity` to `cognitive_complexity` ** Added the rename to `lib.rs` ** Added rename test * Added warning for deprecated key `cyclomatic_complexity_threshold` and tests for it * Added deprecation status for Clippy's builtin attribute * Updated tests for new builtin attribute renaming
2019-03-06Ensure `expect_fun_call` bad suggestion is fixedMichael Wright-1/+13
Closes #3839
2019-03-05Fix missing_const_for_fn for impl trait methodsPhilipp Hansch-0/+9
2019-03-04Don't trigger missing_const_for_fn in external macrosPhilipp Hansch-0/+4
As reported in #3841. Only fixes the part where it triggers on the `derive`.
2019-02-28Add test for unknown Clippy attributesflip1995-0/+11
2019-02-28Add `rustfmt::skip` to `double_parens` testsMichael Wright-6/+9
2019-02-27Auto merge of #3666 - detrumi:map-or-on-non-copy, r=flip1995bors-34/+49
Only suggest map_or for copy types Fixes #2686
2019-02-27Add `rustfmt::skip` to outer attr format testsMichael Wright-6/+9
2019-02-26Auto merge of #3821 - g-bartoszek:redundant_closure-different-borrow-levels, ↵bors-0/+8
r=oli-obk do not trigger redundant_closure when there is a difference in borrow… … level between closure parameter and "self", fixes #3802
2019-02-26Fix false negativeWilco Kusee-34/+42
2019-02-26Attempt to fix false negativeWilco Kusee-1/+5
2019-02-26Only suggest map_or for copy typesWilco Kusee-33/+36
2019-02-26Auto merge of #3817 - rust-lang:fix-bool_comparison-on-non-bool, r=oli-obkbors-0/+36
Fix `bool_comparison` with non-`bool` expressions Fixes #3703. It just moves around the type check that was already there for some comparison to all of them, because if one type isn't `bool`, none of those comparison can be simplified.
2019-02-26do not trigger redundant_closure when there is a difference in borrow level ↵Grzegorz-0/+8
between closure parameter and "self"
2019-02-26Add [rustfmt::skip] to formatting lint testsMichael Wright-14/+17
2019-02-25Fix `bool_comparison` with non-`bool` expressionsmcarton-0/+36
2019-02-25Auto merge of #3808 - mikerite:useless-format-suggestions, r=oli-obkbors-34/+80
Fix `useless_format` suggestions