]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoAuto merge of #4163 - lzutao:doc-fix-foo-example, r=phansch
bors [Mon, 3 Jun 2019 07:59:30 +0000 (07:59 +0000)]
Auto merge of #4163 - lzutao:doc-fix-foo-example, r=phansch

doc: Remove `pub` from trait definition in foo lint example

changelog: none

5 years agoAuto merge of #4169 - lzutao:bump-cargo_metadata, r=Manishearth
bors [Mon, 3 Jun 2019 02:39:06 +0000 (02:39 +0000)]
Auto merge of #4169 - lzutao:bump-cargo_metadata, r=Manishearth

Bump cargo metadata

Sorry, I forgot to bump `cargo_metadata` in sub-crates.

changelog: none

r? @matthiaskrgr

5 years agoBump clap in clippy_dev
Lzu Tao [Mon, 3 Jun 2019 02:36:23 +0000 (09:36 +0700)]
Bump clap in clippy_dev

5 years agoBump cargo_metadata of clippy_lints
Lzu Tao [Mon, 3 Jun 2019 02:13:33 +0000 (09:13 +0700)]
Bump cargo_metadata of clippy_lints

5 years agoAuto merge of #4166 - mati865:rustup, r=Manishearth
bors [Sun, 2 Jun 2019 17:07:33 +0000 (17:07 +0000)]
Auto merge of #4166 - mati865:rustup, r=Manishearth

Rustup for https://github.com/rust-lang/rust/pull/61276

changelog: none

5 years agoCargo fmt
Mateusz Mikuła [Sun, 2 Jun 2019 16:58:11 +0000 (18:58 +0200)]
Cargo fmt

5 years agoRustup for https://github.com/rust-lang/rust/pull/61276
Mateusz Mikuła [Sun, 2 Jun 2019 16:30:40 +0000 (18:30 +0200)]
Rustup for https://github.com/rust-lang/rust/pull/61276

5 years agoAuto merge of #4160 - lzutao:bump-cargo_metadata, r=matthiaskrgr
bors [Sun, 2 Jun 2019 13:11:34 +0000 (13:11 +0000)]
Auto merge of #4160 - lzutao:bump-cargo_metadata, r=matthiaskrgr

Bump cargo_metadata to 0.8.0

changelog: none

5 years agoAuto merge of #4159 - lzutao:into-outer_expn_info, r=matthiaskrgr
bors [Sun, 2 Jun 2019 10:01:50 +0000 (10:01 +0000)]
Auto merge of #4159 - lzutao:into-outer_expn_info, r=matthiaskrgr

Make use of new `outer_expn_info()` function

Find by simple command: `git grep -w expn_info`.

changelog: none

Closes #4151

5 years agodoc: Remove `pub` from trait definition in foo lint example
Lzu Tao [Sat, 1 Jun 2019 12:51:49 +0000 (19:51 +0700)]
doc: Remove `pub` from trait definition in foo lint example

5 years agoBump cargo_metadata to 0.8.0
Lzu Tao [Sat, 1 Jun 2019 09:49:10 +0000 (16:49 +0700)]
Bump cargo_metadata to 0.8.0

5 years agoMake use of new `outer_expn_info()` function
Lzu Tao [Sat, 1 Jun 2019 09:25:51 +0000 (16:25 +0700)]
Make use of new `outer_expn_info()` function

5 years agoAuto merge of #4158 - phansch:rustup_tests, r=Manishearth
bors [Sat, 1 Jun 2019 05:57:58 +0000 (05:57 +0000)]
Auto merge of #4158 - phansch:rustup_tests, r=Manishearth

Fix ellipsis_inclusive_range_patterns lint warnings

Changed from `allow` to `warn` in https://github.com/rust-lang/rust/pull/61342

changelog: none

5 years agoFix ellipsis_inclusive_range_patterns lint warnings
Philipp Hansch [Sat, 1 Jun 2019 05:54:47 +0000 (07:54 +0200)]
Fix ellipsis_inclusive_range_patterns lint warnings

Changed from `allow` to `warn` in https://github.com/rust-lang/rust/pull/61342

5 years agoAuto merge of #4157 - phansch:update_pulldown_cmark2, r=matthiaskrgr
bors [Thu, 30 May 2019 12:07:48 +0000 (12:07 +0000)]
Auto merge of #4157 - phansch:update_pulldown_cmark2, r=matthiaskrgr

Update pulldown_cmark to 0.5.2

Includes various parsing fixes. Most notably [this PR][pr]

changelog: none

[pr]: https://github.com/raphlinus/pulldown-cmark/pull/325

5 years agoAuto merge of #4113 - rust-lang:author, r=flip1995
bors [Thu, 30 May 2019 10:34:56 +0000 (10:34 +0000)]
Auto merge of #4113 - rust-lang:author, r=flip1995

Fix `Block`  dump in author lint

changelog: The `#[clippy::author]` attribute now emits correct pattern code for block expressions

5 years agoUpdate pulldown_cmark to 0.5.2
Philipp Hansch [Thu, 30 May 2019 10:26:22 +0000 (12:26 +0200)]
Update pulldown_cmark to 0.5.2

Includes various parsing fixes. Most notably [this PR][pr]

[pr]: https://github.com/raphlinus/pulldown-cmark/pull/325

5 years agoAuto merge of #4155 - phansch:rustup_trait_obj, r=oli-obk
bors [Thu, 30 May 2019 07:29:28 +0000 (07:29 +0000)]
Auto merge of #4155 - phansch:rustup_trait_obj, r=oli-obk

Rustup to https://github.com/rust-lang/rust/pull/61203

See https://github.com/rust-lang/rust/pull/61203

Migrates all trait objects to use `dyn` in our ui tests

changelog: none

5 years agoRustup to https://github.com/rust-lang/rust/pull/61203
Philipp Hansch [Thu, 30 May 2019 06:23:47 +0000 (08:23 +0200)]
Rustup to https://github.com/rust-lang/rust/pull/61203

Migrates all trait objects to use `dyn`

5 years agoAuto merge of #4153 - matthiaskrgr:rustup_5, r=flip1995
bors [Wed, 29 May 2019 20:01:57 +0000 (20:01 +0000)]
Auto merge of #4153 - matthiaskrgr:rustup_5, r=flip1995

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

changelog: none

5 years agorustup https://github.com/rust-lang/rust/pull/60928
Matthias Krüger [Tue, 28 May 2019 22:41:34 +0000 (00:41 +0200)]
rustup https://github.com/rust-lang/rust/pull/60928

5 years agoAuto merge of #4152 - matthiaskrgr:rustup_4, r=matthiaskrgr
bors [Tue, 28 May 2019 22:26:50 +0000 (22:26 +0000)]
Auto merge of #4152 - matthiaskrgr:rustup_4, r=matthiaskrgr

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

(which is included in https://github.com/rust-lang/rust/pull/61274)

changelog: none

5 years agorustup https://github.com/rust-lang/rust/pull/61164
Matthias Krüger [Tue, 28 May 2019 18:47:16 +0000 (20:47 +0200)]
rustup https://github.com/rust-lang/rust/pull/61164
(which is included in https://github.com/rust-lang/rust/pull/61274)

5 years agoDon't rustfmt author test
Oliver Scherer [Mon, 20 May 2019 13:32:46 +0000 (15:32 +0200)]
Don't rustfmt author test

Co-Authored-By: Philipp Krones <hello@philkrones.com>
5 years agoFix `Block` dump in author lint
Oliver Scherer [Sun, 19 May 2019 14:52:44 +0000 (16:52 +0200)]
Fix `Block`  dump in author lint

5 years agoAuto merge of #4142 - agnxy:rename-assoc, r=flip1995
bors [Tue, 28 May 2019 08:59:06 +0000 (08:59 +0000)]
Auto merge of #4142 - agnxy:rename-assoc, r=flip1995

Rename "Associated*" to "Assoc*"

This is to fix the breakage introduced by rust-lang/rust#60163.

changelog: none

5 years agoAuto merge of #4071 - matthiaskrgr:sizeof, r=flip1995
bors [Tue, 28 May 2019 07:56:04 +0000 (07:56 +0000)]
Auto merge of #4071 - matthiaskrgr:sizeof, r=flip1995

trivially_copy_pass_by_ref: print size of type and limit in the lint message

changelog: trivially_copy_pass_by_ref: print size of type and limit in the lint message

5 years agoAuto merge of #4150 - rust-lang:rustup, r=oli-obk
bors [Mon, 27 May 2019 19:59:33 +0000 (19:59 +0000)]
Auto merge of #4150 - rust-lang:rustup, r=oli-obk

Rustup to rustc 1.36.0-nightly (fa40a111f 2019-05-27)

changelog: none

5 years agoRustup to rustc 1.36.0-nightly (fa40a111f 2019-05-27)
Oliver Scherer [Mon, 27 May 2019 19:58:54 +0000 (21:58 +0200)]
Rustup to rustc 1.36.0-nightly (fa40a111f 2019-05-27)

5 years agoAuto merge of #4137 - euclio:let-return, r=oli-obk
bors [Mon, 27 May 2019 13:04:14 +0000 (13:04 +0000)]
Auto merge of #4137 - euclio:let-return, r=oli-obk

tweak `let_and_return` diagnostic

changelog: `let_and_return`: label the unnecessary let binding and convert the note to a structured
suggestion

5 years agoAuto merge of #4149 - flip1995:rollup-6knpdqb, r=flip1995
bors [Mon, 27 May 2019 11:33:29 +0000 (11:33 +0000)]
Auto merge of #4149 - flip1995:rollup-6knpdqb, r=flip1995

Rollup of 2 pull requests

Successful merges:

 - #4102 (Fix match_same_arms to fail late)
 - #4119 (Improve non ascii literal)

Failed merges:

r? @ghost

5 years agoRollup merge of #4119 - BO41:non_ascii_literal, r=flip1995
Philipp Krones [Mon, 27 May 2019 11:09:17 +0000 (13:09 +0200)]
Rollup merge of #4119 - BO41:non_ascii_literal, r=flip1995

Improve non ascii literal

This PR improves the example of the [non_ascii_literal](https://rust-lang.github.io/rust-clippy/master/index.html#non_ascii_literal) lint.
It also makes it auto-fixable.

Please review. This is my first PR to this project.
(Thanks @flip1995 for the help :)

changelog: none
fixes #4117

5 years agoRollup merge of #4102 - Urriel:fix/4096_match_same_arms, r=flip1995
Philipp Krones [Mon, 27 May 2019 11:09:16 +0000 (13:09 +0200)]
Rollup merge of #4102 - Urriel:fix/4096_match_same_arms, r=flip1995

Fix match_same_arms to fail late

Changes:
- Add a function search_same_list which return a list of matched expressions
- Change the match_same_arms implementation behavior. It will lint each same arms found.

fixes #4096

changelog: none

5 years agoAuto merge of #3832 - HarrisonMc555:use_last, r=flip1995
bors [Mon, 27 May 2019 11:04:38 +0000 (11:04 +0000)]
Auto merge of #3832 - HarrisonMc555:use_last, r=flip1995

Implement "Use last" lint

Closes #3673

This lint checks the use of `x.get(x.len() - 1)` and suggests `x.last()` (where `x` is a `Vec`).

There's at least one more thing that needs to happen here. I believe I am correctly checking most of the scenarios and avoiding false positives. However, if different `Vec`s are used for the `x.get` and `y.len`, then it will emit a false positive. In other words, I need to check to make sure the `Vec`s are the same.

Also, a lot of these commits were temporary and not helpful to the project history...am I supposed to squash on merge? If so, how do I do that?

changelog: New lint: `get_last_with_len`

5 years agoAuto merge of #4148 - sanxiyn:typo, r=Manishearth
bors [Mon, 27 May 2019 03:38:19 +0000 (03:38 +0000)]
Auto merge of #4148 - sanxiyn:typo, r=Manishearth

Fix typo in comment

5 years agoFix typo in comment
Seo Sanghyeon [Mon, 27 May 2019 03:32:04 +0000 (12:32 +0900)]
Fix typo in comment

5 years agoAuto merge of #4145 - rust-lang:rustup, r=oli-obk
bors [Sun, 26 May 2019 15:36:38 +0000 (15:36 +0000)]
Auto merge of #4145 - rust-lang:rustup, r=oli-obk

Rustup to rustc 1.36.0-nightly (2268d9923 2019-05-26)

changelog: none

5 years agoRustfmt
Oliver Scherer [Sun, 26 May 2019 15:36:21 +0000 (17:36 +0200)]
Rustfmt

5 years agoRustup to rustc 1.36.0-nightly (2268d9923 2019-05-26)
Oliver Scherer [Sun, 26 May 2019 14:47:26 +0000 (16:47 +0200)]
Rustup to rustc 1.36.0-nightly (2268d9923 2019-05-26)

5 years agoRename "Associated*" to "Assoc*"
Andrew Xu [Sat, 25 May 2019 12:31:34 +0000 (20:31 +0800)]
Rename "Associated*" to "Assoc*"

This is to fix the breakage introduced by rust-lang/rust#60163.

5 years agoAuto merge of #4141 - phansch:rustup5, r=oli-obk
bors [Sat, 25 May 2019 07:50:39 +0000 (07:50 +0000)]
Auto merge of #4141 - phansch:rustup5, r=oli-obk

Rustup to https://github.com/rust-lang/rust/pull/61026

None

5 years agoRustup to https://github.com/rust-lang/rust/pull/61026
Philipp Hansch [Sat, 25 May 2019 07:45:07 +0000 (09:45 +0200)]
Rustup to https://github.com/rust-lang/rust/pull/61026

5 years agotweak `let_and_return` diagnostic
Andy Russell [Fri, 24 May 2019 18:09:43 +0000 (14:09 -0400)]
tweak `let_and_return` diagnostic

Label the unnecessary let binding and convert the note to structured
suggestion.

5 years agoAuto merge of #4135 - matthiaskrgr:rustup_obsol, r=phansch
bors [Fri, 24 May 2019 14:08:09 +0000 (14:08 +0000)]
Auto merge of #4135 - matthiaskrgr:rustup_obsol, r=phansch

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

changelog: none

5 years agorustup https://github.com/rust-lang/rust/pull/60803/
Matthias Krüger [Fri, 24 May 2019 13:25:36 +0000 (15:25 +0200)]
rustup https://github.com/rust-lang/rust/pull/60803/

5 years agoAuto merge of #4134 - phansch:rustup4, r=Manishearth
bors [Fri, 24 May 2019 06:24:12 +0000 (06:24 +0000)]
Auto merge of #4134 - phansch:rustup4, r=Manishearth

Rustup to https://github.com/rust-lang/rust/pull/59545

Needed due to signature changes of `item_children` in [the PR](https://github.com/rust-lang/rust/pull/59545/files) (just grep for `item_children` to see the changes)

I'm not really sure where the .stderr changes came from.

5 years agoRustup to https://github.com/rust-lang/rust/pull/59545
Philipp Hansch [Fri, 24 May 2019 06:19:51 +0000 (08:19 +0200)]
Rustup to https://github.com/rust-lang/rust/pull/59545

5 years agotrivially_copy_pass_by_ref: print size of type and limit in the lint message
Matthias Krüger [Mon, 6 May 2019 19:41:05 +0000 (21:41 +0200)]
trivially_copy_pass_by_ref: print size of type and limit in the lint message

5 years agoAuto merge of #4132 - phansch:rollup-0vxoimc, r=phansch
bors [Thu, 23 May 2019 19:29:17 +0000 (19:29 +0000)]
Auto merge of #4132 - phansch:rollup-0vxoimc, r=phansch

Rollup of 2 pull requests

Successful merges:

 - #4129 (update if_chain to 1.0.0)
 - #4130 (bump rustc_tools_util to 0.2.0 )

Failed merges:

r? @ghost

5 years agoRollup merge of #4130 - matthiaskrgr:rtu_2, r=phansch
Philipp Hansch [Thu, 23 May 2019 19:28:50 +0000 (21:28 +0200)]
Rollup merge of #4130 - matthiaskrgr:rtu_2, r=phansch

bump rustc_tools_util to 0.2.0

I want to push a new version to crates.io.

changelog: release rustc_tool_utils 0.2.0

5 years agoRollup merge of #4129 - matthiaskrgr:if_chain, r=phansch
Philipp Hansch [Thu, 23 May 2019 19:28:49 +0000 (21:28 +0200)]
Rollup merge of #4129 - matthiaskrgr:if_chain, r=phansch

update if_chain to 1.0.0

5 years agoAuto merge of #4131 - phansch:rustup2, r=phansch
bors [Thu, 23 May 2019 18:23:39 +0000 (18:23 +0000)]
Auto merge of #4131 - phansch:rustup2, r=phansch

Rustup to https://github.com/rust-lang/rust/pull/60965

https://github.com/rust-lang/rust/pull/60965

5 years agoRustup to https://github.com/rust-lang/rust/pull/60965
Philipp Hansch [Thu, 23 May 2019 18:19:00 +0000 (20:19 +0200)]
Rustup to https://github.com/rust-lang/rust/pull/60965

5 years agoclippy: bump rustc_tools util version to 0.2
Matthias Krüger [Thu, 23 May 2019 15:40:54 +0000 (17:40 +0200)]
clippy: bump rustc_tools util version to 0.2
rustc_tools_util: fix typo in docs (readme)

5 years agorustc_tool_utils: bump version to 0.2.0
Matthias Krüger [Thu, 23 May 2019 15:30:05 +0000 (17:30 +0200)]
rustc_tool_utils: bump version to 0.2.0

5 years agoupdate if_chain to 1.0.0
Matthias Krüger [Thu, 23 May 2019 15:23:59 +0000 (17:23 +0200)]
update if_chain to 1.0.0

5 years agoAuto merge of #4128 - matthiaskrgr:test_update, r=phansch
bors [Thu, 23 May 2019 15:12:29 +0000 (15:12 +0000)]
Auto merge of #4128 - matthiaskrgr:test_update, r=phansch

tests: update needless_bool test stderr

I'm getting a test failure otherwise with rust master (f688ba608923bdbf6b46ec65af2f6464b6233a75).

changelog: none

5 years agotests: update needless_bool test stderr
Matthias Krüger [Thu, 23 May 2019 15:03:59 +0000 (17:03 +0200)]
tests: update needless_bool test stderr

I'm getting a test failure otherwise with rust master (f688ba608923bdbf6b46ec65af2f6464b6233a75).

5 years agoAuto merge of #4126 - phansch:rustup, r=Manishearth
bors [Thu, 23 May 2019 05:43:15 +0000 (05:43 +0000)]
Auto merge of #4126 - phansch:rustup, r=Manishearth

Rustup to https://github.com/rust-lang/rust/pull/60740

https://github.com/rust-lang/rust/pull/60740

changelog: none

5 years agocargo fmt
Philipp Hansch [Thu, 23 May 2019 05:24:53 +0000 (07:24 +0200)]
cargo fmt

Roses are red
Violets are blue
`Add rustfmt to a pre-commit hook` is what I should do.

5 years agoRustup to https://github.com/rust-lang/rust/pull/60740
Philipp Hansch [Thu, 23 May 2019 05:19:25 +0000 (07:19 +0200)]
Rustup to https://github.com/rust-lang/rust/pull/60740

changelog: none

5 years agoAuto merge of #4120 - phansch:needless_lifetimes_async_test_cleanup, r=Manishearth
bors [Wed, 22 May 2019 10:44:39 +0000 (10:44 +0000)]
Auto merge of #4120 - phansch:needless_lifetimes_async_test_cleanup, r=Manishearth

Lifetimes UI test cleanup

* Removes an unneeded `#![warn(clippy::extra_unused_lifetimes)]` from
  the `needless_lifetimes` test - the tests for those are in a different
  file.

* Renames `unused_lt.{rs,stderr}` to `extra_unused_lifetimes.{rs,stderr}`
* Renames `lifetimes.{rs,stderr}` to `needless_lifetimes.{rs,stderr}`

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 agoFix breaking tests
Vincent Dal Maso [Mon, 20 May 2019 16:25:13 +0000 (18:25 +0200)]
Fix breaking tests

Changes:
- Fix stderr breaking the tests
- Adding tests over the if arms

5 years agoAdd the common case search
Vincent Dal Maso [Mon, 20 May 2019 08:22:13 +0000 (10:22 +0200)]
Add the common case search

Changes:
- Refactor the common case search into a function.
- Fix the useless Option around the vec in the search_same_list.

5 years agoFormatting inside if_chain! macro
Philipp Krones [Tue, 21 May 2019 07:33:59 +0000 (09:33 +0200)]
Formatting inside if_chain! macro

5 years agoImplement get_last_with_len lint
Harrison McCullough [Tue, 21 May 2019 00:01:21 +0000 (18:01 -0600)]
Implement get_last_with_len lint

5 years agoLifetimes UI test cleanup
Philipp Hansch [Mon, 20 May 2019 17:19:49 +0000 (19:19 +0200)]
Lifetimes UI test cleanup

* Removes an unneeded `#![warn(clippy::extra_unused_lifetimes)]` from
  the `needless_lifetimes` test - the tests for those are in a different
  file.

* Renames `unused_lt.{rs,stderr}` to `extra_unused_lifetimes.{rs,stderr}`
* Renames `lifetimes.{rs,stderr}` to `needless_lifetimes.{rs,stderr}`

5 years agoFix tests and make other ascii lints auto-fixable
BO41 [Mon, 20 May 2019 14:02:50 +0000 (16:02 +0200)]
Fix tests and make other ascii lints auto-fixable

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 agoMake non_ascii_literal auto-fixable
BO41 [Mon, 20 May 2019 13:23:38 +0000 (15:23 +0200)]
Make non_ascii_literal auto-fixable

5 years agoImprove verbosity of non_ascii_literal lint example
BO41 [Mon, 20 May 2019 13:08:53 +0000 (15:08 +0200)]
Improve verbosity of non_ascii_literal lint example

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