about summary refs log tree commit diff
path: root/clippy_lints/src
AgeCommit message (Collapse)AuthorLines
2019-04-08cargo fmtPhilipp Hansch-2/+3
2019-04-07Fix ICE in suspicious_else_formattingPhilipp Hansch-2/+2
2019-04-05use a multispan for MANY_SINGLE_CHAR_NAMESAndy Russell-28/+63
2019-04-04NFC: fix typosMatthias Krüger-2/+2
2019-04-03rustup https://github.com/rust-lang/rust/pull/59657Matthias Krüger-1/+1
commit: 4122d2221ec65232bc211a266d0796a4713e0d39
2019-04-02Add TransmutingNull LintFélix Fischer-13/+140
* Late Lint pass, catches: * One liner: 0 -> null -> transmute * One liner: std:null() -> transmute * Const (which resolves to null) -> transmute * UI Test case for Lint * Updated test for issue 3849, because now the lint that code generated is in Clippy. * Expanded `const.rs` miri-based Constant Folding code, to cover raw pointers
2019-04-01Rustup to https://github.com/rust-lang/rust/pull/58805Philipp Hansch-2/+1
2019-04-01Updated source to match with recent rustc `master` toolchain changesFélix Fischer-2/+4
2019-04-01Fix dogfood error of question_mark lint fixflip1995-3/+2
2019-04-01Fix question_mark lint+testflip1995-1/+8
2019-03-28use `span_lint_and_sugg` in `explicit_counter_loop`rail-7/+17
2019-03-26Fix some test failuresFélix Fischer-2/+1
2019-03-26Hacky rustupOliver Scherer-26/+34
2019-03-23run cargo fmtMatthias Krüger-4/+1
2019-03-23rustup https://github.com/rust-lang/rust/pull/59096/Matthias Krüger-17/+11
2019-03-23Change explicit_counter_loop's message to add parentheses if necessaryrail-1/+5
2019-03-23Change explicit_counter_loop's message to reflect original variable namerail-2/+4
2019-03-18Cargo fmtMateusz Mikuła-60/+58
2019-03-18Drop range_contains featureMateusz Mikuła-1/+0
2019-03-18Fix rustfmt::skip detectionMateusz Mikuła-1/+2
2019-03-18Rework clippy detection in attribute lintMateusz Mikuła-3/+4
2019-03-18name -> check_nameMateusz Mikuła-16/+16
2019-03-18span -> span()Mateusz Mikuła-3/+3
2019-03-18name -> ident_strMateusz Mikuła-3/+7
2019-03-18NestedMetaItemKind -> NestedMetaItemMateusz Mikuła-5/+5
2019-03-18Drop redundant &Mateusz Mikuła-1/+1
2019-03-18Fix path_qualifiedMateusz Mikuła-11/+17
As suggested by eddyb
2019-03-18Replace most of ty:Ty with TyMateusz Mikuła-18/+18
2019-03-16Feed dogflip1995-3/+4
2019-03-16Adapt paths to new formattingflip1995-12/+12
2019-03-16cargo fmtflip1995-25/+19
2019-03-16Use LocalInternedString inside of AbsolutePathPrinterflip1995-11/+14
2019-03-16AbsolutePathBuffer -> AbsolutePathPrinterflip1995-6/+6
2019-03-16Remove ty::TyKind from eta_reduction and replace it with ty::Tyflip1995-15/+15
2019-03-15parent_def_id -> parentflip1995-1/+2
2019-03-15item_path_str -> def_path_strflip1995-3/+3
2019-03-15Reimplement AbsolutePathBufferflip1995-34/+107
2019-03-15Auto merge of #3883 - daxpedda:missing_docs_in_private_items, r=phanschbors-2/+19
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-14Add a test for `doc(include)`daxpedda-3/+1
Tiny code improvement.
2019-03-14Add `doc(include = ...)` detection to `missing_docs_in_private_items`daxpedda-2/+21
2019-03-14Auto merge of #3877 - rink1969:3842, r=flip1995bors-1/+29
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-1/+29
2019-03-13Auto merge of #3873 - phansch:hiridification, r=flip1995bors-16/+15
Some more HirId-ification * 8a59f81: Rename span_lint_node* functions to span_lint_hir* * a457258: Use `HirId` instead of `NodeId` for lookup
2019-03-13cargo fmtPhilipp Hansch-2/+2
2019-03-12Auto merge of #3869 - taiki-e:use_self, r=flip1995bors-1/+2
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-2/+2
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-12Use `HirId` instead of `NodeId` for lookupPhilipp Hansch-2/+1
2019-03-12Auto merge of #3871 - taiki-e:needless_continue, r=phanschbors-14/+26
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-12Rename span_lint_node* functions to span_lint_hir*Philipp Hansch-14/+14
Because they now take a `hir_id` instead of a `node_id` argument.
2019-03-12Auto merge of #3865 - phansch:run_more_doc_tests, r=flip1995bors-52/+103
Run more doc tests This executes some more doc tests that were ignored before.