Commit Graph

6499 Commits

Author SHA1 Message Date
Jeremy Stucki
c7da4c26fb
Implement flat_map lint 2019-07-08 17:11:54 +02:00
Jeremy Stucki
1fd617d6df
Add test for unnecessary_flat_map 2019-07-08 17:11:52 +02:00
Michael Wright
186b5b2ee2 Add rustfmt nightly to appveyor install 2019-07-08 07:20:11 +02:00
Michael Wright
c0c2a8d9c1
Work around rustup fallback error on Windows 2019-07-07 15:11:38 +02:00
flip1995
3977843ab5
Update documentation to the dev fmt command 2019-07-07 15:11:38 +02:00
Michael Wright
0c00391ed0
Remove format checks from CI scripts again. 2019-07-07 15:11:38 +02:00
Michael Wright
503474a647
Remove format checks from CI script 2019-07-07 15:11:37 +02:00
Michael Wright
aeac3da2c1
Improve fmt test failure message 2019-07-07 15:11:37 +02:00
Michael Wright
11707f3443
Fix crash on dev --limit-stderr-length 2019-07-07 15:11:37 +02:00
Michael Wright
4c771c3478
Add dev fmt subcommand 2019-07-07 15:11:33 +02:00
bors
316da7eb41 Auto merge of #4258 - mikerite:fix-breakage-20190706, r=Manishearth
Fix breakage due to rust-lang/rust#61988

changelog: none
2019-07-07 02:25:07 +00:00
Michael Wright
c72be0f65a rustfmt 2019-07-06 19:43:34 +02:00
Michael Wright
adcc02ed8a Address reviews 2019-07-06 19:35:08 +02:00
Michael Wright
0579c3e0aa Fix breakage due to rust-lang/rust#61988 2019-07-06 19:06:49 +02:00
bors
5d7f6a10ae Auto merge of #4255 - mikerite:fix-warnings-20190706, r=Manishearth
Fix unknown lint warnings

changelog: none
2019-07-06 07:19:20 +00:00
Michael Wright
ce308910fd Fix unknown lint warnings 2019-07-06 09:15:48 +02:00
bors
8744e8ed26 Auto merge of #4254 - lzutao:hiridification-62168, r=Manishearth
Rustup HirIdification

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

changelog: none
2019-07-06 06:30:15 +00:00
Lzu Tao
481499101b Remove lint for ONCE_INIT
ONCE_INIT will be deprecated in rust 1.38.0
2019-07-06 12:34:32 +07:00
Lzu Tao
3a76bea04b Update rustfix tests 2019-07-06 12:34:32 +07:00
Lzu Tao
7293defb34 Rename hir::map::local_def_id_from_hir_id to local_def_id 2019-07-06 10:52:51 +07:00
bors
a9f8d3a034 Auto merge of #4252 - mikerite:fix-unused-import-20190704, r=flip1995
Remove unused import

changelog: none
2019-07-04 08:30:18 +00:00
Michael Wright
c702a623a9 Remove unused import 2019-07-04 06:49:31 +02:00
bors
821ad3746c Auto merge of #4251 - matthiaskrgr:rustup_10, r=Manishearth
rustup https://github.com/rust-lang/rust/pull/61995

changelog: none
2019-07-03 20:22:46 +00:00
Matthias Krüger
f18f81d6a6 rustup https://github.com/rust-lang/rust/pull/61995 2019-07-03 18:00:35 +02:00
bors
e490f491e9 Auto merge of #4250 - mikerite:fix-3992, r=phansch
Fix allow bug in `trivially_copy_pass_by_ref`

Closes #3992

changelog: Fix allow bug in `trivially_copy_pass_by_ref`
2019-07-03 07:03:49 +00:00
bors
8dfc21bbac Auto merge of #4249 - matthiaskrgr:license_url, r=phansch
readme: fix urls in the license

The ">" at the end was detected as part of the url and caused it to 404.

changelog: none
2019-07-03 06:36:32 +00:00
Michael Wright
8fa023272f Fix allow bug in trivially_copy_pass_by_ref
Closes #3992
2019-07-03 07:15:21 +02:00
Matthias Krüger
1bd081c600 readme: fix urls in the license 2019-07-02 20:06:18 +02:00
bors
be3d6cfa33 Auto merge of #4246 - mikerite:fix-4244, r=flip1995
Fix `match_same_arms` false negative

Closes #4244

changelog: Fix `match_same_arms` false negative
2019-07-02 07:25:21 +00:00
Michael Wright
c199d9068e Fix match_same_arms false negative
Closes #4244
2019-07-02 08:18:55 +02:00
bors
cc8b2218e6 Auto merge of #4245 - flip1995:ice_4121, r=matthiaskrgr
Test for melted ICE #4121

resolves #4121

r? @matthiaskrgr

changelog: none
2019-07-01 13:58:48 +00:00
flip1995
cd4e593c96
Reenable cargo and rls tests in travis 2019-07-01 15:56:06 +02:00
flip1995
fb56e90e12
Test for melted ICE #4121 2019-07-01 15:53:48 +02:00
bors
47ada9ae07 Auto merge of #4243 - mikerite:fix-4058, r=flip1995
Fix `never_loop` false positive

Closes #4058

changelog: none
2019-07-01 08:10:25 +00:00
bors
ad638a3e42 Auto merge of #4222 - jfrikker:try_err, r=flip1995
Adding try_err lint

changelog: Adds the "try_err" lint, which catches instances of the following: Err(x)?
fixes #4212
2019-07-01 07:41:33 +00:00
Michael Wright
7c98915da9 Fix never_loop false positive
Closes #4058
2019-07-01 07:22:04 +02:00
Joe Frikker
c96bb2c303 Running rustfmt on test 2019-06-30 18:28:12 -04:00
bors
58e6431f1a Auto merge of #4240 - alex:uninit-intrinsic-prep, r=Manishearth
Removed use of intrinsics::uninit from tests.

This is in preperation for https://github.com/rust-lang/rust/pull/62150

Also allows deprecations in preperations for intrinsics::init being deprecated, which is a planned future step.

changelog: none
2019-06-30 13:14:38 +00:00
Alex Gaynor
fffdbc0e8f Removed use of intrinsics::uninit from tests.
This is in preperation for https://github.com/rust-lang/rust/pull/62150

Also allows deprecations in preperations for intrinsics::init being deprecated, which is a planned future step.
2019-06-29 09:34:42 -04:00
bors
e3cb40e4f7 Auto merge of #4235 - Manishearth:rustup, r=Manishearth
Rustup to 5f9c0448dd

Fixes fallout from https://github.com/rust-lang/rust/pull/62091/files

changelog: none
2019-06-25 22:35:35 +00:00
Manish Goregaokar
e3619a6507 fmt 2019-06-25 14:41:10 -07:00
Manish Goregaokar
4a6914bb8c Remove a hir_to_node_id 2019-06-25 14:34:47 -07:00
Manish Goregaokar
d744dcdaaf find_by_hir_id -> find 2019-06-25 14:34:07 -07:00
Manish Goregaokar
c47a7e4ef2 get_parent_node_by_hir_id -> get_parent_node 2019-06-25 14:33:51 -07:00
Joe Frikker
8880677b4f Making try_err machine applicable 2019-06-24 21:28:46 -04:00
bors
f0edfab44c Auto merge of #4230 - flip1995:unsugar_if, r=Manishearth
Replace `unsugar_if` function with `is_if` function

cc https://github.com/rust-lang/rust-clippy/pull/4123#discussion_r296581719

changelog: none

r? @Manishearth
2019-06-24 16:27:01 +00:00
flip1995
662037bcf2
Simplify unsugar_if to just an if expr check 2019-06-24 09:51:53 +02:00
flip1995
c192c07930
Remove ast:: prefix from types 2019-06-24 09:40:11 +02:00
bors
8c80b65f10 Auto merge of #4123 - Centril:rustup-let-chains-ast, r=Manishearth
Fix fallout from rust-lang/rust PR 60861

Fixes incoming breakage for unlanded https://github.com/rust-lang/rust/pull/60861.

Tests are passing locally; the Rust PR now needs to land first.

@Manishearth also says we'll want to split out to a `collapsible_if_let` once we have let-chains working in Rust nightly or something.
2019-06-24 05:21:52 +00:00
Mazdak Farrokhzad
46a0e54361 Put 'if let' back into comment. 2019-06-24 07:20:52 +02:00