about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2019-08-15Auto merge of #4382 - jeremystucki:unnecessary_fold_span, r=flip1995bors-23/+44
Change span of unnecessary_fold lint Resolves #4381 changelog: Change linted span of `unnecessary_fold`
2019-08-15Auto merge of #4348 - phansch:deprecate-unused-unused-collect, r=flip1995bors-98/+45
Deprecate unused_collect lint I found this because we only had two test cases in total for this lint. It turns out the functionality is fully covered by rustc these days. [Playground Examples](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=eb8ee6db389c77180c9fb152d3c608f4) changelog: Deprecate `unused_collect` lint. This is fully covered by rustc's `#[must_use]` on `collect` cc #2846
2019-08-15Auto merge of #4389 - flip1995:allow_win_failures, r=phanschbors-1/+4
Allow windows failures on travis The windows build breaks about every second travis run. Let's disable it, until we got a fix. changelog: none
2019-08-15Allow failures on the travis windows build againflip1995-1/+4
2019-08-15Auto merge of #4388 - flip1995:rustup, r=phanschbors-56/+43
Rustup Supersedes #4387 and #4385 This removes tests with the `try!` macro in them completely. There is no need for Clippy to support the `try!` macro, since it is deprecated now. [`StmtKind`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/hir/enum.StmtKind.html) got a new variant [`Semi`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/hir/enum.StmtKind.html#variant.Semi), which Just Works with the `author` lint. Nice. changelog: none
2019-08-15Rustup to rust-lang/rust#62984flip1995-6/+16
Lint redundant_semicolon was added to rustc
2019-08-15Rustup to rust-lang/rust#62672flip1995-43/+21
try macro is deprecated now, so Clippy will drop the support for it also
2019-08-15Rustup to rust-lang/rust#63543flip1995-7/+6
2019-08-14Deprecate unused_collect lintPhilipp Hansch-98/+45
I found this because we only had two test cases in total for this lint. It turns out the functionality is fully covered by rustc these days. [Playground Examples](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=eb8ee6db389c77180c9fb152d3c608f4) changelog: Deprecate `unused_collect` lint. This is fully covered by rustc's `#[must_use]` on `collect` cc #2846
2019-08-14Auto merge of #4383 - phansch:update_changelog, r=Manishearthbors-5/+34
Update changelog for Rust 1.37 Also updates the rest of the changelog wrt. to the latest releases and commit hashes. changelog: none [Rendered](https://github.com/phansch/rust-clippy/blob/update_changelog/CHANGELOG.md#rust-137)
2019-08-14Fix links to lints in changelogPhilipp Hansch-4/+4
2019-08-14Remove unused importJeremy Stucki-1/+1
2019-08-14Update changelog for Rust 1.37Philipp Hansch-5/+34
Also updates the rest of the changelog wrt. to the latest releases.
2019-08-14Update testsJeremy Stucki-10/+10
2019-08-14Use different spanJeremy Stucki-11/+10
2019-08-14Add multiline testJeremy Stucki-1/+23
2019-08-14Auto merge of #4379 - matthiaskrgr:url_dep, r=phanschbors-1/+1
update url dependency from 1.7.0 to 2.1.0 changelog: none
2019-08-14Auto merge of #4363 - phansch:fix_lint_deprecation, r=flip1995bors-39/+156
Update lint deprecation for tool lints changelog: Allow tool lints (`clippy::*`) to be deprecated Our lint deprecation previously didn't work for tool lints, because `register_removed` was registering lints to be removed _without_ the `clippy` prefix. Fixes #4349
2019-08-14update url dependency from 1.7.0 to 2.1.0Matthias Krüger-1/+1
2019-08-14Auto merge of #4369 - mikerite:fix-4293, r=flip1995bors-160/+118
Fix `wrong_self_convention` issue Resolves #4293 changelog: Fix `wrong_self_convention` issue
2019-08-14Auto merge of #4231 - jeremystucki:flat-map, r=flip1995bors-2/+131
Implement flat_map lint Fixes #4224 changelog: New Lint `flat_map_identity` to detect unnecessary calls to `flat_map`
2019-08-14Auto merge of #4378 - flip1995:ui-toml, r=flip1995bors-2/+2
Update ui-toml tests changelog: none
2019-08-14Update ui-toml testsflip1995-2/+2
2019-08-14Merge branch 'origin/master' into flat-mapJeremy Stucki-28/+68
2019-08-13Update testJeremy Stucki-10/+12
2019-08-13Use correct spanJeremy Stucki-1/+1
2019-08-13Add 'unnecessary_flat_map.fixed'Jeremy Stucki-0/+13
2019-08-12Run 'update_lints'Jeremy Stucki-2/+3
2019-08-12Use 'span_lint_and_sugg'Jeremy Stucki-11/+21
2019-08-12Minor refactoringJeremy Stucki-27/+22
2019-08-12Add deprecation tests for deprecated tool lintsPhilipp Hansch-0/+55
2019-08-12Move old lint deprecation tests to deprecated_old.rsPhilipp Hansch-40/+46
2019-08-12Fix invalid_ref deprecationPhilipp Hansch-1/+6
2019-08-12Keep old deprecated lints deprecated as non-tool, tooPhilipp Hansch-6/+56
2019-08-12Update lint deprecation for tool lintsPhilipp Hansch-37/+38
Our lint deprecation previously didn't work for tool lints, because `register_removed` was registering lints to be removed _without_ the `clippy` prefix.
2019-08-12Further text improvementsPhilipp Hansch-4/+10
2019-08-12Auto merge of #4373 - flip1995:filter_changelog_none, r=phanschbors-1/+6
Filter out PRs with changelog: none cc #4372 Filtering out the `changelog: none` merge commits, to unclutter the output. changelog: none
2019-08-12Change lint type from 'pedantic' → 'complexity'Jeremy Stucki-1/+1
2019-08-12Filter out PRs with changelog: noneflip1995-1/+6
2019-08-12Run 'update_lints'Jeremy Stucki-1/+1
2019-08-12Auto merge of #4365 - lukas-code:async_new_ret_no_self, r=flip1995bors-26/+54
new_ret_no_self: allow Self in inner type for impl Trait return types Check the inner types of associated types of a trait when checking for Self in the return type of a `new` method. This means that the following will no longer warn: ```rust trait Trait { type Inner; } struct S; impl S { fn new() -> impl Trait<Inner = Option<Self>> { struct TraitImpl; impl Trait for TraitImpl { type Inner = Option<S>; } TraitImpl } } ``` ```rust #![feature(async_await)] struct Connection; impl Connection { async fn new() -> Result<Self, ()> { Ok(S) } } ``` closes #4359 changelog: fix `new_ret_no_self` lint for async `new` functions.
2019-08-12Add imagePhilipp Hansch-1/+1
2019-08-12Auto merge of #4367 - flip1995:doc_edition_2018_tests, r=phanschbors-0/+7
Document how to write tests requiring the 2018 edition [Rendered](https://github.com/flip1995/rust-clippy/blob/doc_edition_2018_tests/doc/adding_lints.md#Edition-2018-tests) cc #4365 changelog: none
2019-08-11Update rustdocJeremy Stucki-2/+4
2019-08-11Refactor if_chainJeremy Stucki-24/+25
Co-authored-by: Philipp Krones <hello@philkrones.com>
2019-08-11Auto merge of #4370 - vallentin:master, r=flip1995bors-1/+1
Fixed repeated word changelog: none
2019-08-11Rename 'flat_map' → 'flat_map_identity'Jeremy Stucki-11/+15
2019-08-11Handle calls with 'std::convert::identity'Jeremy Stucki-3/+33
2019-08-11Merge branch 'origin/master' into flat-mapJeremy Stucki-1571/+3333
2019-08-11Fixed repeated wordVallentin-1/+1