]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoPR comments
Joe Frikker [Sat, 22 Jun 2019 20:34:07 +0000 (16:34 -0400)]
PR comments

5 years agoAdding try_err lint
Joe Frikker [Wed, 19 Jun 2019 03:22:51 +0000 (23:22 -0400)]
Adding try_err lint

5 years agoAuto merge of #4220 - d-dorazio:4182-needless-return-void-functions, r=flip1995
bors [Sat, 22 Jun 2019 09:38:53 +0000 (09:38 +0000)]
Auto merge of #4220 - d-dorazio:4182-needless-return-void-functions, r=flip1995

make needless_return work with void functions

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

changelog: make needless_return work with void functions.

I don't think the failure is related to my changes, but I'm not sure :thinking:

5 years agoAuto merge of #4227 - lzutao:node-pruning, r=flip1995
bors [Sat, 22 Jun 2019 08:42:09 +0000 (08:42 +0000)]
Auto merge of #4227 - lzutao:node-pruning, r=flip1995

Fix fallout cause NodeId pruning

Rustup rust-lang/rust#61984

changelog: none

5 years agoFix fallout cause NodeId pruning
Lzu Tao [Sat, 22 Jun 2019 06:41:16 +0000 (13:41 +0700)]
Fix fallout cause NodeId pruning

5 years agocargo fmt
Daniele D'Orazio [Fri, 21 Jun 2019 14:47:34 +0000 (16:47 +0200)]
cargo fmt

5 years agoAuto merge of #4225 - jeremystucki:refactoring, r=flip1995
bors [Fri, 21 Jun 2019 13:47:13 +0000 (13:47 +0000)]
Auto merge of #4225 - jeremystucki:refactoring, r=flip1995

Remove needless lifetimes

changelog: none

5 years agomore idiomatic code
Daniele D'Orazio [Fri, 21 Jun 2019 12:46:34 +0000 (14:46 +0200)]
more idiomatic code

5 years agoAuto merge of #3919 - matthiaskrgr:readme_3, r=flip1995
bors [Fri, 21 Jun 2019 12:43:15 +0000 (12:43 +0000)]
Auto merge of #3919 - matthiaskrgr:readme_3, r=flip1995

readme: update

Remove the crates.io badge from the readme.
Installing clippy via crates.io is deprecated and rustup should be used instead, thus we should not promote crates.io here.

Don't have clippy::correctness" lint category in bold letters, I think it looks a little off.

5 years agoRemove another unnecessary lifetime
flip1995 [Fri, 21 Jun 2019 12:41:52 +0000 (14:41 +0200)]
Remove another unnecessary lifetime

5 years agoRemove needless lifetimes
Jeremy Stucki [Fri, 21 Jun 2019 11:31:20 +0000 (13:31 +0200)]
Remove needless lifetimes

5 years agoupdate tests and fix lints in clippy
Daniele D'Orazio [Thu, 20 Jun 2019 11:44:00 +0000 (13:44 +0200)]
update tests and fix lints in clippy

5 years agomake needless_return work with void functions
Daniele D'Orazio [Wed, 19 Jun 2019 12:56:02 +0000 (14:56 +0200)]
make needless_return work with void functions

5 years agoAuto merge of #4223 - mikerite:fix-breakage-2019-06-21, r=flip1995
bors [Fri, 21 Jun 2019 10:33:53 +0000 (10:33 +0000)]
Auto merge of #4223 - mikerite:fix-breakage-2019-06-21, r=flip1995

Fix breakage due to rust-lang/rust#61968

<!--
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 agoRemove unnecssary lifetime from trait_ref_of_method
flip1995 [Fri, 21 Jun 2019 10:32:39 +0000 (12:32 +0200)]
Remove unnecssary lifetime from trait_ref_of_method

5 years agoFix breakage due to rust-lang/rust#61968
Michael Wright [Fri, 21 Jun 2019 06:14:07 +0000 (08:14 +0200)]
Fix breakage due to rust-lang/rust#61968

5 years agoreadme: update
Matthias Krüger [Thu, 4 Apr 2019 09:28:11 +0000 (11:28 +0200)]
readme: update

Remove the crates.io badge from the readme.
Installing clippy via crates.io is deprecated and rustup should be used instead, thus we should not promote crates.io here.

Don't have the entire clippy::correctness line in bold letters, I think it looks a little off.

5 years agoAuto merge of #4221 - lzutao:redundant-lifetime, r=matthiaskrgr
bors [Wed, 19 Jun 2019 23:19:51 +0000 (23:19 +0000)]
Auto merge of #4221 - lzutao:redundant-lifetime, r=matthiaskrgr

Fix warnings about unnecessary lifetime bounds

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

changelog: none

5 years agoFix warnings about unnecessary lifetime bounds
Lzu Tao [Wed, 19 Jun 2019 18:36:23 +0000 (01:36 +0700)]
Fix warnings about unnecessary lifetime bounds

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

5 years agoAuto merge of #4218 - lzutao:rustup, r=phansch
bors [Wed, 19 Jun 2019 10:35:28 +0000 (10:35 +0000)]
Auto merge of #4218 - lzutao:rustup, r=phansch

Rustup

changelog: none

5 years agoFix lifetime mismatch between LateContext and Ty
Lzu Tao [Wed, 19 Jun 2019 10:16:42 +0000 (17:16 +0700)]
Fix lifetime mismatch between LateContext and Ty

5 years agoFix missing field in ExprKind::Yield
Lzu Tao [Wed, 19 Jun 2019 09:59:25 +0000 (16:59 +0700)]
Fix missing field in ExprKind::Yield

Rustup rust-lang/rust#61941

5 years agoAuto merge of #4210 - dtolnay:division, r=flip1995
bors [Wed, 19 Jun 2019 07:57:27 +0000 (07:57 +0000)]
Auto merge of #4210 - dtolnay:division, r=flip1995

Downgrade integer_division to restriction

I believe that this lint falls outside of the scope of opinionated pedantism of the other pedantic lints.

changelog: Downgrade integer_division lint from pedantic to restriction

5 years agoAuto merge of #4217 - Manishearth:clog, r=flip1995
bors [Wed, 19 Jun 2019 07:19:26 +0000 (07:19 +0000)]
Auto merge of #4217 - Manishearth:clog, r=flip1995

Update changelog headings

1.36 is beta now

changelog: none

5 years agoUnify heading style
flip1995 [Wed, 19 Jun 2019 07:18:19 +0000 (09:18 +0200)]
Unify heading style

5 years agoMake headings stable
Manish Goregaokar [Tue, 18 Jun 2019 22:12:18 +0000 (15:12 -0700)]
Make headings stable

5 years agoUpdate changelog
Manish Goregaokar [Tue, 18 Jun 2019 22:09:53 +0000 (15:09 -0700)]
Update changelog

5 years agoAuto merge of #4216 - phansch:replace_nodeset, r=matthiaskrgr
bors [Tue, 18 Jun 2019 18:38:30 +0000 (18:38 +0000)]
Auto merge of #4216 - phansch:replace_nodeset, r=matthiaskrgr

Refactor: Replace NodeSet with HirIdSet

This saves us one HirId -> NodeId conversion.

changelog: none

5 years agoRefactor: Replace NodeSet with HirIdSet
Philipp Hansch [Tue, 18 Jun 2019 17:45:01 +0000 (19:45 +0200)]
Refactor: Replace NodeSet with HirIdSet

This saves us one HirId -> NodeId conversion.

5 years agoAuto merge of #4215 - matthiaskrgr:rustup_9, r=flip1995
bors [Tue, 18 Jun 2019 10:05:04 +0000 (10:05 +0000)]
Auto merge of #4215 - matthiaskrgr:rustup_9, r=flip1995

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

changelog: none

5 years agorustup https://github.com/rust-lang/rust/pull/61836/
Matthias Krüger [Tue, 18 Jun 2019 09:15:47 +0000 (11:15 +0200)]
rustup https://github.com/rust-lang/rust/pull/61836/

5 years agoAuto merge of #4214 - d-dorazio:4204-fix-float-cmp-neq, r=flip1995
bors [Mon, 17 Jun 2019 15:18:31 +0000 (15:18 +0000)]
Auto merge of #4214 - d-dorazio:4204-fix-float-cmp-neq, r=flip1995

fix suggestion for floating point inequality

It should be of the form `(a - b).abs() > error` whereas it was `(a - b).abs() < error` that is instead what should be used for equality.

fixes #4204.

changelog: fix suggestion for floating point inequality

5 years agofix suggestion for floating points inequality
Daniele D'Orazio [Mon, 17 Jun 2019 14:42:41 +0000 (16:42 +0200)]
fix suggestion for floating points inequality

It should be of the form `(a - b).abs() > error` whereas it was
`(a - b).abs() < error` that is instead what should be used for equality.

5 years agoDowngrade integer_division to restriction
David Tolnay [Sat, 15 Jun 2019 07:11:53 +0000 (00:11 -0700)]
Downgrade integer_division to restriction

5 years agoAuto merge of #4209 - lzutao:TyCtxt-lifetime, r=Manishearth
bors [Fri, 14 Jun 2019 20:45:56 +0000 (20:45 +0000)]
Auto merge of #4209 - lzutao:TyCtxt-lifetime, r=Manishearth

Fix wrong lifetime of TyCtxt

Rustup rust-lang/rust#61817

changelog: none

5 years agoFix wrong lifetime of TyCtxt
Lzu Tao [Fri, 14 Jun 2019 16:47:48 +0000 (23:47 +0700)]
Fix wrong lifetime of TyCtxt

5 years agoAuto merge of #4206 - rust-lang:update_lints, r=phansch
bors [Fri, 14 Jun 2019 12:55:22 +0000 (12:55 +0000)]
Auto merge of #4206 - rust-lang:update_lints, r=phansch

Use replace_region_in_file for creating the lint list

r? @phansch

changelog: none

5 years agoUse replace_region_in_file for creating the lint list
flip1995 [Fri, 14 Jun 2019 08:36:43 +0000 (10:36 +0200)]
Use replace_region_in_file for creating the lint list

5 years agoAuto merge of #4162 - krk:static-static, r=flip1995
bors [Fri, 14 Jun 2019 08:47:43 +0000 (08:47 +0000)]
Auto merge of #4162 - krk:static-static, r=flip1995

Add lint for statics with explicit static lifetime.

changelog: Add lint for statics with explicit static lifetime, fixes #4138.

5 years agoRestructure rename tests
flip1995 [Fri, 14 Jun 2019 07:54:34 +0000 (09:54 +0200)]
Restructure rename tests

5 years agoRegister rename to the LintStore.
krk [Thu, 13 Jun 2019 21:54:05 +0000 (23:54 +0200)]
Register rename to the LintStore.

5 years agoRename REDUNDANT_STATIC_LIFETIME to REDUNDANT_STATIC_LIFETIMES.
krk [Thu, 13 Jun 2019 21:47:06 +0000 (23:47 +0200)]
Rename REDUNDANT_STATIC_LIFETIME to REDUNDANT_STATIC_LIFETIMES.

5 years agoRemove pub from RedundantStaticLifetime.visit_type function.
Kerem [Wed, 12 Jun 2019 17:57:49 +0000 (19:57 +0200)]
Remove pub from RedundantStaticLifetime.visit_type function.

Co-Authored-By: Philipp Krones <hello@philkrones.com>
5 years agoRename const_static_lifetime to redundant_static_lifetime.
krk [Tue, 11 Jun 2019 19:52:18 +0000 (21:52 +0200)]
Rename const_static_lifetime to redundant_static_lifetime.

5 years agoMerge StaticConst and StaticStatic lints into StaticConst.
krk [Tue, 11 Jun 2019 19:32:38 +0000 (21:32 +0200)]
Merge StaticConst and StaticStatic lints into StaticConst.

5 years agoUse RedundantStaticLifetime in StaticStatic.
krk [Mon, 10 Jun 2019 17:25:00 +0000 (19:25 +0200)]
Use RedundantStaticLifetime in StaticStatic.

5 years agoMove type-checking logic in StaticConst to RedundantStaticLifetime.
krk [Mon, 10 Jun 2019 17:01:05 +0000 (19:01 +0200)]
Move type-checking logic in StaticConst to RedundantStaticLifetime.

5 years agoAdd lint for statics with explicit static lifetime.
krk [Sat, 1 Jun 2019 10:10:15 +0000 (12:10 +0200)]
Add lint for statics with explicit static lifetime.

5 years agoAuto merge of #4175 - yaahallo:master, r=oli-obk
bors [Thu, 13 Jun 2019 08:51:53 +0000 (08:51 +0000)]
Auto merge of #4175 - yaahallo:master, r=oli-obk

Implement better help for clippy-driver

https://github.com/rust-lang/rust-clippy/issues/4173

5 years agoAuto merge of #4201 - mgr-inz-rafal:typos_in_docs, r=matthiaskrgr
bors [Thu, 13 Jun 2019 05:01:02 +0000 (05:01 +0000)]
Auto merge of #4201 - mgr-inz-rafal:typos_in_docs, r=matthiaskrgr

Typos and minor grammar corrections

Just some minor grammar issues and typos in documentation.

5 years agoAuto merge of #4200 - lzutao:tyctxt-lifetime, r=matthiaskrgr
bors [Wed, 12 Jun 2019 22:54:02 +0000 (22:54 +0000)]
Auto merge of #4200 - lzutao:tyctxt-lifetime, r=matthiaskrgr

Fix wrong lifetime of TyCtxt

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

changelog: none

5 years agoFix wrong lifetime of TyCtxt
Lzu Tao [Wed, 12 Jun 2019 17:27:14 +0000 (00:27 +0700)]
Fix wrong lifetime of TyCtxt

5 years agotravis: Wait at most 30 minutes for base test
Lzu Tao [Wed, 12 Jun 2019 19:18:54 +0000 (02:18 +0700)]
travis: Wait at most 30 minutes for base test

Sometimes travis gets slow and makes the builds spurious failure because
of no output in 10 minutes. This commit increase Travis timing-out time
at most 30 minutes before terminating the build.

5 years agominor fix
Jane Lusby [Wed, 12 Jun 2019 19:29:23 +0000 (12:29 -0700)]
minor fix

5 years agomake it pass dogfood
Jane Lusby [Mon, 10 Jun 2019 22:47:31 +0000 (15:47 -0700)]
make it pass dogfood

5 years agorun rustfmt
Jane Lusby [Mon, 10 Jun 2019 18:14:54 +0000 (11:14 -0700)]
run rustfmt

5 years agofix padding and put clippy someplaces
Jane Lusby [Mon, 10 Jun 2019 18:03:51 +0000 (11:03 -0700)]
fix padding and put clippy someplaces

5 years agoshow default lint levels
Jane Lusby [Sun, 9 Jun 2019 00:08:16 +0000 (17:08 -0700)]
show default lint levels

5 years agogroup printing
Jane Lusby [Sat, 8 Jun 2019 21:49:33 +0000 (14:49 -0700)]
group printing

5 years agoprelim arg parse
Jane Lusby [Sat, 8 Jun 2019 21:19:16 +0000 (14:19 -0700)]
prelim arg parse

5 years agomove Lint static def into its own module
Jane Lusby [Sat, 8 Jun 2019 18:47:24 +0000 (11:47 -0700)]
move Lint static def into its own module

5 years agoswitch to sorted usable lints
Jane Lusby [Sat, 8 Jun 2019 18:29:27 +0000 (11:29 -0700)]
switch to sorted usable lints

5 years agoUpdate clippy_dev/src/main.rs
Jane Lusby [Thu, 6 Jun 2019 22:19:42 +0000 (15:19 -0700)]
Update clippy_dev/src/main.rs

Co-Authored-By: Philipp Krones <hello@philkrones.com>
5 years agoinitial commit for help improvements on clippy-driver
Jane Lusby [Wed, 5 Jun 2019 00:32:03 +0000 (17:32 -0700)]
initial commit for help improvements on clippy-driver

5 years agoTypos and minor grammar corrections
mgr-inz-rafal [Wed, 12 Jun 2019 18:07:10 +0000 (20:07 +0200)]
Typos and minor grammar corrections

5 years agoAuto merge of #4195 - thiagoarrais:division-of-integer-literals, r=flip1995
bors [Wed, 12 Jun 2019 13:19:26 +0000 (13:19 +0000)]
Auto merge of #4195 - thiagoarrais:division-of-integer-literals, r=flip1995

Adds lint for integer division

Hi, folks! This is my first contribution to clippy and my first real piece of Rust code.

This is supposed to add a lint that warns for division of integers (#109). Please let me know if you need any changes.

Fixes #109

changelog: Add lint for integer division

5 years agoAdds lint for integer division
Thiago Arrais [Tue, 11 Jun 2019 16:53:12 +0000 (13:53 -0300)]
Adds lint for integer division

5 years agoAuto merge of #4191 - g-bartoszek:redundant-closure-deref, r=flip1995
bors [Wed, 12 Jun 2019 11:56:24 +0000 (11:56 +0000)]
Auto merge of #4191 - g-bartoszek:redundant-closure-deref, r=flip1995

redundant_closure_for_method_calls fixes

lint does not trigger when there is a difference in mutability
lint does not trigger when the method belongs to a trait which is not implemebted directly (Deref)

<!--
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 agoredundant_closure_for_method_calls fixes:
Grzegorz [Sun, 9 Jun 2019 11:24:34 +0000 (13:24 +0200)]
redundant_closure_for_method_calls fixes:
lint does not trigger when there is a difference in mutability
lint does not trigger when the method belongs to a trait which is not implemebted directly (Deref)

5 years agoAuto merge of #4199 - flip1995:implicit_return_docs, r=flip1995
bors [Wed, 12 Jun 2019 09:58:24 +0000 (09:58 +0000)]
Auto merge of #4199 - flip1995:implicit_return_docs, r=flip1995

Fix implicit_return docs

Resolves #4197

changelog: none

5 years agoAuto merge of #4198 - matthiaskrgr:rustup_8, r=flip1995
bors [Wed, 12 Jun 2019 09:29:00 +0000 (09:29 +0000)]
Auto merge of #4198 - matthiaskrgr:rustup_8, r=flip1995

rustup

changelog: none

cc @lzutao

r? @phansch

5 years agoFix implicit_return docs
flip1995 [Wed, 12 Jun 2019 08:51:14 +0000 (10:51 +0200)]
Fix implicit_return docs

5 years agorustup https://github.com/rust-lang/rust/pull/61758/files
Matthias Krüger [Wed, 12 Jun 2019 08:28:58 +0000 (10:28 +0200)]
rustup https://github.com/rust-lang/rust/pull/61758/files

5 years agoRemove wrong lifetime from LintContext
Lzu Tao [Wed, 12 Jun 2019 03:07:48 +0000 (10:07 +0700)]
Remove wrong lifetime from LintContext

5 years agoAuto merge of #4190 - projedi:fix-eta, r=flip1995
bors [Mon, 10 Jun 2019 19:03:18 +0000 (19:03 +0000)]
Auto merge of #4190 - projedi:fix-eta, r=flip1995

Fixing eta with respect to lazy evaluation.

This fixes #4187

changelog: `redundant_closure`: stop linting on expressions returning a function, which is then directly used by the closure

5 years agoWorkaround for rust-lang/rustfmt#3615
Alexander Shabalin [Mon, 10 Jun 2019 17:19:29 +0000 (20:19 +0300)]
Workaround for rust-lang/rustfmt#3615

5 years agoFixing eta with respect to lazy evaluation.
Alexander Shabalin [Mon, 10 Jun 2019 09:22:33 +0000 (12:22 +0300)]
Fixing eta with respect to lazy evaluation.

5 years agoAuto merge of #4188 - matthiaskrgr:rustup_7, r=Manishearth
bors [Sun, 9 Jun 2019 18:59:35 +0000 (18:59 +0000)]
Auto merge of #4188 - matthiaskrgr:rustup_7, r=Manishearth

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

changelog: none

5 years agotravis: disable rls integration test.
Matthias Krüger [Sun, 9 Jun 2019 18:53:24 +0000 (20:53 +0200)]
travis: disable rls integration test.

5 years agorustup https://github.com/rust-lang/rust/pull/61669/
Matthias Krüger [Sun, 9 Jun 2019 13:21:28 +0000 (15:21 +0200)]
rustup https://github.com/rust-lang/rust/pull/61669/

5 years agoAuto merge of #4185 - mikerite:outer_expn_info, r=Manishearth
bors [Sat, 8 Jun 2019 14:00:02 +0000 (14:00 +0000)]
Auto merge of #4185 - mikerite:outer_expn_info, r=Manishearth

Add OUTER_EXPN_INFO lint

changelog: none

5 years agoAdd OUTER_EXPN_INFO lint
Michael Wright [Sat, 8 Jun 2019 11:32:43 +0000 (13:32 +0200)]
Add OUTER_EXPN_INFO lint

5 years agoAuto merge of #4177 - mikerite:compiler_lint_functions_fewer_strings, r=phansch
bors [Thu, 6 Jun 2019 10:25:13 +0000 (10:25 +0000)]
Auto merge of #4177 - mikerite:compiler_lint_functions_fewer_strings, r=phansch

Remove `to_string()`s from CompilerLintFunctions

changelog: none

5 years agoAuto merge of #4136 - euclio:println-writeln-suggestions, r=flip1995
bors [Thu, 6 Jun 2019 08:26:48 +0000 (08:26 +0000)]
Auto merge of #4136 - euclio:println-writeln-suggestions, r=flip1995

add suggestions for print/write with newline lint

changelog: Add machine-applicable suggestions for `print!`/`write!` with newline lints.

5 years agoAuto merge of #4178 - matthiaskrgr:rustup_6, r=oli-obk
bors [Thu, 6 Jun 2019 07:28:10 +0000 (07:28 +0000)]
Auto merge of #4178 - matthiaskrgr:rustup_6, r=oli-obk

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

changelog: none

5 years agorustup https://github.com/rust-lang/rust/pull/57428/
Matthias Krüger [Thu, 6 Jun 2019 07:21:19 +0000 (09:21 +0200)]
rustup https://github.com/rust-lang/rust/pull/57428/

5 years agoRemove `to_string()`s from CompilerLintFunctions
Michael Wright [Thu, 6 Jun 2019 05:12:12 +0000 (07:12 +0200)]
Remove `to_string()`s from CompilerLintFunctions

5 years agoAuto merge of #4164 - mikerite:fix-4144, r=mikerite
bors [Tue, 4 Jun 2019 06:28:23 +0000 (06:28 +0000)]
Auto merge of #4164 - mikerite:fix-4144, r=mikerite

Fix .map(..).unwrap_or_else(..) bad suggestion

Closes #4144

5 years agoFix comment grammar
mikerite [Tue, 4 Jun 2019 06:27:31 +0000 (08:27 +0200)]
Fix comment grammar

Co-Authored-By: Philipp Krones <hello@philkrones.com>
5 years agoAuto merge of #4168 - lzutao:fix-script, r=flip1995
bors [Mon, 3 Jun 2019 09:39:23 +0000 (09:39 +0000)]
Auto merge of #4168 - lzutao:fix-script, r=flip1995

Do not install rustup-toolchain if it is in PATH

I find it quiet annoying because I manually build `rustup-toolchain-install-master`
and install it in `PATH` other than in `~/.cargo/bin`. So everytime I run the script,
it always reinstall `rustup-toolchain-install-master` for me.

changelog: none

5 years agoAuto merge of #4165 - BO41:needless_range_loop, r=phansch
bors [Mon, 3 Jun 2019 08:28:15 +0000 (08:28 +0000)]
Auto merge of #4165 - BO41:needless_range_loop, r=phansch

Add example to needless_range_loop

adds a "could be written as" example

btw, is it correct that the lint triggers even if the index is used not just for getting the values by index?
So that I have to add `.iter().enumerate()` to still get an index?

changelog: none

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 agoDo not install rustup-toolchain if it is in PATH
Lzu Tao [Mon, 3 Jun 2019 02:23:15 +0000 (09:23 +0700)]
Do not install rustup-toolchain if it is in PATH

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 agoChange from ignore to rust
BO41 [Sun, 2 Jun 2019 18:06:50 +0000 (20:06 +0200)]
Change from ignore to rust

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