]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoAuto merge of #4125 - Manishearth:rustup, r=oli-obk
bors [Wed, 22 May 2019 08:37:27 +0000 (08:37 +0000)]
Auto merge of #4125 - Manishearth:rustup, r=oli-obk

Rustup to rustc 1.36.0-nightly (dbfe70dfc 2019-05-22)

not 100% sure of the Symbol stuff

r? @oli-obk

5 years agoDisable cargo integration test due to clippy ICE
Oliver Scherer [Wed, 22 May 2019 08:36:20 +0000 (10:36 +0200)]
Disable cargo integration test due to clippy ICE

5 years agoRustup to rustc 1.36.0-nightly (dbfe70dfc 2019-05-22)
Manish Goregaokar [Wed, 22 May 2019 04:58:27 +0000 (21:58 -0700)]
Rustup to rustc 1.36.0-nightly (dbfe70dfc 2019-05-22)

5 years agoAuto merge of #4118 - rust-lang:revert, r=phansch
bors [Mon, 20 May 2019 13:36:26 +0000 (13:36 +0000)]
Auto merge of #4118 - rust-lang:revert, r=phansch

Revert "Turn off two tests broken due to #4108"

This reverts commit 568a3ecfc3eebe099c1ffe44c3d9afdc5d445fd2 which is unnecessary after https://github.com/rust-lang/rust-clippy/pull/4115

changelog: none

5 years agoRevert "Turn off two tests broken due to #4108"
Oliver Scherer [Mon, 20 May 2019 10:31:53 +0000 (12:31 +0200)]
Revert "Turn off two tests broken due to #4108"

This reverts commit 568a3ecfc3eebe099c1ffe44c3d9afdc5d445fd2.

5 years agoAuto merge of #4088 - pJunger:check1, r=oli-obk
bors [Mon, 20 May 2019 09:31:09 +0000 (09:31 +0000)]
Auto merge of #4088 - pJunger:check1, r=oli-obk

Added lint for TryFrom for checked integer conversion.

works towards #3947

Added lint for try_from for checked integer conversion.
Should recognize simple & straight-forward checked integer conversions.

5 years agoAuto merge of #4115 - ehuss:fix-compiletest, r=Manishearth
bors [Sun, 19 May 2019 20:44:19 +0000 (20:44 +0000)]
Auto merge of #4115 - ehuss:fix-compiletest, r=Manishearth

Fix compile-test from forcing a rebuild.

If the `compile-test` test was run, then running a cargo build command immediately after caused everything to be rebuilt. This is because the `compile-test` test was deleting all `.rmeta` files in the target directory. Cargo recently switched to always generating `.rmeta` files (https://github.com/rust-lang/cargo/pull/6883), and when the files are deleted, it thinks it needs to be rebuilt.

I am not very familiar with compiletest or clippy, so please take a close look and test this out (with the most recent nightly). In particular, make sure it doesn't revert the fixes from #3380 (it seems to work for me). Also @oli-obk mentioned something related in https://github.com/rust-lang/rust/pull/60190#issuecomment-493617188, and I want to make sure that is addressed as well.

Fixes #4114

5 years agoFix compile-test from forcing a rebuild.
Eric Huss [Sun, 19 May 2019 20:25:06 +0000 (13:25 -0700)]
Fix compile-test from forcing a rebuild.

5 years agoAuto merge of #4109 - Manishearth:backport-merge, r=phansch
bors [Sun, 19 May 2019 11:13:40 +0000 (11:13 +0000)]
Auto merge of #4109 - Manishearth:backport-merge, r=phansch

Merge backport branches into master

Attempt 2 at https://github.com/rust-lang/rust-clippy/pull/4103

This does nothing to the code, however it keeps the backport branches in master history, so that deleting a branch won't accidentally break old rustc builds

5 years agoAuto merge of #4107 - taiki-e:useless_attribute, r=flip1995
bors [Sun, 19 May 2019 10:37:09 +0000 (10:37 +0000)]
Auto merge of #4107 - taiki-e:useless_attribute, r=flip1995

useless_attribute: Add unreachable_pub to whitelists

Fixes #4106

changelog: `useless_attribute`: whitelist `unreachable_pub` on `use` items

5 years agoAuto merge of #4099 - flip1995:ul_4094, r=oli-obk
bors [Sun, 19 May 2019 08:46:43 +0000 (08:46 +0000)]
Auto merge of #4099 - flip1995:ul_4094, r=oli-obk

Add macro check for unreadable_literal lint

Closes #4094

changelog: Disable `unreadable_literal` lint inside macros

5 years agoAuto merge of #4100 - phansch:add_stderr_length_check, r=flip1995
bors [Sun, 19 May 2019 08:13:16 +0000 (08:13 +0000)]
Auto merge of #4100 - phansch:add_stderr_length_check, r=flip1995

Add a stderr file length check to clippy_dev

This adds a check to `clippy_dev` that enforces a maximum line count for
`stderr` files. CI will fail if the line count is exceeded. It's
currently set to `320` lines.

Ideally this would be implemented in `compiletest-rs` but there are
plans to move Rust's `compiletest` into the `compiletest-rs` repository
and I don't want to do the work in `compiletest` twice. However, I also
don't want to wait until the move is done, so I added the check to
`clippy_dev` until it makes sense to add it to compiletest-rs.

cc #2038

5 years agoAuto merge of #4111 - Manishearth:changelog, r=oli-obk
bors [Sun, 19 May 2019 07:43:34 +0000 (07:43 +0000)]
Auto merge of #4111 - Manishearth:changelog, r=oli-obk

Update changelog

r? @oli-obk @phansch

5 years agoUpdate master changelog
Manish Goregaokar [Sat, 18 May 2019 15:59:38 +0000 (08:59 -0700)]
Update master changelog

Up to 60a609acaed3bf2b3ec6ab995bccf0f03bc26060

5 years agoUpdate beta changelog
Manish Goregaokar [Sat, 18 May 2019 15:38:29 +0000 (08:38 -0700)]
Update beta changelog

5 years agoUpdated README.
pJunger [Sat, 18 May 2019 12:53:56 +0000 (14:53 +0200)]
Updated README.

5 years agoRemoved symbols again.
pJunger [Sat, 18 May 2019 08:54:03 +0000 (10:54 +0200)]
Removed symbols again.

5 years agoRemoved unused lifetime.
pJunger [Tue, 14 May 2019 20:40:39 +0000 (22:40 +0200)]
Removed unused lifetime.

5 years agoChanged impl to use symbols.
pJunger [Tue, 14 May 2019 19:39:12 +0000 (21:39 +0200)]
Changed impl to use symbols.

5 years agoAdded suggestion for conversion with is_ok.
pJunger [Tue, 14 May 2019 18:05:27 +0000 (20:05 +0200)]
Added suggestion for conversion with is_ok.

5 years agoFixed more lint findings.
pJunger [Sun, 12 May 2019 19:53:28 +0000 (21:53 +0200)]
Fixed more lint findings.

5 years agoFixed clippy lints in checked_conversions.rs.
pJunger [Sun, 12 May 2019 19:14:44 +0000 (21:14 +0200)]
Fixed clippy lints in checked_conversions.rs.

5 years agoRegistered lint.
pJunger [Sun, 12 May 2019 18:42:13 +0000 (20:42 +0200)]
Registered lint.

5 years agoAdded lint for TryFrom for checked integer conversion rust-lang#3947.
pJunger [Sun, 12 May 2019 12:46:16 +0000 (14:46 +0200)]
Added lint for TryFrom for checked integer conversion rust-lang#3947.

5 years agouseless_attribute: Add unreachable_pub to whitelists
Taiki Endo [Fri, 17 May 2019 10:42:43 +0000 (19:42 +0900)]
useless_attribute: Add unreachable_pub to whitelists

5 years agoAuto merge of #4110 - rust-lang:symbolic_wasteland, r=oli-obk
bors [Fri, 17 May 2019 23:47:49 +0000 (23:47 +0000)]
Auto merge of #4110 - rust-lang:symbolic_wasteland, r=oli-obk

Prevent symbocalypse

r? @Manishearth

This is strictly better, we can just not modify rustc and bump solely the clippy submodule and then implement diagnostic lang items without beta looming over us

changelog: none

5 years agoDogfood
Oliver Scherer [Fri, 17 May 2019 23:34:52 +0000 (01:34 +0200)]
Dogfood

5 years agoDogfood and rustfmt
Oliver Scherer [Fri, 17 May 2019 22:58:25 +0000 (00:58 +0200)]
Dogfood and rustfmt

5 years agoTurn off two tests broken due to #4108
Oliver Scherer [Fri, 17 May 2019 22:57:23 +0000 (00:57 +0200)]
Turn off two tests broken due to #4108

5 years agoPrevent symbocalypse
Oliver Scherer [Fri, 17 May 2019 21:53:54 +0000 (23:53 +0200)]
Prevent symbocalypse

5 years agoMerge remote-tracking branch 'origin/beta1.35' into backport-merge
Manish Goregaokar [Fri, 17 May 2019 19:56:36 +0000 (12:56 -0700)]
Merge remote-tracking branch 'origin/beta1.35' into backport-merge

5 years agoMerge remote-tracking branch 'origin/rust-1.34.1' into HEAD
Manish Goregaokar [Fri, 17 May 2019 19:54:28 +0000 (12:54 -0700)]
Merge remote-tracking branch 'origin/rust-1.34.1' into HEAD

5 years agoMerge remote-tracking branch 'origin/rust-1.31.0' into HEAD
Manish Goregaokar [Fri, 17 May 2019 19:54:15 +0000 (12:54 -0700)]
Merge remote-tracking branch 'origin/rust-1.31.0' into HEAD

5 years agoMerge remote-tracking branch 'origin/beta_backport' into HEAD
Manish Goregaokar [Fri, 17 May 2019 19:53:52 +0000 (12:53 -0700)]
Merge remote-tracking branch 'origin/beta_backport' into HEAD

5 years agoAuto merge of #4104 - Manishearth:beta-backports, r=flip1995
bors [Fri, 17 May 2019 14:14:53 +0000 (14:14 +0000)]
Auto merge of #4104 - Manishearth:beta-backports, r=flip1995

Backport #4101 to beta

This lint has been causing lots of problems.

I'll check up on other potential beta backports when I build the new changelog

r? @oli-obk

5 years agoDon't require rustfmt on beta
Oliver Scherer [Fri, 17 May 2019 13:47:11 +0000 (15:47 +0200)]
Don't require rustfmt on beta

5 years agoDon't run dogfood on windows
Oliver Scherer [Fri, 17 May 2019 11:19:28 +0000 (13:19 +0200)]
Don't run dogfood on windows

5 years agoBackport #4101
Manish Goregaokar [Thu, 16 May 2019 16:47:21 +0000 (09:47 -0700)]
Backport #4101

https://github.com/rust-lang/rust-clippy/pull/4101

Splits up redundant_closure's method checking into a pedantic lint

5 years agoCollect at callsite, use eprintln instead of println
Philipp Hansch [Fri, 17 May 2019 05:41:25 +0000 (07:41 +0200)]
Collect at callsite, use eprintln instead of println

5 years agoAdd a stderr file length check to clippy_dev
Philipp Hansch [Thu, 16 May 2019 05:31:56 +0000 (07:31 +0200)]
Add a stderr file length check to clippy_dev

This adds a check to `clippy_dev` that enforces a maximum line count for
`stderr` files. CI will fail if the line count is exceeded. It's
currently set to `320` lines.

Ideally this would be implemented in `compiletest-rs` but there are
plans to move Rust's `compiletest` into the `compiletest-rs` repository
and I don't want to do the work in `compiletest` twice. However, I also
don't want to wait until the move is done, so I added the check to
`clippy_dev` until it makes sense to add it to compiletest-rs.

cc #2038

5 years agoAuto merge of #4101 - mikerite:redundant_closures_for_method_calls, r=Manishearth
bors [Thu, 16 May 2019 18:18:58 +0000 (18:18 +0000)]
Auto merge of #4101 - mikerite:redundant_closures_for_method_calls, r=Manishearth

Split redundant_closure lint

Move the method checking into a new lint called
`redundant_closures_for_method_calls` and put it in the pedantic group.

This aspect of the lint seems more controversial than the rest.

cc #3942

changelog: Move method checking from `redundant_closure` to a new `pedantic` lint called `redundant_closure_for_method_calls`.

5 years agoAlso rename the lint in test files
flip1995 [Thu, 16 May 2019 18:18:07 +0000 (20:18 +0200)]
Also rename the lint in test files

5 years agoAdd known problems
Manish Goregaokar [Thu, 16 May 2019 16:43:07 +0000 (09:43 -0700)]
Add known problems

5 years agoRename to redundant_closure_for_method_calls
Manish Goregaokar [Thu, 16 May 2019 16:18:15 +0000 (09:18 -0700)]
Rename to redundant_closure_for_method_calls

5 years agoSplit redundant_closure lint
Michael Wright [Thu, 16 May 2019 06:25:39 +0000 (08:25 +0200)]
Split redundant_closure lint

Move the method checking into a new lint called
`redundant_closures_for_method_calls` and put it in the pedantic group.

This aspect of the lint seems more controversial than the rest.

cc #3942

5 years agoAdd macro check for unreadable_literal lint
flip1995 [Wed, 15 May 2019 12:57:56 +0000 (14:57 +0200)]
Add macro check for unreadable_literal lint

Closes #4094

5 years agoAuto merge of #4066 - rust-lang:hash, r=Manishearth
bors [Wed, 15 May 2019 05:40:02 +0000 (05:40 +0000)]
Auto merge of #4066 - rust-lang:hash, r=Manishearth

Properly hash enums

While I wrote this I was saved by a clippy lint... I accidentally fetched the discriminant of a reference to an enum and not of an enum.

changelog: reduce hash collisions during clippy-internal hashing

5 years agoFix dogfood errors
flip1995 [Tue, 14 May 2019 13:08:29 +0000 (15:08 +0200)]
Fix dogfood errors

5 years agoAlso hash mem::discriminant in hash_stmt
flip1995 [Tue, 14 May 2019 12:13:23 +0000 (14:13 +0200)]
Also hash mem::discriminant in hash_stmt

5 years agomem::discriminant trumps manual discriminant hashing
Oliver Scherer [Wed, 8 May 2019 09:34:35 +0000 (11:34 +0200)]
mem::discriminant trumps manual discriminant hashing

5 years agoAuto merge of #4095 - flip1995:mscn_test, r=phansch
bors [Tue, 14 May 2019 12:02:22 +0000 (12:02 +0000)]
Auto merge of #4095 - flip1995:mscn_test, r=phansch

Add test for #3198

Closes #3198

changelog: none

5 years agoProperly hash enums
Oliver Scherer [Tue, 7 May 2019 12:48:00 +0000 (14:48 +0200)]
Properly hash enums

5 years agoAdd test for #3198
flip1995 [Tue, 14 May 2019 11:46:10 +0000 (13:46 +0200)]
Add test for #3198

5 years agoAuto merge of #4084 - mikerite:fix-4019, r=oli-obk
bors [Tue, 14 May 2019 11:26:16 +0000 (11:26 +0000)]
Auto merge of #4084 - mikerite:fix-4019, r=oli-obk

Fix 4019

Fixes #4019

5 years agoAuto merge of #4093 - rust-lang:rustup, r=oli-obk
bors [Tue, 14 May 2019 09:02:01 +0000 (09:02 +0000)]
Auto merge of #4093 - rust-lang:rustup, r=oli-obk

Rustup to rustc 1.36.0-nightly (1764b2972 2019-05-12)

5 years agoRustfmt all the things
Oliver Scherer [Tue, 14 May 2019 08:06:21 +0000 (10:06 +0200)]
Rustfmt all the things

5 years agoClippy dogfood
Oliver Scherer [Tue, 14 May 2019 08:03:16 +0000 (10:03 +0200)]
Clippy dogfood

5 years agoUpdate for compiletest changes
Oliver Scherer [Tue, 14 May 2019 07:41:29 +0000 (09:41 +0200)]
Update for compiletest changes

5 years agoUse symbols instead of strings
Oliver Scherer [Mon, 13 May 2019 23:34:08 +0000 (01:34 +0200)]
Use symbols instead of strings

5 years agoRustup to rustc 1.36.0-nightly (1764b2972 2019-05-12)
Manish Goregaokar [Mon, 13 May 2019 18:29:54 +0000 (11:29 -0700)]
Rustup to rustc 1.36.0-nightly (1764b2972 2019-05-12)

5 years agoAuto merge of #4089 - flip1995:id_conv_reg_test, r=Manishearth
bors [Sun, 12 May 2019 19:37:39 +0000 (19:37 +0000)]
Auto merge of #4089 - flip1995:id_conv_reg_test, r=Manishearth

Add regression test for identity_conversion FP

cc #3913 #4082 #3936

changelog: none

5 years agoAdd regression test for identity_conversion FP
flip1995 [Sun, 12 May 2019 19:32:29 +0000 (21:32 +0200)]
Add regression test for identity_conversion FP

5 years agoAuto merge of #4087 - phansch:move_tests, r=matthiaskrgr
bors [Sun, 12 May 2019 17:36:39 +0000 (17:36 +0000)]
Auto merge of #4087 - phansch:move_tests, r=matthiaskrgr

UI test cleanup: Extract many_single_char_names tests

changelog: none

cc #2038, #4086

5 years agoUI test cleanup: Extract many_single_char_names tests
Philipp Hansch [Sun, 12 May 2019 11:01:43 +0000 (13:01 +0200)]
UI test cleanup: Extract many_single_char_names tests

5 years agoAuto merge of #4085 - phansch:empty_loop_tests, r=matthiaskrgr
bors [Sun, 12 May 2019 13:50:57 +0000 (13:50 +0000)]
Auto merge of #4085 - phansch:empty_loop_tests, r=matthiaskrgr

Add tests for empty_loop lint

changelog: none

Closes #4072

5 years agoAdd tests for empty_loop lint
Philipp Hansch [Sun, 12 May 2019 10:10:23 +0000 (12:10 +0200)]
Add tests for empty_loop lint

5 years agoAuto merge of #4082 - Manishearth:macro-check-split, r=oli-obk
bors [Sun, 12 May 2019 11:06:29 +0000 (11:06 +0000)]
Auto merge of #4082 - Manishearth:macro-check-split, r=oli-obk

Make most macro checks also check for desugarings

We should audit the macro checks one by one and re-add `in_macro`. I suspect it's applicable to most of them.

fixes https://github.com/rust-lang/rust-clippy/issues/4081

5 years agoFix comments; minor refactoring
Michael Wright [Sun, 12 May 2019 08:32:19 +0000 (10:32 +0200)]
Fix comments; minor refactoring

5 years agoFix #4019
Michael Wright [Sun, 12 May 2019 08:18:38 +0000 (10:18 +0200)]
Fix #4019

5 years agoMove ctor tests from methods.rs to or_fun_calls.rs
Michael Wright [Sun, 12 May 2019 07:32:39 +0000 (09:32 +0200)]
Move ctor tests from methods.rs to or_fun_calls.rs

5 years agoAdd in_macro again
Manish Goregaokar [Sun, 12 May 2019 03:41:30 +0000 (20:41 -0700)]
Add in_macro again

5 years agoRename in_macro to in_macro_or_desugar
Manish Goregaokar [Sun, 12 May 2019 03:40:05 +0000 (20:40 -0700)]
Rename in_macro to in_macro_or_desugar

5 years agoAuto merge of #4080 - rust-lang:rustup, r=oli-obk
bors [Sat, 11 May 2019 11:35:54 +0000 (11:35 +0000)]
Auto merge of #4080 - rust-lang:rustup, r=oli-obk

Rustup to rustc 1.36.0-nightly (acc7e652f 2019-05-10)

Fixes breakages from https://github.com/rust-lang/rust/pull/59288

Not finished yet, help appreciated.

Todo:

 - [x] Needs to build
 - [x] Util should handle DropTemps, https://github.com/rust-lang/rust-clippy/pull/4080#discussion_r283079202
 - [x] Author lint should spit out higher::if_block checks
 - [x] Unsure what to do in consts.rs
 - [x] Needs to pass tests

5 years agoStart handling desugarings in author lint
Manish Goregaokar [Sat, 11 May 2019 06:36:49 +0000 (23:36 -0700)]
Start handling desugarings in author lint

5 years agoIgnore desugarings in macro checks
Manish Goregaokar [Sat, 11 May 2019 06:19:35 +0000 (23:19 -0700)]
Ignore desugarings in macro checks

5 years agoAdd IfDesugar to desugaring_name
Manish Goregaokar [Sat, 11 May 2019 02:40:05 +0000 (19:40 -0700)]
Add IfDesugar to desugaring_name

5 years agoFix consts.rs
Manish Goregaokar [Sat, 11 May 2019 02:37:37 +0000 (19:37 -0700)]
Fix consts.rs

5 years agoMore uses of higher::if_block
Manish Goregaokar [Sat, 11 May 2019 02:34:47 +0000 (19:34 -0700)]
More uses of higher::if_block

5 years agoRemove some unnecessary If arms
Manish Goregaokar [Sat, 11 May 2019 02:23:35 +0000 (19:23 -0700)]
Remove some unnecessary If arms

5 years agoFix needless_bool.rs
Manish Goregaokar [Sat, 11 May 2019 02:23:26 +0000 (19:23 -0700)]
Fix needless_bool.rs

5 years agoFix question_mark.rs
Manish Goregaokar [Sat, 11 May 2019 02:18:17 +0000 (19:18 -0700)]
Fix question_mark.rs

5 years agoFix shadow.rs
Manish Goregaokar [Sat, 11 May 2019 02:17:30 +0000 (19:17 -0700)]
Fix shadow.rs

5 years agoFix unwrap.rs
Manish Goregaokar [Sat, 11 May 2019 02:13:15 +0000 (19:13 -0700)]
Fix unwrap.rs

5 years agoAdd util function for desugaring if block
Manish Goregaokar [Sat, 11 May 2019 02:10:47 +0000 (19:10 -0700)]
Add util function for desugaring if block

5 years agoAuto merge of #4073 - euclio:serde-derive, r=Manishearth
bors [Thu, 9 May 2019 17:09:54 +0000 (17:09 +0000)]
Auto merge of #4073 - euclio:serde-derive, r=Manishearth

use `derive` feature over `serde_derive` crate

changelog: replace `serde_derive` dependency with `serde`'s derive feature

5 years agouse `derive` feature over `serde_derive` crate
Andy Russell [Thu, 9 May 2019 17:05:34 +0000 (13:05 -0400)]
use `derive` feature over `serde_derive` crate

5 years agoAuto merge of #4069 - mikerite:while_loop_test_split, r=phansch
bors [Thu, 9 May 2019 04:49:51 +0000 (04:49 +0000)]
Auto merge of #4069 - mikerite:while_loop_test_split, r=phansch

Reorganize "while loop" tests

cc #2038

changelog: none

5 years agoRemove unused attrs in while_let_on_iterator tests
Michael Wright [Thu, 9 May 2019 03:55:24 +0000 (05:55 +0200)]
Remove unused attrs in while_let_on_iterator tests

5 years agoFix while_let_on_iterator.stderr
Michael Wright [Thu, 9 May 2019 03:54:05 +0000 (05:54 +0200)]
Fix while_let_on_iterator.stderr

5 years agoMerge branch 'master' into while_loop_test_split
Michael Wright [Thu, 9 May 2019 03:50:58 +0000 (05:50 +0200)]
Merge branch 'master' into while_loop_test_split

5 years agoRename while_loop tests to while_let_on_iterator
Michael Wright [Wed, 8 May 2019 07:29:27 +0000 (09:29 +0200)]
Rename while_loop tests to while_let_on_iterator

5 years agoSplit while_loop.rs tests
Michael Wright [Wed, 8 May 2019 07:19:08 +0000 (09:19 +0200)]
Split while_loop.rs tests

Split out while_let_loop tests into separate file.
Split ice-360 out into separate file.

5 years agoAuto merge of #4068 - matthiaskrgr:rustup_3, r=Manishearth
bors [Wed, 8 May 2019 05:06:28 +0000 (05:06 +0000)]
Auto merge of #4068 - matthiaskrgr:rustup_3, r=Manishearth

rustup https://github.com/rust-lang/rust/pull/60586

cc https://github.com/rust-lang/rust/issues/60623

changelog: none

5 years agorustup https://github.com/rust-lang/rust/pull/60586
Matthias Krüger [Wed, 8 May 2019 04:58:37 +0000 (06:58 +0200)]
rustup https://github.com/rust-lang/rust/pull/60586

cc https://github.com/rust-lang/rust/issues/60623

5 years agoAuto merge of #4064 - mikerite:fix-771, r=matthiaskrgr
bors [Tue, 7 May 2019 04:35:42 +0000 (04:35 +0000)]
Auto merge of #4064 - mikerite:fix-771, r=matthiaskrgr

Add test for #771.

Closes #771

<!--
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 `cargo fmt`

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

5 years agoAdd test for #771.
Michael Wright [Tue, 7 May 2019 04:28:51 +0000 (06:28 +0200)]
Add test for #771.

Closes #771

5 years agoAuto merge of #4063 - mikerite:while_loop_clean_up, r=Manishearth
bors [Mon, 6 May 2019 07:47:59 +0000 (07:47 +0000)]
Auto merge of #4063 - mikerite:while_loop_clean_up, r=Manishearth

Clean up while_loop tests

At some stage, we started adding test cases inside the function which tests
refutable patterns. This commits splits those test cases out into separate
functions.

5 years agoClean up while_loop tests
Michael Wright [Mon, 6 May 2019 05:49:45 +0000 (07:49 +0200)]
Clean up while_loop tests

At some stage, we started adding test cases inside the function which tests
refutable patterns. This commits splits those test cases out into separate
functions.

5 years agoAuto merge of #4061 - rust-lang:rustup, r=phansch
bors [Sat, 4 May 2019 08:17:03 +0000 (08:17 +0000)]
Auto merge of #4061 - rust-lang:rustup, r=phansch

Rustup to rustc 1.36.0-nightly (13fde05b1 2019-05-03)

Trying to deal with changes from https://github.com/rust-lang/rust/pull/60462

Moved from https://github.com/rust-lang/rust-clippy/pull/4060 so everyone can collab on the rustup branch.

5 years agoRustup to rustc 1.36.0-nightly (13fde05b1 2019-05-03)
Matthias Krüger [Sat, 4 May 2019 00:03:12 +0000 (02:03 +0200)]
Rustup to rustc 1.36.0-nightly (13fde05b1 2019-05-03)