about summary refs log tree commit diff
path: root/tests/ui/methods.rs
AgeCommit message (Collapse)AuthorLines
2019-12-28Add real suggestion to option_map_unwrap_orMicha Ober-76/+0
2019-10-18Split out testsHeinz N. Gies-10/+4
2019-10-18Add expectHeinz N. Gies-1/+7
Co-Authored-By: Philipp Krones <hello@philkrones.com>
2019-10-15Change lint to be pedanticJames Wang-0/+1
2019-10-14new lints around `#[must_use]` fnsAndre Bogus-5/+6
`must_use_unit` lints unit-returning functions with a `#[must_use]` attribute, suggesting to remove it. `double_must_use` lints functions with a plain `#[must_use]` attribute, but which return a type which is already `#[must_use]`, so the attribute has no benefit. `must_use_candidate` is a pedantic lint that lints functions and methods that return some non-unit type that is not already `#[must_use]` and suggests to add the annotation.
2019-09-03Try to fix .fixedBO41-1/+1
2019-08-29Dereference one less on search_is_some and make it auto-fixableBO41-0/+4
2019-08-20Remove feature gate for async_awaitLzu Tao-1/+0
2019-08-09fixed tests (again) and added a test that should actually cause a warning ↵Lukas Markeffsky-2/+9
for new_ret_no_self
2019-08-09removed unused imports #2Lukas Markeffsky-1/+0
2019-08-09removed unused importsLukas Markeffsky-3/+1
2019-08-09upgrade test to rust 2018Lukas Markeffsky-9/+4
2019-08-09new_ret_no_self: walk associated types in impl Trait return typesLukas Markeffsky-0/+18
2019-08-01UI Test Cleanup: No wrong_self_convention in methods.rsPhilipp Hansch-1/+2
These cases are already covered in `tests/ui/wrong_self_convention.rs`. cc #2038
2019-06-02Fix .map(..).unwrap_or_else(..) bad suggestionMichael Wright-0/+15
Closes #4144
2019-05-12Move ctor tests from methods.rs to or_fun_calls.rsMichael Wright-18/+0
2019-04-23Add testManish Goregaokar-0/+18
2019-04-18Add run-rustfix for option_map_or_none lintPhilipp Hansch-10/+0
2019-04-11UI test cleanup: Extract iter_nth testsPhilipp Hansch-45/+0
2019-04-11UI test cleanup: Extract or_fun_call testsPhilipp Hansch-63/+0
2019-03-10Various cosmetic improvements.Alexander Regueiro-42/+44
2019-02-26Attempt to fix false negativeWilco Kusee-1/+5
2019-02-26Only suggest map_or for copy typesWilco Kusee-0/+3
2019-02-22rustfmt tests/ui/methods.rsMichael Wright-27/+74
2019-02-22Add `#[rustfmt::skip]` to methods testsMichael Wright-0/+3
Many people run rustfmt automatically on save. Format-dependent tests should be marked with `#[rustfmt::skip]` to prevent accidental reformatting from this. As a bonus the rest of the code can the formatted.
2019-01-08Remove all copyright license headersPhilipp Hansch-9/+0
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2019-01-02Use compiletest's aux-build header instead of include macroPhilipp Hansch-1/+6
2019-01-02Extract IteratorFalsePositives into option_helpers.rsPhilipp Hansch-36/+0
This was previously duplicated in #3605
2019-01-02UI test cleanup: Extract lint from methods.rs testPhilipp Hansch-30/+2
2018-12-30UI test cleanup: Extract iter_skip_next from methods.rsPhilipp Hansch-12/+0
cc #2038
2018-12-28Merge new_without_default_derive into new_without_defaultRussell Greene-1/+0
2018-12-09add rustfmt::skip attributes to some testsMatthias Krüger-7/+14
2018-11-02UI test cleanup: Extract expect_fun_call testsPhilipp Hansch-55/+0
Note that the new stderr file does not include a `shadow-unrelated` error, because the new UI test file does not use `#![warn(clippy::all)]`
2018-10-13Removed new_ret_no_self tests from method.rsJosh Mcguigan-2/+2
2018-10-11Stabilize tool lintsOliver Scherer-1/+1
2018-10-10Fix #2937Michael Wright-1/+4
2018-10-06Add license header to Rust filesManish Goregaokar-0/+10
2018-09-10Don't use the old feature gateOliver Schneider-4/+4
2018-08-29Adapt ui-tests to the tool_lintsflip1995-7/+7
2018-08-02Fix #2979Michael Wright-0/+4
2018-07-15Fix #2894Michael Wright-1/+1
2018-06-14Fix some existing test expectationsDaniel Wagner-Hall-1/+2
2018-06-04Adding handling and tests for custom type with implemented expect methodDonald Robertson-0/+19
2018-06-04Warn if non-trivial work is done inside .expectDonald Robertson-0/+29
- added tests for common usages of format and as_str arguments to expect - added tests for usages of Option and Result types - given performance impact of passing non literal expressions to expect, added to perf group
2018-04-12Move unnecessary_fold UI tests to separate filePhilipp Hansch-39/+0
2018-03-28Update test suiteOliver Schneider-1/+1
2018-01-22Fix unnecessary_fold bugPhil Ellison-0/+3
2018-01-17Fix bug. Don't expect lint when acc is on rhsPhil Ellison-7/+10
2018-01-17Lint on folds implementing .all, .sum and .productPhil Ellison-12/+25
2018-01-16Fix error span to play nicely with rustfixPhil Ellison-0/+5