Commit graph

7150 commits

Author SHA1 Message Date
flip1995
4a52dd6c53
Rustup to rust-lang/rust#65773 2019-10-26 21:54:04 +02:00
bors
e402ddd616 Auto merge of #4736 - flip1995:icu_mul_add, r=matthiaskrgr
Move manual_mul_add into nursery

Addresses #4735

changelog: Move [`manual_mul_add`] into nursery
2019-10-26 18:19:19 +00:00
flip1995
1e1d45a005
Move manual_mul_add into nursery 2019-10-26 19:57:01 +02:00
bors
b3ecd48d2e Auto merge of #4733 - lzutao:how-rtim, r=flip1995
build: install RTIM if it doesn't exist and upgrade it if it is in cargo bin home

Replace #4731
changelog: none
2019-10-25 13:24:37 +00:00
Lzu Tao
c38dd2ad0b build: install RTIM if it doesn't exist and upgrade it if it is in cargo bin home 2019-10-25 20:20:15 +07:00
bors
42f32a07f9 Auto merge of #4724 - lzutao:minor-appveyor, r=phansch
appveyor: minor syntax change

Use this link to review diff: https://github.com/rust-lang/rust-clippy/pull/4724/files?w=1
changelog: none
2019-10-24 19:22:22 +00:00
Lzu Tao
97d76f55ce appveyor: Leading space change only 2019-10-25 00:57:28 +07:00
Lzu Tao
eba90802b1 appveyor: Minor config change 2019-10-25 00:57:28 +07:00
bors
bfef48f185 Auto merge of #4721 - phansch:fix_try_err_in_ext_macro, r=flip1995
Don't emit try_err lint in external macros

changelog: Fix [`try_err`] false positive in external macros

Closes #4709
2019-10-24 17:53:42 +00:00
bors
37ea436821 Auto merge of #4713 - lzutao:no-reinstall-toolchain, r=phansch
build: do not reinstall master toolchain if it is up-to-date

changelog: none
2019-10-24 17:30:40 +00:00
Lzu Tao
6193b36ab2 build: do not reinstall master toolchain if it is up-to-date 2019-10-24 21:59:57 +07:00
msizanoen
a127e14631 Remove clippy plugin 2019-10-24 21:12:19 +07:00
bors
8ab24d76dd Auto merge of #4650 - Mark-Simulacrum:clippy-up-lintstore-lockless, r=phansch
Update clippy for latest rustc changes

Specifically, this revises the clippy integration to utilize a new
callback to register its lints, as the prior editing of lint store in
Session is no longer possible.

---

changelog: none
2019-10-24 13:13:15 +00:00
flip1995
b2616641d9
Fix dogfood findings 2019-10-24 14:39:19 +02:00
flip1995
8d38a07fb6
Revert "rustc-dev has been temporarily removed"
This reverts commit 974a05b806.
2019-10-24 14:03:24 +02:00
flip1995
562cc63b7e
Fix lint_without_lint_pass lint 2019-10-24 13:54:18 +02:00
flip1995
237e168b89
Fix tests 2019-10-24 13:29:51 +02:00
flip1995
ef02e3a755
Run ./util/dev fmt 2019-10-24 11:55:22 +02:00
flip1995
5f4b5b91d7
Rustup to rust-lang/rust#65657 2019-10-24 11:54:11 +02:00
Mark Rousskov
8c205018d2
Update clippy_dev 2019-10-24 11:47:00 +02:00
Mark Rousskov
7e77f3c29f
Update clippy for latest rustc changes
Specifically, this revises the clippy integration to utilize a new
callback to register its lints, as the prior editing of lint store in
Session is no longer possible.
2019-10-24 11:40:45 +02:00
Philipp Hansch
52f52900a4
Don't emit try_err lint in external macros 2019-10-24 07:52:01 +02:00
bors
87536f00e3 Auto merge of #4675 - lzutao:improve-shellscript, r=phansch
build: improve script and travis config

* fix a diff failure on windows

See https://travis-ci.com/rust-lang/rust-clippy/jobs/245971932#L1625
for an example.

* use cmp instead of diff > /dev/null

* clone single branch instead of clone then checking out

* do not decrypt key if have no diff change

changelog: none
2019-10-24 05:20:45 +00:00
bors
850dfdae60 Auto merge of #4680 - hellow554:debug_assert_mut_call, r=flip1995
Add lint for debug_assert_with_mut_call

closes #1526

**What does not work:**

* detecting a mut call in the format string itself, e.g. `debug_assert!(false, "{}", vec![1].pop())`
* detecting `*mut T` usage (pointer)

---

changelog: add new lint `debug_assert_with_mut_call`
2019-10-23 20:58:14 +00:00
bors
087e5eaea5 Auto merge of #4691 - HMPerson1:suggest_iter, r=phansch
Fix suggestion of `explicit_counter_loop`

changelog: In the suggestion of `explicit_counter_loop`, if the `for` loop argument doesn't implement `Iterator`, then we suggest `x.into_iter().enumerate()` (or `x.iter{_mut}()` as appropriate). Also, the span of the suggestion has been corrected.

Fixes #4678
2019-10-23 20:12:14 +00:00
bors
1bce252859 Auto merge of #4718 - matthiaskrgr:cargo_metadata, r=phansch
deps: update cargo_metadata from 0.8.0 to 0.9.0

changelog: none
2019-10-23 19:09:40 +00:00
Matthias Krüger
b5f73dad90 deps: update cargo_metadata from 0.8.0 to 0.9.0 2019-10-23 17:30:24 +02:00
bors
9a2e500928 Auto merge of #4715 - rust-lang:rustup, r=phansch
Rustup to rust-lang/rust#65647

cc rust-lang/rust#65647

waiting on rust-lang/rust#65690

changelog: none
2019-10-23 10:35:17 +00:00
flip1995
e8d5a9e95c
Use StableHasher in SpanlessHasher 2019-10-22 14:57:44 +02:00
flip1995
ef18ece564
Don't hash spans in SpanlessHasher 2019-10-22 11:17:16 +02:00
Lzu Tao
088d528be9 build: remove needless BASE_TESTS env 2019-10-22 16:16:01 +07:00
Lzu Tao
629b4d5a82 Early exit if errors in integration tests 2019-10-22 16:16:01 +07:00
Lzu Tao
ba673d020b build: remove travis_wait
Now the travis CI build time is fast enough to not cause build timeout.
2019-10-22 16:16:01 +07:00
Lzu Tao
049800d304 nit: ! is not on a condition and skips errexit 2019-10-22 16:16:01 +07:00
Lzu Tao
f3ace5e71d build: use shared target dir 2019-10-22 16:16:01 +07:00
Marcel Hellwig
5572476a36 Add lint for debug_assert_with_mut_call
This lint will complain when you put a mutable function/method call
inside a `debug_assert` macro, because it will not be executed in
release mode, therefore it will change the execution flow, which is not
wanted.
2019-10-22 10:39:55 +02:00
Lzu Tao
abafec5640 macos: symlink rustc dev libs to /usr/local/lib
Due to System Integrity Protection (SIP), exporting
LD_LIBRARY_PATH will not work on macOS systems.
Therefore, rather than disable SIP, we could symlink
those rust dev libs to /usr/local/bin.
I already tried install_name_tool(1) but couldn't make
clippy-driver work on CI for whatever reasons.
2019-10-22 10:14:39 +07:00
Lzu Tao
b869eeb2a4 build: improve script and travis config
* fix a diff failure on windows

See https://travis-ci.com/rust-lang/rust-clippy/jobs/245971932#L1625
for an example.

* use cmp instead of diff > /dev/null

* clone single branch instead of clone then checking out

* do not decrypt key if have no diff change
2019-10-22 10:14:39 +07:00
bors
1d0f62570b Auto merge of #4702 - lzutao:build/debug-integration-clippy, r=phansch
build: use clippy's debug build in integration test

changelog: none
2019-10-20 11:02:36 +00:00
Lzu Tao
d4fef9f4d0 build: use clippy's debug build in integration test 2019-10-19 21:09:16 +07:00
bors
cbedd97b3a Auto merge of #4692 - lzutao:use-opt-profile-rtim, r=phansch
build: use release build of RTIM

rustup-toolchain-install-master on Travis Windows builds is
unexpectedly slower compared to when run on other OSes.
This commit tries to use release build of RTIM as a mean to
improve performance there.

changelog: none
2019-10-19 09:14:29 +00:00
bors
dbc40400de Auto merge of #4700 - lzutao:rustup-65535, r=phansch
rustup https://github.com/rust-lang/rust/pull/65535

cc https://github.com/rust-lang/rust/issues/65585
changelog: none
2019-10-19 05:41:18 +00:00
Lzu Tao
4c7387e965 rustup https://github.com/rust-lang/rust/pull/65535 2019-10-19 12:27:21 +07:00
bors
850ad526df Auto merge of #4696 - rust-lang:need-not-use-proc-macro, r=phansch
Omit proc macros from `must_use_candidate`

This fixes #4684.

changelog: none
2019-10-18 19:40:45 +00:00
HMPerson1
a9cb2b9001
Fix suggestion for ranges 2019-10-18 12:11:15 -04:00
Andre Bogus
d723b35aee Omit proc macros from must_use_candidate 2019-10-18 15:54:25 +02:00
bors
c0b2411f06 Auto merge of #4657 - Licenser:additional-restrictions, r=flip1995
Additional restrictions

Add restriction lints for `panic!`, `unreachable!`, `todo!` and `.expect(...)`

changelog: Add 5 new `restriction` lints: `panic`, `unreachable`, `todo`, `option_expect_used`, `result_expect_used`
2019-10-18 10:32:01 +00:00
Lzu Tao
7d7451a67a build: use release build of RTIM
rustup-toolchain-install-master on Travis Windows builds is
unexpectedly slower when it was running on other OSes.
This commit tries to use release build of RTIM as a mean to
improve performance there.
2019-10-18 14:58:26 +07:00
Heinz N. Gies
7f454d8d06 Split out tests 2019-10-18 07:40:48 +02:00
Heinz N. Gies
a7ad78f3eb Add expect
Co-Authored-By: Philipp Krones <hello@philkrones.com>
2019-10-18 07:37:58 +02:00