about summary refs log tree commit diff
path: root/tests/ui/needless_pass_by_value.rs
AgeCommit message (Collapse)AuthorLines
2019-11-07rustup improper_ctypes: `extern "C"` fnsLzu Tao-2/+3
2019-10-03Test fixesShotaro Yamada-1/+2
2019-04-01Run rustfmtflip1995-1/+1
2019-02-06Fix ICE in needless_pass_by_value lintPhilipp Hansch-1/+12
If I understand it correctly, we were first creating a type with a `RegionKind::ReErased` region and then deleted it again in `util::implements_trait` with: cx.tcx.erase_regions(&ty); causing the type query to fail. It looks like using `ReEmpty` works around that deletion.
2019-01-08Remove all copyright license headersPhilipp Hansch-9/+0
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2018-12-09rustfmt testsMatthias Krüger-14/+14
2018-10-17Rename if_let_redundant_pattern_matching to redundant_pattern_matchingCYBAI-1/+1
Also, making the old one deprecated
2018-10-11Stabilize tool lintsOliver Scherer-1/+1
2018-10-06Add license header to Rust filesManish Goregaokar-0/+10
2018-10-01Fix 'impossible case reached' ICEPhilipp Hansch-0/+10
2018-08-29Adapt ui-tests to the tool_lintsflip1995-2/+4
2018-05-29Update to nightly 2018-05-28Mateusz Mikuła-7/+2
2018-01-19Merge branch 'master' into option_option_prMichael Wright-0/+27
2018-01-18Only suggest implementing Copy if it can actually be doneOliver Schneider-0/+17
2018-01-18needless_pass_by_value: Whitelist RangeArgument (fixes #2357)Manish Goregaokar-0/+7
2018-01-18needless_pass_by_value: Ignore for extern funcs (fixes #1844)Manish Goregaokar-0/+3
2017-12-26Implemented option_option lintMichael Wright-1/+1
2017-11-07Fix false positive in needless_pass_by_value trait methodssinkuu-0/+7
2017-11-03Add test to take `Self` as an argumentsinkuu-0/+1
2017-11-03Extend needless_pass_by_value to methodssinkuu-1/+24
2017-10-08Duplicate ptr_arg's suggestion logicsinkuu-0/+7
2017-10-08Reduce false-positives for needless_pass_by_value lintsinkuu-3/+16
Excluding a type whose reference also fulfills the trait bound.
2017-10-03Reduce the hackiness of cargo-clippyOliver Schneider-2/+2
2017-08-01Move all our tests back to ui testsOliver Schneider-0/+62
2017-05-17Make most tests an `example` so we can run them one by oneOliver Schneider-62/+0
2017-02-21Use `multispan_sugg`sinkuu-0/+2
2017-02-21Fix suggestion for `let <pat>`sinkuu-4/+6
2017-02-20Support non-moving usages at `match`sinkuu-3/+22
This `match` is not moving the `String`: ```rust fn foo(x: Option<String>) -> i32 { match x { Some(_) => 1, None => 2, } } ``` With this change, it will be linted and suggested to add `*` to deref it. ```rust fn foo(x: &Option<String>) -> i32 { match *x { Some(_) => 1, None => 2, } } ```
2017-02-20Rename lint to needless_take_by_valuesinkuu-0/+39
And fixes false-positives for generics and `match`