about summary refs log tree commit diff
path: root/clippy_lints/src/swap.rs
AgeCommit message (Collapse)AuthorLines
2020-01-13Rustup to rust-lang/rust#68045Yuki Okushi-1/+1
2020-01-11Rustup to rust-lang/rust#67806Yuki Okushi-3/+2
2020-01-07Rustup to rust-lang/rust#67886Yuki Okushi-1/+1
2019-12-31Rustup to rust-lang/rust#67707Yuki Okushi-1/+1
2019-12-27Rustup to rust-lang/rust#66936Yuki Okushi-5/+5
2019-12-24rustup "Add span information to `ExprKind::Assign`"Lzu Tao-4/+4
2019-12-04Rustup to rust-lang/rust#66878Matthias Krüger-1/+2
2019-12-03Fix rustdoc examplesflip1995-0/+2
2019-12-03Make manual_swap autofixableflip1995-6/+7
2019-12-03Formattingflip1995-25/+34
2019-12-03Fix FP in manual_swap lint with slice-like typesflip1995-24/+55
2019-09-27Rustup to rust-lang/rust#64813flip1995-15/+15
2019-09-26Rustup https://github.com/rust-lang/rust/pull/64513Lzu Tao-2/+2
2019-09-11Auto merge of #4478 - tsurai:master, r=flip1995bors-0/+8
Fix incorrect swap suggestion Clippy suggests using swap on fields belonging to the same owner causing two mutable borrows of the owner. Disclosure: This is my first time working with clippy and rusts HIR. I'm very grateful for assistance and suggestions to improve the PR. fixes #981 changelog: Fix false positive in `manual_swap` lint
2019-09-11run rustfmtMatthias Krüger-2/+2
2019-09-09Use diagnostic item forAndre Bogus-2/+4
2019-08-31Fix incorrect swap suggestionCristian Kubis-0/+8
Clippy suggests using swap on fields belonging to the same owner causing two mutable borrows of the owner Fixes #981 Signed-off-by: Cristian Kubis <cristian.kubis@tsunix.de>
2019-08-22Add examples to some correctness lintsBO41-0/+6
2019-08-02Doctests: Fix all complexity lint docsPhilipp Hansch-0/+5
cc #4319
2019-05-17Prevent symbocalypseOliver Scherer-2/+2
2019-05-14Use symbols instead of stringsOliver Scherer-2/+2
2019-04-17Use lint pass macrosMatthew Kraai-13/+2
Fixes #3917.
2019-03-12Run more doc testsPhilipp Hansch-2/+4
This executes some more doc tests that were ignored before.
2019-03-05move lint documentation into macro invocationsAndy Russell-28/+28
2019-02-03Fix breakage due to rust-lang/rust#58079Michael Wright-1/+1
The rustc change added HirId to a few nodes. As I understand it, the plan is to remove the NodeId from these nodes eventually. Where the NodeId was not being matched, I used `..` to try and avoid further breakage. Where it was, I used `_` to make the fix easier when NodeId is removed.
2019-01-27rustup https://github.com/rust-lang/rust/pull/57907/Matthias Krüger-2/+2
for file in `fd \.rs$` ; do sed -i s/span_suggestion_with_applicability/span_suggestion/g $file ; done for file in `fd \.rs$` ; do sed -i s/span_suggestion_short_with_applicability/span_suggestion_short/g $file ; done for file in `fd \.rs$` ; do sed -i s/span_suggestions_with_applicability/span_suggestions/g $file ; done
2019-01-27rustup https://github.com/rust-lang/rust/pull/57726Matthias Krüger-0/+4
2019-01-20Fixed breakage due to rust-lang/rust#57489Michael Wright-6/+5
2019-01-08Remove all copyright license headersPhilipp Hansch-9/+0
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2018-12-29Remove crate:: prefixes from crate pathsKonrad Borowski-5/+5
This is somewhat misleading, as those are actually external crates, and don't need a crate:: prefix.
2018-11-27Run rustfmt on clippy_lintsflip1995-6/+7
2018-10-06Add license header to Rust filesManish Goregaokar-0/+10
2018-09-20Fill in Applicability from review comments by @flip1995Vitaly _Vi Shukela-1/+1
2018-09-20Fix indentsVitaly _Vi Shukela-12/+14
2018-09-20Use span_suggestion_with_applicability instead of span_suggestionVitaly _Vi Shukela-3/+15
2018-09-15Replace another occurrence of "".to_owned()flip1995-1/+1
2018-09-15convert "".to_string() and "".to_owned() to String::new()Matthias Krüger-2/+2
2018-09-15Reintroduce `extern crate` for non-Cargo dependencies.Eduard-Mihai Burtescu-4/+4
2018-08-29Switch to declare_tool_lint macroflip1995-1/+1
2018-08-28Update imports and rustupOliver Schneider-1/+1
2018-08-24add how-to example for std::mem::transmute() usage instead of manual swapMatthias Krüger-0/+4
2018-08-22rustup, fix breakage introduced by https://github.com/rust-lang/rust/pull/53581Matthias Krüger-2/+2
2018-07-23RustupOliver Schneider-3/+3
2018-07-20Remove import of if_chainManish Goregaokar-0/+1
2018-07-19Remove import of matchesManish Goregaokar-0/+1
2018-07-19Remove import of rustcManish Goregaokar-0/+1
2018-07-16Update for hir renamings in rustcOliver Schneider-2/+2
2018-07-16StmtKindcsmoe-5/+5
2018-07-16TyKindcsmoe-1/+1
2018-07-16ExprKindcsmoe-7/+7