]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoRollup merge of #4509 - sinkuu:redundant_clone_fix, r=llogiq
Phil Hansch [Fri, 4 Oct 2019 06:08:58 +0000 (08:08 +0200)]
Rollup merge of #4509 - sinkuu:redundant_clone_fix, r=llogiq

Fix false-positive of redundant_clone and move to clippy::perf

This PR introduces dataflow analysis to `redundant_clone` lint to filter out borrowed variables, which had been incorrectly detected.

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

changelog: Moved `redundant_clone` lint to `perf` group

# What this lint catches

## `clone`/`to_owned`

```rust
let s = String::new();
let t = s.clone();
```

```rust
// MIR
_1 = String::new();
_2 = &_1;
_3 = clone(_2); // (*)
```

We can turn this `clone` call into a move if

1. `_2` is the sole borrow of `_1` at the statement `(*)`
2. `_1` is not used hereafter

## `Deref` + type-specific `to_owned` method

```rust
let s = std::path::PathBuf::new();
let t = s.to_path_buf();
```

```rust
// MIR
_1 = PathBuf::new();
_2 = &1;
_3 = call deref(_2);
_4 = _3;                         // Copies borrow
StorageDead(_2);
_5 = Path::to_path_buf(_4); // (*)
```

We can turn this `to_path_buf` call into a move if

1. `_3` `_4` are the sole borrow of `_1` at `(*)`
2. `_1` is not used hereafter

# What this PR introduces

1. `MaybeStorageLive` that determines whether a local lives at a particular location
2. `PossibleBorrowerVisitor` that constructs [`TransitiveRelation`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_data_structures/transitive_relation/struct.TransitiveRelation.html) of possible borrows, e.g. visiting `_2 = &1; _3 = &_2:` will result in `_3 -> _2 -> _1` relation. Then `_3` and `_2` will be counted as possible borrowers of `_1` in the sole-borrow analysis above.

4 years agoAuto merge of #4624 - sinkuu:workaround_cargo, r=llogiq
bors [Fri, 4 Oct 2019 05:42:25 +0000 (05:42 +0000)]
Auto merge of #4624 - sinkuu:workaround_cargo, r=llogiq

Workaround cargo issue on appveyor

Use absolute paths for `cargo` and `rustfmt` to workaround https://github.com/rust-lang/cargo/issues/7475.

Appveyor passed on my fork: https://ci.appveyor.com/project/sinkuu/rust-clippy/builds/27870367

changelog: none

4 years agoUse home::cargo_home
Shotaro Yamada [Fri, 4 Oct 2019 02:05:44 +0000 (11:05 +0900)]
Use home::cargo_home

4 years agoWorkaround cargo bug on Windows
Shotaro Yamada [Fri, 4 Oct 2019 00:56:45 +0000 (09:56 +0900)]
Workaround cargo bug on Windows

4 years agoextern rustc_index
Shotaro Yamada [Tue, 1 Oct 2019 23:02:18 +0000 (08:02 +0900)]
extern rustc_index

4 years agoAdd comments
Shotaro Yamada [Mon, 30 Sep 2019 07:16:09 +0000 (16:16 +0900)]
Add comments

4 years agoResolve reviews
Shotaro Yamada [Sat, 28 Sep 2019 11:29:35 +0000 (20:29 +0900)]
Resolve reviews

4 years agoApply suggestion
Shotaro Yamada [Wed, 18 Sep 2019 05:56:30 +0000 (14:56 +0900)]
Apply suggestion

Co-Authored-By: ecstatic-morse <ecstaticmorse@gmail.com>
4 years agoTest fixes
Shotaro Yamada [Mon, 16 Sep 2019 15:50:36 +0000 (00:50 +0900)]
Test fixes

4 years agoAdd run-rustfix
Shotaro Yamada [Tue, 10 Sep 2019 02:56:34 +0000 (11:56 +0900)]
Add run-rustfix

4 years agoFix false-positive of redundant_clone and move to clippy::perf
Shotaro Yamada [Mon, 16 Sep 2019 15:50:15 +0000 (00:50 +0900)]
Fix false-positive of redundant_clone and move to clippy::perf

4 years agoAuto merge of #4599 - lzutao:zero-ptr-suggestion, r=flip1995
bors [Wed, 2 Oct 2019 17:16:29 +0000 (17:16 +0000)]
Auto merge of #4599 - lzutao:zero-ptr-suggestion, r=flip1995

Add suggestion for zero-ptr lint

changelog: Improve suggestion of `zero_ptr` lint

4 years agoAuto merge of #4603 - rust-lang:needless-doc-main, r=flip1995
bors [Wed, 2 Oct 2019 15:51:58 +0000 (15:51 +0000)]
Auto merge of #4603 - rust-lang:needless-doc-main, r=flip1995

New lint: needless_doc_main

changelog: Add `needless_doc_main` lint

4 years agoAdd suggestion for zero-ptr lint
Lzu Tao [Wed, 2 Oct 2019 15:38:00 +0000 (22:38 +0700)]
Add suggestion for zero-ptr lint

4 years agoNew lint: needless_doc_main
Andre Bogus [Mon, 30 Sep 2019 22:10:24 +0000 (00:10 +0200)]
New lint: needless_doc_main

4 years agoAuto merge of #4590 - flip1995:ice_4579, r=Manishearth
bors [Wed, 2 Oct 2019 08:56:56 +0000 (08:56 +0000)]
Auto merge of #4590 - flip1995:ice_4579, r=Manishearth

Fix ICE #4579

Fixes #4579
Fixes #4584

r? @phansch

changelog: Fix ICE caused by Clippys const-utils

4 years agoDisable hyper and futures-rs integration tests
flip1995 [Wed, 2 Oct 2019 08:55:52 +0000 (10:55 +0200)]
Disable hyper and futures-rs integration tests

4 years agoFix ICE #4579
flip1995 [Fri, 27 Sep 2019 13:36:56 +0000 (15:36 +0200)]
Fix ICE #4579

4 years agoAdd regression test for ICE #4579
flip1995 [Fri, 27 Sep 2019 13:36:20 +0000 (15:36 +0200)]
Add regression test for ICE #4579

4 years agoMerge pull request #4606 from Manishearth/rustup
Manish Goregaokar [Wed, 2 Oct 2019 00:53:14 +0000 (17:53 -0700)]
Merge pull request #4606 from Manishearth/rustup

Fix some tests

4 years agoRemove tests that only ICE on CI
Manish Goregaokar [Tue, 1 Oct 2019 23:45:07 +0000 (16:45 -0700)]
Remove tests that only ICE on CI

4 years agoAllow const_err in out_of_bounds_indexing tests
Manish Goregaokar [Tue, 1 Oct 2019 23:37:22 +0000 (16:37 -0700)]
Allow const_err in out_of_bounds_indexing tests

4 years agoMerge pull request #4604 from Manishearth/rustup
Manish Goregaokar [Tue, 1 Oct 2019 18:30:22 +0000 (11:30 -0700)]
Merge pull request #4604 from Manishearth/rustup

Rustup to rustc 1.40.0-nightly (702b45e40 2019-10-01)

4 years agoUse new spans for expansion checking in loop lints
Manish Goregaokar [Tue, 1 Oct 2019 17:14:15 +0000 (10:14 -0700)]
Use new spans for expansion checking in loop lints

4 years agoAuto merge of #4601 - lzutao:clean-up-unused-vars, r=phansch
bors [Sun, 29 Sep 2019 17:05:36 +0000 (17:05 +0000)]
Auto merge of #4601 - lzutao:clean-up-unused-vars, r=phansch

Clean up some unused vars

changelog: none

4 years agoClean up some unused vars
Lzu Tao [Sun, 29 Sep 2019 16:40:38 +0000 (23:40 +0700)]
Clean up some unused vars

4 years agoAuto merge of #4600 - lzutao:rustup-63492, r=oli-obk
bors [Sun, 29 Sep 2019 16:06:56 +0000 (16:06 +0000)]
Auto merge of #4600 - lzutao:rustup-63492, r=oli-obk

Rustup rust-lang/rust#63492

changelog: none

4 years agoRustup rust-lang/rust#63492
Lzu Tao [Sun, 29 Sep 2019 15:58:17 +0000 (22:58 +0700)]
Rustup rust-lang/rust#63492

4 years agoAuto merge of #4593 - james9909:fix-multiple-inherent-impls, r=llogiq
bors [Sun, 29 Sep 2019 06:21:55 +0000 (06:21 +0000)]
Auto merge of #4593 - james9909:fix-multiple-inherent-impls, r=llogiq

Fix false positive in `multiple_inherent_impl`

changelog: Fix false positive in `multiple_inherent_impl` by ignoring impls derived from macros.

Closes #4578.

4 years agoAuto merge of #4594 - matthiaskrgr:rustup_18, r=phansch
bors [Sat, 28 Sep 2019 09:51:08 +0000 (09:51 +0000)]
Auto merge of #4594 - matthiaskrgr:rustup_18, r=phansch

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

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

changelog: none

4 years agorustup https://github.com/rust-lang/rust/pull/64781/
Matthias Krüger [Sat, 28 Sep 2019 08:42:41 +0000 (10:42 +0200)]
rustup https://github.com/rust-lang/rust/pull/64781/

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

4 years agoIgnore impls derived from macros
James Wang [Sat, 28 Sep 2019 01:46:55 +0000 (20:46 -0500)]
Ignore impls derived from macros

4 years agoAuto merge of #4591 - flip1995:rustup, r=flip1995
bors [Fri, 27 Sep 2019 16:19:14 +0000 (16:19 +0000)]
Auto merge of #4591 - flip1995:rustup, r=flip1995

Rustup to rust-lang/rust#64813

cc rust-lang/rust#64843

changelog: none

4 years agoRemove clippy::author attribute from trailing_zeroes test
flip1995 [Fri, 27 Sep 2019 16:10:18 +0000 (18:10 +0200)]
Remove clippy::author attribute from trailing_zeroes test

4 years agoMove author issue test to author subdir
flip1995 [Fri, 27 Sep 2019 16:07:07 +0000 (18:07 +0200)]
Move author issue test to author subdir

4 years agoFix author lint
flip1995 [Fri, 27 Sep 2019 16:01:04 +0000 (18:01 +0200)]
Fix author lint

4 years agoRustup to rust-lang/rust#64813
flip1995 [Fri, 27 Sep 2019 15:16:06 +0000 (17:16 +0200)]
Rustup to rust-lang/rust#64813

4 years agoAuto merge of #4589 - mikerite:booleans-refactor-20190925, r=phansch
bors [Fri, 27 Sep 2019 06:16:55 +0000 (06:16 +0000)]
Auto merge of #4589 - mikerite:booleans-refactor-20190925, r=phansch

Refactor `booleans`

Remove unused output from `suggest(..)`

changelog: none

4 years agoRefactor `booleans`
Michael Wright [Fri, 27 Sep 2019 05:59:34 +0000 (07:59 +0200)]
Refactor `booleans`

Remove unused output from `suggest(..)`

4 years agoAuto merge of #4585 - michaelsproul:arith-assign-op, r=llogiq
bors [Fri, 27 Sep 2019 04:46:06 +0000 (04:46 +0000)]
Auto merge of #4585 - michaelsproul:arith-assign-op, r=llogiq

Detect mutating arithmetic in integer_arithmetic restriction lint

changelog: detect mutating arithmetic (like +=) in `integer_arithmetic` restriction lint

4 years agoDetect assignment ops in integer_arithmetic
Michael Sproul [Thu, 26 Sep 2019 07:47:06 +0000 (17:47 +1000)]
Detect assignment ops in integer_arithmetic

4 years agoAuto merge of #4582 - matthiaskrgr:rustup_17, r=Manishearth
bors [Thu, 26 Sep 2019 17:32:24 +0000 (17:32 +0000)]
Auto merge of #4582 - matthiaskrgr:rustup_17, r=Manishearth

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

changelog: none

4 years agorustup https://github.com/rust-lang/rust/pull/64515
Matthias Krüger [Thu, 26 Sep 2019 16:34:43 +0000 (18:34 +0200)]
rustup https://github.com/rust-lang/rust/pull/64515

changelog: none

4 years agoAuto merge of #4581 - Manishearth:osx-enable, r=matthiaskrgr
bors [Thu, 26 Sep 2019 10:33:44 +0000 (10:33 +0000)]
Auto merge of #4581 - Manishearth:osx-enable, r=matthiaskrgr

Re enable OSX builders

Fixes #4576

changelog: none

4 years agoRe enable OSX builders
Manish Goregaokar [Thu, 26 Sep 2019 10:31:06 +0000 (03:31 -0700)]
Re enable OSX builders

Fixes #4576

4 years agoAuto merge of #4580 - lzutao:rustup, r=flip1995
bors [Thu, 26 Sep 2019 09:13:59 +0000 (09:13 +0000)]
Auto merge of #4580 - lzutao:rustup, r=flip1995

Rustup rust-lang/rust#64513

changelog: none

4 years agoRemove unused import
Lzu Tao [Thu, 26 Sep 2019 09:04:45 +0000 (16:04 +0700)]
Remove unused import

4 years agoRustup https://github.com/rust-lang/rust/pull/64513
Lzu Tao [Thu, 26 Sep 2019 09:03:36 +0000 (16:03 +0700)]
Rustup https://github.com/rust-lang/rust/pull/64513

4 years agoAuto merge of #4568 - mikerite:fix-4548, r=flip1995
bors [Thu, 26 Sep 2019 08:06:16 +0000 (08:06 +0000)]
Auto merge of #4568 - mikerite:fix-4548, r=flip1995

Fix `nonminimal-bool` false positive

Closes #4548
Closes #3847

changelog: Fix `nonminimal-bool` false positive

4 years agoAuto merge of #4569 - james9909:add-comparison-chain, r=oli-obk
bors [Thu, 26 Sep 2019 07:38:08 +0000 (07:38 +0000)]
Auto merge of #4569 - james9909:add-comparison-chain, r=oli-obk

Add a new lint for comparison chains

changelog: Adds a new lint: `comparison_chain`.

`comparison_chain` lints all `if` conditional chains where all the conditions are binary comparisons on the same two operands and will suggest a rewrite with `match`.

Closes #4531.

4 years agoAuto merge of #4570 - lzutao:call_site_toplevel_ref_arg, r=phansch
bors [Thu, 26 Sep 2019 06:02:21 +0000 (06:02 +0000)]
Auto merge of #4570 - lzutao:call_site_toplevel_ref_arg, r=phansch

Fix macro expansion in toplevel_ref_arg lint

changelog: Fix macro expansion in toplevel_ref_arg lint

4 years agoRemove unused attribute in test
Lzu Tao [Thu, 26 Sep 2019 01:53:39 +0000 (01:53 +0000)]
Remove unused attribute in test

4 years agoFix macro expansion in toplevel_ref_arg lint
Lzu Tao [Thu, 26 Sep 2019 01:46:51 +0000 (08:46 +0700)]
Fix macro expansion in toplevel_ref_arg lint

4 years agoAdd regression test for macro expansion
Lzu Tao [Wed, 25 Sep 2019 04:06:52 +0000 (11:06 +0700)]
Add regression test for macro expansion

4 years agoAuto merge of #4575 - Manishearth:suggestions, r=oli-obk
bors [Wed, 25 Sep 2019 21:54:14 +0000 (21:54 +0000)]
Auto merge of #4575 - Manishearth:suggestions, r=oli-obk

Make more tests rustfixable

Fixes https://github.com/rust-lang/rust-clippy/issues/3630

changelog: Improve suggestions for many lints in preparation for `cargo fix --clippy`

r? @phansch @yaahc

4 years agoDowngrade op_ref to a MaybeIncorrect suggestion
Manish Goregaokar [Wed, 25 Sep 2019 21:53:20 +0000 (14:53 -0700)]
Downgrade op_ref to a MaybeIncorrect suggestion

4 years agounnecessary_operation: make test rustfixable
Manish Goregaokar [Wed, 25 Sep 2019 17:49:56 +0000 (10:49 -0700)]
unnecessary_operation: make test rustfixable

4 years agounnecessary_clone: split rustfixable lint out into separate test
Manish Goregaokar [Wed, 25 Sep 2019 17:46:14 +0000 (10:46 -0700)]
unnecessary_clone: split rustfixable lint out into separate test

4 years agostring_add, string_add_assign: split tests, make one rustfixable
Manish Goregaokar [Wed, 25 Sep 2019 17:33:48 +0000 (10:33 -0700)]
string_add, string_add_assign: split tests, make one rustfixable

4 years agoredundant_static_lifetimes: split test, make rustfixable
Manish Goregaokar [Wed, 25 Sep 2019 17:21:08 +0000 (10:21 -0700)]
redundant_static_lifetimes: split test, make rustfixable

4 years agorenamed_builtin_attr: make test rustfixable
Manish Goregaokar [Wed, 25 Sep 2019 17:08:19 +0000 (10:08 -0700)]
renamed_builtin_attr: make test rustfixable

4 years agoredundant_pattern_matching: make rustfixable
Manish Goregaokar [Wed, 25 Sep 2019 17:01:21 +0000 (10:01 -0700)]
redundant_pattern_matching: make rustfixable

4 years agoredundant_closure_call: split tests into fixable
Manish Goregaokar [Wed, 25 Sep 2019 16:30:27 +0000 (09:30 -0700)]
redundant_closure_call: split tests into fixable

4 years agomap_unit_fn: make test rustfixable
Manish Goregaokar [Wed, 25 Sep 2019 16:03:32 +0000 (09:03 -0700)]
map_unit_fn: make test rustfixable

4 years agomap_unit_fn: fix applicability
Manish Goregaokar [Wed, 25 Sep 2019 15:49:23 +0000 (08:49 -0700)]
map_unit_fn: fix applicability

4 years agooption_map_unit_fn: Split into fixable/unfixable
Manish Goregaokar [Wed, 25 Sep 2019 15:48:09 +0000 (08:48 -0700)]
option_map_unit_fn: Split into fixable/unfixable

4 years agomap_unit_fn: rename tests to fixable
Manish Goregaokar [Wed, 25 Sep 2019 15:39:45 +0000 (08:39 -0700)]
map_unit_fn: rename tests to fixable

4 years agonon_copy_const: remove incorrect suggestion
Manish Goregaokar [Wed, 25 Sep 2019 12:39:56 +0000 (05:39 -0700)]
non_copy_const: remove incorrect suggestion

4 years agoneedless_return: add allow()s to test, make rustfixable
Manish Goregaokar [Wed, 25 Sep 2019 12:28:19 +0000 (05:28 -0700)]
needless_return: add allow()s to test, make rustfixable

4 years agoneedless_collect: fix suggestion, make test rustfixable
Manish Goregaokar [Wed, 25 Sep 2019 12:25:31 +0000 (05:25 -0700)]
needless_collect: fix suggestion, make test rustfixable

4 years agoneedless_borrowed_ref: fix false positive, make rustfixable
Manish Goregaokar [Wed, 25 Sep 2019 12:19:09 +0000 (05:19 -0700)]
needless_borrowed_ref: fix false positive, make rustfixable

4 years agoneedless_borrow: allow other lints, make fixable
Manish Goregaokar [Wed, 25 Sep 2019 12:03:28 +0000 (05:03 -0700)]
needless_borrow: allow other lints, make fixable

4 years agomem_discriminant: split test, make rustfixable
Manish Goregaokar [Wed, 25 Sep 2019 11:59:10 +0000 (04:59 -0700)]
mem_discriminant: split test, make rustfixable

4 years agomap_flatten: make it a rustfix test
Manish Goregaokar [Wed, 25 Sep 2019 11:50:23 +0000 (04:50 -0700)]
map_flatten: make it a rustfix test

4 years agoLeave note on non-rustfixable tests
Manish Goregaokar [Wed, 25 Sep 2019 11:49:38 +0000 (04:49 -0700)]
Leave note on non-rustfixable tests

4 years agoRemove large-digit-groups test from literals.rs
Manish Goregaokar [Wed, 25 Sep 2019 11:46:43 +0000 (04:46 -0700)]
Remove large-digit-groups test from literals.rs

4 years agomap_entry test: Fix semicolon, add run-rustfix
Manish Goregaokar [Wed, 25 Sep 2019 11:38:17 +0000 (04:38 -0700)]
map_entry test: Fix semicolon, add run-rustfix

4 years agoSplit map_entry tests into fixable and unfixable
Manish Goregaokar [Wed, 25 Sep 2019 11:31:46 +0000 (04:31 -0700)]
Split map_entry tests into fixable and unfixable

4 years agoAuto merge of #4574 - Manishearth:rustup, r=yaahc,centril
bors [Wed, 25 Sep 2019 20:56:22 +0000 (20:56 +0000)]
Auto merge of #4574 - Manishearth:rustup, r=yaahc,centril

Rustup to rustc 1.39.0-nightly (acf7b50c7 2019-09-25)

changelog: none

fixes https://github.com/rust-lang/rust/issues/64777

r? @phansch @yaahc

4 years agoRemove suggestion for complex map_entry cases
Manish Goregaokar [Wed, 25 Sep 2019 11:29:39 +0000 (04:29 -0700)]
Remove suggestion for complex map_entry cases

4 years agoallow osx failures
Manish Goregaokar [Wed, 25 Sep 2019 20:51:29 +0000 (13:51 -0700)]
allow osx failures

4 years agoignore single-match for or patterns
Manish Goregaokar [Wed, 25 Sep 2019 20:34:55 +0000 (13:34 -0700)]
ignore single-match for or patterns

4 years agoarm.pats -> arm.pat
Manish Goregaokar [Wed, 25 Sep 2019 19:00:17 +0000 (12:00 -0700)]
arm.pats -> arm.pat

4 years agoRustup to rustc 1.39.0-nightly (acf7b50c7 2019-09-25)
Manish Goregaokar [Wed, 25 Sep 2019 11:16:25 +0000 (04:16 -0700)]
Rustup to rustc 1.39.0-nightly (acf7b50c7 2019-09-25)

 - Addresses inference error
 - Updates compiletest

4 years agoRefactor `booleans`
Michael Wright [Wed, 25 Sep 2019 04:20:40 +0000 (06:20 +0200)]
Refactor `booleans`

Inline `snip (..)` function

4 years agoUpdate refactor according to code review
James Wang [Wed, 25 Sep 2019 00:07:03 +0000 (19:07 -0500)]
Update refactor according to code review

4 years agoFix example in docs
James Wang [Tue, 24 Sep 2019 22:05:43 +0000 (17:05 -0500)]
Fix example in docs

4 years agoAdd a new lint for comparison chains
James Wang [Tue, 24 Sep 2019 21:55:05 +0000 (16:55 -0500)]
Add a new lint for comparison chains

4 years agoFix `nonminimal-bool` false positive
Michael Wright [Tue, 24 Sep 2019 06:06:58 +0000 (08:06 +0200)]
Fix `nonminimal-bool` false positive

Closes #4548
Closes #3847

4 years agoAuto merge of #4567 - phansch:toplevel_ref_arg, r=flip1995
bors [Mon, 23 Sep 2019 17:01:13 +0000 (17:01 +0000)]
Auto merge of #4567 - phansch:toplevel_ref_arg, r=flip1995

Add run-rustfix for toplevel_ref_arg lint

changelog: none

cc #3630

4 years agoAdd run-rustfix for toplevel_ref_arg lint
Philipp Hansch [Mon, 23 Sep 2019 09:19:24 +0000 (11:19 +0200)]
Add run-rustfix for toplevel_ref_arg lint

4 years agoAuto merge of #4561 - rust-lang:let-return-fix, r=phansch
bors [Mon, 23 Sep 2019 08:25:38 +0000 (08:25 +0000)]
Auto merge of #4561 - rust-lang:let-return-fix, r=phansch

Fix let_and_return lint

This fixes #4555 (false positive for the `let_and_return` lint).

changelog: none

4 years agoFix let_and_return lint
Andre Bogus [Fri, 20 Sep 2019 16:20:49 +0000 (18:20 +0200)]
Fix let_and_return lint

4 years agoAuto merge of #4566 - phansch:update_changelog2, r=flip1995
bors [Mon, 23 Sep 2019 07:11:21 +0000 (07:11 +0000)]
Auto merge of #4566 - phansch:update_changelog2, r=flip1995

Update the changelog for Rust 1.38

[Rendered](https://github.com/phansch/rust-clippy/blob/update_changelog2/CHANGELOG.md#rust-138)

changelog: none

4 years agoAuto merge of #4537 - mikerite:unneeded_wildcard_pattern, r=phansch
bors [Mon, 23 Sep 2019 05:51:04 +0000 (05:51 +0000)]
Auto merge of #4537 - mikerite:unneeded_wildcard_pattern, r=phansch

Add `unneeded-wildcard-pattern` lint

changelog: Add `unneeded-wildcard-pattern` lint

4 years agoMerge branch 'master' into unneeded_wildcard_pattern
Michael Wright [Mon, 23 Sep 2019 03:26:47 +0000 (05:26 +0200)]
Merge branch 'master' into unneeded_wildcard_pattern

4 years agoUpdate the changelog for Rust 1.38
Philipp Hansch [Sun, 22 Sep 2019 17:12:42 +0000 (19:12 +0200)]
Update the changelog for Rust 1.38

4 years agoAuto merge of #4518 - imp:4517_license-file, r=phansch
bors [Sun, 22 Sep 2019 11:40:35 +0000 (11:40 +0000)]
Auto merge of #4518 - imp:4517_license-file, r=phansch

clippy::cargo_common_metadata: check for license-file

When license property is missing in Cargo.toml check for license-file
as it may be used instead of the former. The check implemented here is
very naive as it only verifies that the field is present and is not
empty. More scrutiny can be applied by verifying the file is actually
present.

Fixes #4517

changelog: clippy::cargo_common_metadata now checks for license-file when license is missing

4 years agoAuto merge of #4565 - matthiaskrgr:rustup_16, r=phansch
bors [Sun, 22 Sep 2019 10:36:32 +0000 (10:36 +0000)]
Auto merge of #4565 - matthiaskrgr:rustup_16, r=phansch

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

changelog: none

4 years agorustup https://github.com/rust-lang/rust/pull/64666
Matthias Krüger [Sun, 22 Sep 2019 10:35:20 +0000 (12:35 +0200)]
rustup https://github.com/rust-lang/rust/pull/64666