]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoAuto merge of #4409 - jeremystucki:export, r=phansch
bors [Fri, 23 Aug 2019 11:51:50 +0000 (11:51 +0000)]
Auto merge of #4409 - jeremystucki:export, r=phansch

[Doc] Ignore lines starting with #

Resolves #4353

changelog: none

4 years agoAuto merge of #4438 - lzutao:author-litstr-missing, r=phansch
bors [Fri, 23 Aug 2019 11:12:04 +0000 (11:12 +0000)]
Auto merge of #4438 - lzutao:author-litstr-missing, r=phansch

Add missing field to LitKind::Str

changelog: none

4 years agoAdd missing field to LitKind::Str
Lzu Tao [Fri, 23 Aug 2019 01:28:44 +0000 (08:28 +0700)]
Add missing field to LitKind::Str

4 years agoAuto merge of #4439 - lzutao:fix-format, r=phansch
bors [Fri, 23 Aug 2019 10:23:52 +0000 (10:23 +0000)]
Auto merge of #4439 - lzutao:fix-format, r=phansch

Re-factor format lint

cc #4432

changelog: none

4 years agoRun update_lints for Unicode lint
Lzu Tao [Fri, 23 Aug 2019 09:49:49 +0000 (09:49 +0000)]
Run update_lints for Unicode lint

4 years agoRe-add false positive check
Lzu Tao [Fri, 23 Aug 2019 08:46:23 +0000 (15:46 +0700)]
Re-add false positive check

4 years agoAdd raw string regression test for useless_format lint
Lzu Tao [Fri, 23 Aug 2019 08:01:41 +0000 (08:01 +0000)]
Add raw string regression test for useless_format lint

4 years agoRe-factor useless_format lint
Lzu Tao [Fri, 23 Aug 2019 05:26:24 +0000 (12:26 +0700)]
Re-factor useless_format lint

4 years agoMerge pull request #4440 from lzutao/fix-unicode
Philipp Hansch [Fri, 23 Aug 2019 07:39:11 +0000 (09:39 +0200)]
Merge pull request #4440 from lzutao/fix-unicode

Update Unicode lint tests

4 years agoUpdate Unicode lint tests
Lzu Tao [Fri, 23 Aug 2019 05:42:45 +0000 (05:42 +0000)]
Update Unicode lint tests

4 years agoAuto merge of #4372 - phansch:changelog_update, r=flip1995
bors [Wed, 21 Aug 2019 08:46:10 +0000 (08:46 +0000)]
Auto merge of #4372 - phansch:changelog_update, r=flip1995

docs: Explain how to update the changelog

cc @Manishearth Is this more or less how you did it last time?

[Rendered](https://github.com/phansch/rust-clippy/blob/changelog_update/doc/changelog_update.md#changelog-update)

changelog: none

4 years agoAuto merge of #4352 - phansch:fix_redundant_pattern_matching, r=flip1995
bors [Wed, 21 Aug 2019 08:15:36 +0000 (08:15 +0000)]
Auto merge of #4352 - phansch:fix_redundant_pattern_matching, r=flip1995

Fix some suggestions for redundant_pattern_matching

.. and change the Applicability to `MaybeIncorrect`.

Fixes the problem displayed in https://github.com/rust-lang/rust-clippy/issues/4344#issuecomment-519206388.

We now append `{}` to the suggestion so that the conditional has the
correct syntax again.

(If we were to _remove_ the `if` instead, it would trigger the
`unused_must_use` warning for `#[must_use]` types.)

changelog: Fix some suggestions for `redundant_pattern_matching`

4 years agoAuto merge of #4425 - mikerite:4375, r=flip1995
bors [Wed, 21 Aug 2019 07:25:58 +0000 (07:25 +0000)]
Auto merge of #4425 - mikerite:4375, r=flip1995

Fix `temporary_cstring_as_ptr` false negative

Fixes #4375.

Changes the check to test when `.unwrap().as_ptr()` is called on any
`Result<CString, _>` as suggested by @flip1995
(https://github.com/rust-lang/rust-clippy/issues/4375#issuecomment-520724123).

changelog: Fix `temporary_cstring_as_ptr` false negative

4 years agoAdd two more tests, allow 2 other lints.
Philipp Hansch [Wed, 21 Aug 2019 05:43:42 +0000 (07:43 +0200)]
Add two more tests, allow 2 other lints.

4 years agoFix `temporary_cstring_as_ptr` false negative
Michael Wright [Wed, 21 Aug 2019 05:35:04 +0000 (07:35 +0200)]
Fix `temporary_cstring_as_ptr` false negative

Fixes #4375.

Changes the check to test when `.unwrap().as_ptr()` is called on any
`Result<CString, _>` as suggested by @flip1995
(https://github.com/rust-lang/rust-clippy/issues/4375#issuecomment-520724123).

4 years agoAdd more testcases for redundant_pattern_matching
Philipp Hansch [Thu, 8 Aug 2019 19:27:50 +0000 (21:27 +0200)]
Add more testcases for redundant_pattern_matching

These should make sure that, when the suggestions are fixed, they are
fixed for all these cases.

4 years agoFix suggestions for redundant_pattern_matching
Philipp Hansch [Wed, 7 Aug 2019 18:34:23 +0000 (20:34 +0200)]
Fix suggestions for redundant_pattern_matching

Fixes the problem displayed in https://github.com/rust-lang/rust-clippy/issues/4344#issuecomment-519206388.

We now append `{}` to the suggestion so that the conditional has the
correct syntax again.

(If we were to _remove_ the `if` instead, it would trigger the
`unused_must_use` warning for `#[must_use]` types.

4 years agoAdd note on how to find the latest beta commit
Philipp Hansch [Wed, 21 Aug 2019 05:23:48 +0000 (07:23 +0200)]
Add note on how to find the latest beta commit

4 years agoAuto merge of #4423 - lzutao:await-is-stable, r=Manishearth
bors [Tue, 20 Aug 2019 23:26:12 +0000 (23:26 +0000)]
Auto merge of #4423 - lzutao:await-is-stable, r=Manishearth

Remove feature gate for async_await

async/await is stablized in https://github.com/rust-lang/rust/pull/63209 :tada:
changelog: none

4 years agoRemove feature gate for async_await
Lzu Tao [Tue, 20 Aug 2019 23:21:39 +0000 (23:21 +0000)]
Remove feature gate for async_await

4 years agoAuto merge of #4419 - lzutao:ifchain-link, r=phansch
bors [Tue, 20 Aug 2019 08:22:23 +0000 (08:22 +0000)]
Auto merge of #4419 - lzutao:ifchain-link, r=phansch

Update if_chain doc link

changelog: none

4 years agoAuto merge of #4401 - JJJollyjim:literal-separation-suggestion, r=flip1995
bors [Tue, 20 Aug 2019 07:54:25 +0000 (07:54 +0000)]
Auto merge of #4401 - JJJollyjim:literal-separation-suggestion, r=flip1995

Add autofixable suggestion for unseparated integer literal suffixes

changelog: Add autofixable suggestion for unseparated integer literal suffixes

Somewhat WIP, since I haven't been able to get this working when adding `// run-rustfix` to `ui/literals.rs`. I think the issue is that there are multiple suggestions operating on one numerical literal, and I'm not sure what the best approach is to work around that.

Thanks

4 years agoAuto merge of #4420 - phansch:disable_rls_integration_test, r=phansch
bors [Tue, 20 Aug 2019 05:33:23 +0000 (05:33 +0000)]
Auto merge of #4420 - phansch:disable_rls_integration_test, r=phansch

Disable RLS integration test

until RLS has been updated to the latest Clippy commit.

cc https://github.com/rust-lang/rust-clippy/pull/4416#issuecomment-522859091

changelog: none

4 years agoMerge pull request #4416 from SimonSapin/plugin
Philipp Hansch [Tue, 20 Aug 2019 05:28:59 +0000 (07:28 +0200)]
Merge pull request #4416 from SimonSapin/plugin

Import rustc_plugin from its new location

4 years agoDisable RLS integration test
Philipp Hansch [Tue, 20 Aug 2019 05:27:14 +0000 (07:27 +0200)]
Disable RLS integration test

until RLS has been updated to the latest Clippy commit.

4 years agoUpdate if_chain doc link
Lzu Tao [Tue, 20 Aug 2019 02:59:13 +0000 (09:59 +0700)]
Update if_chain doc link

4 years agoAuto merge of #4417 - kraai:remove-in_macro_or_desugar, r=phansch
bors [Mon, 19 Aug 2019 19:47:50 +0000 (19:47 +0000)]
Auto merge of #4417 - kraai:remove-in_macro_or_desugar, r=phansch

Remove in_macro_or_desugar

`in_macro_or_desugar` is just a wrapper around `Span::from_expansion`, so remove the former and call the latter instead.

changelog: Remove `in_macro_or_desugar`.

4 years agoRestore en dashes
KRAAI, MATTHEW [VISUS] [Mon, 19 Aug 2019 19:38:33 +0000 (12:38 -0700)]
Restore en dashes

4 years agoRemove in_macro_or_desugar
KRAAI, MATTHEW [VISUS] [Mon, 19 Aug 2019 16:30:32 +0000 (09:30 -0700)]
Remove in_macro_or_desugar

4 years agoImport rustc_plugin from its new location
Simon Sapin [Mon, 19 Aug 2019 15:51:39 +0000 (17:51 +0200)]
Import rustc_plugin from its new location

Depends on https://github.com/rust-lang/rust/pull/62727

4 years agoAuto merge of #4414 - chansuke:fix-contributing-doc, r=phansch
bors [Mon, 19 Aug 2019 10:29:11 +0000 (10:29 +0000)]
Auto merge of #4414 - chansuke:fix-contributing-doc, r=phansch

Fix the name of a channel of discord in CONTRIBUTING.md

Fixes #4400.

changelog: none

Update the naming of the Discord channel.

4 years agoFix the name of a channel of discord in CONTRIBUTING.md
chansuke [Mon, 19 Aug 2019 09:27:47 +0000 (18:27 +0900)]
Fix the name of a channel of discord in CONTRIBUTING.md

4 years agoRequested test cleanup
Jamie McClymont [Mon, 19 Aug 2019 08:22:42 +0000 (20:22 +1200)]
Requested test cleanup

4 years agoAuto merge of #4411 - mikerite:fix-4384, r=flip1995
bors [Mon, 19 Aug 2019 08:04:12 +0000 (08:04 +0000)]
Auto merge of #4411 - mikerite:fix-4384, r=flip1995

Fix `clone_on_copy` false positives

Closes #4384

changelog: Fix `clone_on_copy` false positives

4 years agoAuto merge of #4386 - lzutao:lint-option-and_then-some, r=flip1995
bors [Mon, 19 Aug 2019 07:35:53 +0000 (07:35 +0000)]
Auto merge of #4386 - lzutao:lint-option-and_then-some, r=flip1995

Add option_and_then_some lint

changelog: Add complexity lint to warn about `option.and_then(|o| Some(x))` and suggest replacing with `option.map(|o| x)`.

Closes #4299

4 years agoAuto merge of #4410 - matthiaskrgr:url_serde_feat, r=phansch
bors [Mon, 19 Aug 2019 06:20:01 +0000 (06:20 +0000)]
Auto merge of #4410 - matthiaskrgr:url_serde_feat, r=phansch

deps: try to fix build in rustc repo: enable serde feature url dep in clippy-lints crate

This might fix the problem in https://github.com/rust-lang/rust/pull/63587
I didn't have time to test this yet.
r? @flip1995
changelog: enable serde feature of url dep in clippy-lints to depened on it in the same way cargo does

4 years agoFix `clone_on_copy` false positives
Michael Wright [Mon, 19 Aug 2019 06:17:53 +0000 (08:17 +0200)]
Fix `clone_on_copy` false positives

Closes #4384

4 years agoAdd test
Lzu Tao [Mon, 19 Aug 2019 05:41:47 +0000 (05:41 +0000)]
Add test

4 years agotry to fix build in rustc repo
Matthias Krüger [Mon, 19 Aug 2019 04:10:00 +0000 (06:10 +0200)]
try to fix build in rustc repo

4 years agoAllow option_and_then_some in option_map_or_none test
Lzu Tao [Fri, 16 Aug 2019 02:42:07 +0000 (09:42 +0700)]
Allow option_and_then_some in option_map_or_none test

4 years agoAdd option_and_then_some lint
Lzu Tao [Thu, 15 Aug 2019 03:53:11 +0000 (10:53 +0700)]
Add option_and_then_some lint

4 years agoRequested changes
Jamie McClymont [Mon, 19 Aug 2019 02:18:05 +0000 (14:18 +1200)]
Requested changes

4 years agoAuto merge of #4403 - xd009642:type_repetition_improvements, r=phansch,flip1995
bors [Sun, 18 Aug 2019 21:03:21 +0000 (21:03 +0000)]
Auto merge of #4403 - xd009642:type_repetition_improvements, r=phansch,flip1995

Improvements to `type_repetition_in_bounds`

Improvements to the `type_repetition_in_bounds` trait based on feedback from #4380 #4326 #4323

Currently just make it pedantic. Hopefully, more to come

changelog: move `type_repetition_in_bounds` to `pedantic`

4 years agoAuto merge of #4404 - BO41:patch-1, r=flip1995
bors [Sun, 18 Aug 2019 20:34:25 +0000 (20:34 +0000)]
Auto merge of #4404 - BO41:patch-1, r=flip1995

Add "could be written as" example to MANUAL_MEMCPY

<!--
Thank you for making Clippy better!

We're collecting our changelog from pull request descriptions.
If your PR only updates to the latest nightly, you can leave the
`changelog` entry as `none`. Otherwise, please write a short comment
explaining your change.

If your PR fixes an issue, you can add "fixes #issue_number" into this
PR description. This way the issue will be automatically closed when
your PR is merged.

If you added a new lint, here's a checklist for things that will be
checked during review or continuous integration.

- [ ] Followed [lint naming conventions][lint_naming]
- [ ] Added passing UI tests (including committed `.stderr` file)
- [ ] `cargo test` passes locally
- [ ] Executed `./util/dev update_lints`
- [ ] Added lint documentation
- [ ] Run `./util/dev fmt`

[lint_naming]: https://rust-lang.github.io/rfcs/0344-conventions-galore.html#lints

Note that you can skip the above if you are just opening a WIP PR in
order to get feedback.

Delete this line and everything above before opening your PR -->

changelog: none

4 years agoIgnore lines starting with '#'
Jeremy Stucki [Sun, 18 Aug 2019 16:04:18 +0000 (18:04 +0200)]
Ignore lines starting with '#'

4 years agoRun update_lints
xd009642 [Sun, 18 Aug 2019 15:59:31 +0000 (16:59 +0100)]
Run update_lints

4 years agoAuto merge of #4394 - jeremystucki:suspicious_map, r=flip1995
bors [Sun, 18 Aug 2019 15:53:53 +0000 (15:53 +0000)]
Auto merge of #4394 - jeremystucki:suspicious_map, r=flip1995

Implement "suspicious_map" lint

Resolves #4010

changelog: New lint `suspicious_map`.

4 years agorun-rustfix for unseparated-prefix-literals
Jamie McClymont [Sun, 18 Aug 2019 14:52:59 +0000 (02:52 +1200)]
run-rustfix for unseparated-prefix-literals

4 years agoChange lint type to 'complexity'
Jeremy Stucki [Sun, 18 Aug 2019 14:49:11 +0000 (16:49 +0200)]
Change lint type to 'complexity'

4 years agoAdd autofixable suggestion for unseparated integer literal suffices
Jamie McClymont [Sat, 17 Aug 2019 05:10:10 +0000 (17:10 +1200)]
Add autofixable suggestion for unseparated integer literal suffices

4 years agoMerge branch 'origin/master' into suspicious_map
Jeremy Stucki [Sun, 18 Aug 2019 14:37:31 +0000 (16:37 +0200)]
Merge branch 'origin/master' into suspicious_map

4 years agoAuto merge of #4407 - mikerite:fix-breakage-20190818, r=flip1995
bors [Sun, 18 Aug 2019 12:52:35 +0000 (12:52 +0000)]
Auto merge of #4407 - mikerite:fix-breakage-20190818, r=flip1995

Fix breakage due to  rust-lang/rust#61708

Includes commits from #4406

changelog: none

4 years agoFix breakage due to rust-lang/rust#61708
Michael Wright [Sun, 18 Aug 2019 11:14:47 +0000 (13:14 +0200)]
Fix breakage due to rust-lang/rust#61708

4 years agoFix assertions_on_constants lint
Lzu Tao [Sat, 17 Aug 2019 18:46:44 +0000 (01:46 +0700)]
Fix assertions_on_constants lint

4 years agoMake code cleaner and more readable
Lzu Tao [Sat, 17 Aug 2019 18:46:44 +0000 (01:46 +0700)]
Make code cleaner and more readable

4 years agoAdd "could be written as" example to MANUAL_MEMCPY
BO41 [Sat, 17 Aug 2019 13:09:03 +0000 (13:09 +0000)]
Add "could be written as" example to MANUAL_MEMCPY

4 years agoMade lint pedantic
xd009642 [Sat, 17 Aug 2019 10:45:05 +0000 (11:45 +0100)]
Made lint pedantic

4 years agoAuto merge of #4397 - kraai:remove-a, r=flip1995
bors [Fri, 16 Aug 2019 20:04:39 +0000 (20:04 +0000)]
Auto merge of #4397 - kraai:remove-a, r=flip1995

Remove "a" from single_match_else description

changelog: none

4 years agoAuto merge of #4392 - phansch:cleanups, r=flip1995
bors [Fri, 16 Aug 2019 19:34:11 +0000 (19:34 +0000)]
Auto merge of #4392 - phansch:cleanups, r=flip1995

Remove unused dev scripts/files

781794d4: Remove util/update_lints.py

 * This has been deprecated for ~10 months, so I think it's fine to remove now.

90a42937: Remove publishing things

 * Clippy is no longer published via crates.io, so these docs and the script
   are not needed anymore.

changelog: none

4 years agoAuto merge of #4398 - kraai:outer_expn_data, r=flip1995
bors [Fri, 16 Aug 2019 17:09:28 +0000 (17:09 +0000)]
Auto merge of #4398 - kraai:outer_expn_data, r=flip1995

Use outer_expn_data instead of outer_expn_info

`outer_expn_info` has been removed, so use its replacement, `outer_expn_data`, instead.

changelog: none

4 years agoRun rustfmt
flip1995 [Fri, 16 Aug 2019 17:05:44 +0000 (19:05 +0200)]
Run rustfmt

4 years agoUse outer_expn_data instead of outer_expn_info
KRAAI, MATTHEW [VISUS] [Fri, 16 Aug 2019 16:29:30 +0000 (09:29 -0700)]
Use outer_expn_data instead of outer_expn_info

4 years agoRemove "a" from single_match_else description
KRAAI, MATTHEW [VISUS] [Fri, 16 Aug 2019 12:41:35 +0000 (05:41 -0700)]
Remove "a" from single_match_else description

4 years agoAuto merge of #4395 - lzutao:rustup-63586, r=phansch
bors [Fri, 16 Aug 2019 04:49:53 +0000 (04:49 +0000)]
Auto merge of #4395 - lzutao:rustup-63586, r=phansch

Rustup "Remove `Spanned` from `{ast,hir}::FieldPat`"

Rustup https://github.com/rust-lang/rust/pull/63586

changelog: none

4 years agoRustup "Remove `Spanned` from `{ast,hir}::FieldPat`"
Lzu Tao [Fri, 16 Aug 2019 02:30:38 +0000 (09:30 +0700)]
Rustup "Remove `Spanned` from `{ast,hir}::FieldPat`"

4 years agoAdd ui test
Jeremy Stucki [Thu, 15 Aug 2019 20:56:27 +0000 (22:56 +0200)]
Add ui test

4 years agoImplement lint 'suspicious_map'
Jeremy Stucki [Thu, 15 Aug 2019 20:56:16 +0000 (22:56 +0200)]
Implement lint 'suspicious_map'

4 years agoRemove util/update_lints.py
Philipp Hansch [Thu, 15 Aug 2019 15:43:30 +0000 (17:43 +0200)]
Remove util/update_lints.py

This has been deprecated for ~10 months, so I think it's fine to remove now.

4 years agoRemove publishing things
Philipp Hansch [Thu, 15 Aug 2019 15:42:05 +0000 (17:42 +0200)]
Remove publishing things

Clippy is no longer published via crates.io, so these docs and the
script are not needed anymore.

4 years agoAuto merge of #4391 - flip1995:toml_ver, r=phansch
bors [Thu, 15 Aug 2019 14:09:48 +0000 (14:09 +0000)]
Auto merge of #4391 - flip1995:toml_ver, r=phansch

Also specify patch version of toml crate

cc rust-lang/rust#63587

The patch update of the toml crate to version 0.5.3 recently broke some tests: #4378. For rustc, we have to define the complete version though.

changelog: none

4 years agoAlso specify patch version of toml crate
flip1995 [Thu, 15 Aug 2019 13:58:36 +0000 (15:58 +0200)]
Also specify patch version of toml crate

4 years agoAuto merge of #4382 - jeremystucki:unnecessary_fold_span, r=flip1995
bors [Thu, 15 Aug 2019 12:57:51 +0000 (12:57 +0000)]
Auto merge of #4382 - jeremystucki:unnecessary_fold_span, r=flip1995

Change span of unnecessary_fold lint

Resolves #4381

changelog: Change linted span of `unnecessary_fold`

4 years agoAuto merge of #4348 - phansch:deprecate-unused-unused-collect, r=flip1995
bors [Thu, 15 Aug 2019 10:47:20 +0000 (10:47 +0000)]
Auto merge of #4348 - phansch:deprecate-unused-unused-collect, r=flip1995

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

4 years agoAuto merge of #4389 - flip1995:allow_win_failures, r=phansch
bors [Thu, 15 Aug 2019 10:04:56 +0000 (10:04 +0000)]
Auto merge of #4389 - flip1995:allow_win_failures, r=phansch

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

4 years agoAllow failures on the travis windows build again
flip1995 [Thu, 15 Aug 2019 08:41:57 +0000 (10:41 +0200)]
Allow failures on the travis windows build again

4 years agoAuto merge of #4388 - flip1995:rustup, r=phansch
bors [Thu, 15 Aug 2019 09:13:51 +0000 (09:13 +0000)]
Auto merge of #4388 - flip1995:rustup, r=phansch

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

4 years agoRustup to rust-lang/rust#62984
flip1995 [Thu, 15 Aug 2019 08:13:52 +0000 (10:13 +0200)]
Rustup to rust-lang/rust#62984

Lint redundant_semicolon was added to rustc

4 years agoRustup to rust-lang/rust#62672
flip1995 [Thu, 15 Aug 2019 08:04:47 +0000 (10:04 +0200)]
Rustup to rust-lang/rust#62672

try macro is deprecated now, so Clippy will drop the support for it also

4 years agoRustup to rust-lang/rust#63543
flip1995 [Thu, 15 Aug 2019 07:59:08 +0000 (09:59 +0200)]
Rustup to rust-lang/rust#63543

4 years agoDeprecate unused_collect lint
Philipp Hansch [Wed, 7 Aug 2019 05:37:13 +0000 (07:37 +0200)]
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

4 years agoAuto merge of #4383 - phansch:update_changelog, r=Manishearth
bors [Wed, 14 Aug 2019 19:26:19 +0000 (19:26 +0000)]
Auto merge of #4383 - phansch:update_changelog, r=Manishearth

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)

4 years agoFix links to lints in changelog
Philipp Hansch [Wed, 14 Aug 2019 18:39:01 +0000 (20:39 +0200)]
Fix links to lints in changelog

4 years agoRemove unused import
Jeremy Stucki [Wed, 14 Aug 2019 18:24:05 +0000 (20:24 +0200)]
Remove unused import

4 years agoUpdate changelog for Rust 1.37
Philipp Hansch [Wed, 14 Aug 2019 18:20:51 +0000 (20:20 +0200)]
Update changelog for Rust 1.37

Also updates the rest of the changelog wrt. to the latest releases.

4 years agoUpdate tests
Jeremy Stucki [Wed, 14 Aug 2019 17:35:17 +0000 (19:35 +0200)]
Update tests

4 years agoUse different span
Jeremy Stucki [Wed, 14 Aug 2019 17:35:06 +0000 (19:35 +0200)]
Use different span

4 years agoAdd multiline test
Jeremy Stucki [Wed, 14 Aug 2019 17:34:50 +0000 (19:34 +0200)]
Add multiline test

4 years agoAuto merge of #4379 - matthiaskrgr:url_dep, r=phansch
bors [Wed, 14 Aug 2019 13:07:19 +0000 (13:07 +0000)]
Auto merge of #4379 - matthiaskrgr:url_dep, r=phansch

update url dependency from 1.7.0 to 2.1.0

changelog: none

4 years agoAuto merge of #4363 - phansch:fix_lint_deprecation, r=flip1995
bors [Wed, 14 Aug 2019 11:37:10 +0000 (11:37 +0000)]
Auto merge of #4363 - phansch:fix_lint_deprecation, r=flip1995

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

4 years agoupdate url dependency from 1.7.0 to 2.1.0
Matthias Krüger [Wed, 14 Aug 2019 11:04:17 +0000 (13:04 +0200)]
update url dependency from 1.7.0 to 2.1.0

4 years agoAuto merge of #4369 - mikerite:fix-4293, r=flip1995
bors [Wed, 14 Aug 2019 10:59:36 +0000 (10:59 +0000)]
Auto merge of #4369 - mikerite:fix-4293, r=flip1995

 Fix `wrong_self_convention` issue

Resolves #4293

changelog: Fix `wrong_self_convention` issue

4 years agoAuto merge of #4231 - jeremystucki:flat-map, r=flip1995
bors [Wed, 14 Aug 2019 09:36:16 +0000 (09:36 +0000)]
Auto merge of #4231 - jeremystucki:flat-map, r=flip1995

Implement flat_map lint

Fixes #4224

changelog: New Lint `flat_map_identity` to detect unnecessary calls to `flat_map`

4 years agoAuto merge of #4378 - flip1995:ui-toml, r=flip1995
bors [Wed, 14 Aug 2019 08:54:07 +0000 (08:54 +0000)]
Auto merge of #4378 - flip1995:ui-toml, r=flip1995

Update ui-toml tests

changelog: none

4 years agoUpdate ui-toml tests
flip1995 [Wed, 14 Aug 2019 07:58:00 +0000 (09:58 +0200)]
Update ui-toml tests

4 years agoMerge branch 'origin/master' into flat-map
Jeremy Stucki [Wed, 14 Aug 2019 05:36:37 +0000 (07:36 +0200)]
Merge branch 'origin/master' into flat-map

4 years agoUpdate test
Jeremy Stucki [Tue, 13 Aug 2019 19:50:52 +0000 (21:50 +0200)]
Update test

4 years agoUse correct span
Jeremy Stucki [Tue, 13 Aug 2019 19:50:42 +0000 (21:50 +0200)]
Use correct span

4 years agoAdd 'unnecessary_flat_map.fixed'
Jeremy Stucki [Tue, 13 Aug 2019 06:02:59 +0000 (08:02 +0200)]
Add 'unnecessary_flat_map.fixed'

4 years agoRun 'update_lints'
Jeremy Stucki [Mon, 12 Aug 2019 19:47:12 +0000 (21:47 +0200)]
Run 'update_lints'

4 years agoUse 'span_lint_and_sugg'
Jeremy Stucki [Mon, 12 Aug 2019 19:42:57 +0000 (21:42 +0200)]
Use 'span_lint_and_sugg'