about summary refs log tree commit diff
path: root/clippy_lints/src/methods
AgeCommit message (Collapse)AuthorLines
2020-02-03improve 'iter_nth_zero' documentationAreredify-2/+3
2020-01-30Un-ignore most code blocks to render correctly on website, correct mistakesLudwig Stecher-21/+47
2020-01-30Fix code formatting for more lintsLudwig Stecher-9/+9
2020-01-30Fix syntax highlighting of code fenceLudwig Stecher-1/+1
The documentation for RESULT_EXPECT_USED includes this code: let res: Result<usize, ()> = Ok(1); res?; # Ok::<(), ()>(()) Because the code fence didn't start with `rust`, the code wasn't highlighted and the line starting with `#` was displayed on the website. This is now fixed.
2020-01-30Reformat code.xiongmao86-4/+4
2020-01-27Rename `span_note_and_lint` to `span_lint_and_note`Yuki Okushi-5/+5
2020-01-27Rename `span_help_and_lint` to `span_lint_and_help`Yuki Okushi-14/+14
2020-01-26Apply review commentsYuki Okushi-13/+13
2020-01-24Clean up `methods/mod.rs`Yuki Okushi-52/+52
2020-01-23add `option_as_ref_deref` lintAreredify-1/+102
2020-01-20Auto merge of #5067 - JohnTitor:lint-skip-while-next, r=flip1995bors-0/+43
Add `skip_while_next` lint Fixes #4036 changelog: Add `skip_while_next` lint
2020-01-20Apply review commentYuki Okushi-3/+7
2020-01-20Improve `suspicious_map`documentationYuki Okushi-2/+3
2020-01-20Add `skip_while_next` lintYuki Okushi-0/+39
2020-01-18Rustup to rust-lang/rust#68204Yuki Okushi-1/+1
2020-01-13Auto merge of #4543 - xiongmao86:issue4503, r=flip1995bors-0/+68
Fix issue4503 Fixes #4503. changelog: Add a lint checking user are using FileType.is_file() method and suggest using !FileType.is_dir(). - [x] Followed [lint naming conventions][lint_naming] - [x] Added passing UI tests (including committed `.stderr` file) - [x] `cargo test` passes locally - [x] Executed `./util/dev update_lints` - [x] Added lint documentation - [x] Run `./util/dev fmt`
2020-01-13Rustup to rust-lang/rust#68045Yuki Okushi-5/+6
2020-01-12Update lints again.xiongmao86-1/+1
2020-01-12Fix grammar error.xiongmao86-4/+4
2020-01-12Update clippy_lints/src/methods/mod.rsRui-1/+1
Co-Authored-By: Philipp Krones <hello@philkrones.com>
2020-01-12Change lint message.xiongmao86-6/+15
2020-01-12Fix documents and messages.Rui-4/+4
Update clippy_lints/src/methods/mod.rs
2020-01-12Extend spans to include !.xiongmao86-1/+1
2020-01-12Add lint logic.xiongmao86-0/+24
2020-01-12Declare lint.xiongmao86-0/+35
2020-01-11Rustup to rust-lang/rust#67806Yuki Okushi-3/+2
2020-01-09Rustup to rust-lang/rust#67979Yuki Okushi-8/+21
2020-01-07Normalize lint messagesYuki Okushi-13/+13
2020-01-07Rustup to rust-lang/rust#67886Yuki Okushi-16/+16
2020-01-04Add lint for iter.nth(0)Brad Sherman-4/+55
- Encourage iter.next() rather than iter.nth(0), which is less readable
2020-01-04Rustup to https://github.com/rust-lang/rust/pull/67853Philipp Hansch-3/+3
Specifically caused by https://github.com/rust-lang/rust/pull/67786
2020-01-04Remove use of `try!` from documentationYuki Okushi-2/+2
2019-12-31Rustup to rust-lang/rust#67707Yuki Okushi-1/+1
2019-12-30Auto merge of #4634 - m-ober:feature/2320-map-or, r=llogiqbors-25/+33
Add real suggestion to option_map_unwrap_or changelog: Add real suggestion to `option_map_unwrap_or` Fixes #2320
2019-12-30Rustup to rust-lang/rust#66942Yuki Okushi-6/+6
2019-12-28Add real suggestion to option_map_unwrap_orMicha Ober-25/+33
2019-12-27Rustup to rust-lang/rust#66936Yuki Okushi-84/+120
2019-12-22Add <'_> where necessaryflip1995-1/+1
2019-12-21rustup "Merge `ast::Mutability` and `mir::Mutability`"Lzu Tao-8/+6
2019-12-20Auto merge of #4920 - lily-commure:fix-unnecessary-filter-map-docs, r=phanschbors-2/+2
Fix documentation example for unnecessary_filter_map. Fixes #4919. changelog: none
2019-12-20Auto merge of #4913 - mikerite:step-by-zero-20191218, r=phanschbors-0/+35
Move `iterator_step_by_zero` and correct the documentation Move `iterator_step_by_zero` and correct the documentation. changelog: Corrected `iterator_step_by_zero` documentation
2019-12-19Fix documentation example for unnecessary_filter_map.Lily Chung-2/+2
2019-12-19Fix `expect_fun_call` false negative on referencesMichael Wright-1/+1
Closes #4912
2019-12-19Fix `iterator_step_by_zero` description in declarationmikerite-1/+1
Co-Authored-By: Phil Hansch <dev@phansch.net>
2019-12-18Correct `iterator_step_by_zero` documentationMichael Wright-7/+6
2019-12-18Update iterator_step_by_zeroMichael Wright-0/+36
Move `iterator_step_by_zero` into `methods` since it applies to all iterators and not just ranges. Simplify the code while doing so.
2019-12-04Rustup to rust-lang/rust#66878Matthias Krüger-1/+2
2019-11-28Rollup merge of #4847 - rust-lang:offest, r=phanschPhil Hansch-1/+1
fixing a typo changelog: none
2019-11-28make use of Result::map_orLzu Tao-7/+5
2019-11-27Add BorrowKind::RefManish Goregaokar-3/+3