]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoMerge remote-tracking branch 'upstream/rust-1.36.0' into backport_merge
flip1995 [Mon, 28 Oct 2019 15:51:15 +0000 (16:51 +0100)]
Merge remote-tracking branch 'upstream/rust-1.36.0' into backport_merge

4 years agoAuto merge of #4747 - matthiaskrgr:rustup_19, r=flip1995
bors [Mon, 28 Oct 2019 14:26:02 +0000 (14:26 +0000)]
Auto merge of #4747 - matthiaskrgr:rustup_19, r=flip1995

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

changelog: none

4 years agotravis: temporarily disable rustfmt ci check until #4742 is resolved
Matthias Krüger [Mon, 28 Oct 2019 09:46:54 +0000 (10:46 +0100)]
travis: temporarily disable rustfmt ci check until #4742 is resolved

4 years agorustup https://github.com/rust-lang/rust/pull/65792/
Matthias Krüger [Mon, 28 Oct 2019 08:02:48 +0000 (09:02 +0100)]
rustup https://github.com/rust-lang/rust/pull/65792/

4 years agoAuto merge of #4739 - flip1995:rustup, r=flip1995
bors [Sat, 26 Oct 2019 20:30:02 +0000 (20:30 +0000)]
Auto merge of #4739 - flip1995:rustup, r=flip1995

Rustup to rust-lang/rust#65773

changelog: none

4 years agoRustup to rust-lang/rust#65773
flip1995 [Sat, 26 Oct 2019 19:53:42 +0000 (21:53 +0200)]
Rustup to rust-lang/rust#65773

4 years agoAuto merge of #4736 - flip1995:icu_mul_add, r=matthiaskrgr
bors [Sat, 26 Oct 2019 18:19:19 +0000 (18:19 +0000)]
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

4 years agoMove manual_mul_add into nursery
flip1995 [Sat, 26 Oct 2019 17:56:36 +0000 (19:56 +0200)]
Move manual_mul_add into nursery

4 years agoAuto merge of #4733 - lzutao:how-rtim, r=flip1995
bors [Fri, 25 Oct 2019 13:24:37 +0000 (13:24 +0000)]
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

4 years agobuild: install RTIM if it doesn't exist and upgrade it if it is in cargo bin home
Lzu Tao [Fri, 25 Oct 2019 13:20:15 +0000 (20:20 +0700)]
build: install RTIM if it doesn't exist and upgrade it if it is in cargo bin home

4 years agoAuto merge of #4724 - lzutao:minor-appveyor, r=phansch
bors [Thu, 24 Oct 2019 19:22:22 +0000 (19:22 +0000)]
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

4 years agoappveyor: Leading space change only
Lzu Tao [Thu, 24 Oct 2019 17:49:09 +0000 (00:49 +0700)]
appveyor: Leading space change only

4 years agoappveyor: Minor config change
Lzu Tao [Thu, 24 Oct 2019 17:47:20 +0000 (00:47 +0700)]
appveyor: Minor config change

4 years agoAuto merge of #4721 - phansch:fix_try_err_in_ext_macro, r=flip1995
bors [Thu, 24 Oct 2019 17:53:42 +0000 (17:53 +0000)]
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

4 years agoAuto merge of #4713 - lzutao:no-reinstall-toolchain, r=phansch
bors [Thu, 24 Oct 2019 17:30:40 +0000 (17:30 +0000)]
Auto merge of #4713 - lzutao:no-reinstall-toolchain, r=phansch

build: do not reinstall master toolchain if it is up-to-date

changelog: none

4 years agobuild: do not reinstall master toolchain if it is up-to-date
Lzu Tao [Thu, 24 Oct 2019 14:59:57 +0000 (21:59 +0700)]
build: do not reinstall master toolchain if it is up-to-date

4 years agoAuto merge of #4650 - Mark-Simulacrum:clippy-up-lintstore-lockless, r=phansch
bors [Thu, 24 Oct 2019 13:13:15 +0000 (13:13 +0000)]
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

4 years agoFix dogfood findings
flip1995 [Thu, 24 Oct 2019 12:33:14 +0000 (14:33 +0200)]
Fix dogfood findings

4 years agoRevert "rustc-dev has been temporarily removed"
flip1995 [Thu, 24 Oct 2019 12:03:24 +0000 (14:03 +0200)]
Revert "rustc-dev has been temporarily removed"

This reverts commit 974a05b806954ebdc6640b7ef539667bd7baca56.

4 years agoFix lint_without_lint_pass lint
flip1995 [Thu, 24 Oct 2019 11:54:18 +0000 (13:54 +0200)]
Fix lint_without_lint_pass lint

4 years agoFix tests
flip1995 [Thu, 24 Oct 2019 11:29:51 +0000 (13:29 +0200)]
Fix tests

4 years agoRun ./util/dev fmt
flip1995 [Thu, 24 Oct 2019 09:55:22 +0000 (11:55 +0200)]
Run ./util/dev fmt

4 years agoRustup to rust-lang/rust#65657
flip1995 [Thu, 24 Oct 2019 09:54:11 +0000 (11:54 +0200)]
Rustup to rust-lang/rust#65657

4 years agoUpdate clippy_dev
Mark Rousskov [Fri, 11 Oct 2019 12:33:42 +0000 (08:33 -0400)]
Update clippy_dev

4 years agoUpdate clippy for latest rustc changes
Mark Rousskov [Fri, 11 Oct 2019 01:46:22 +0000 (21:46 -0400)]
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.

4 years agoDon't emit try_err lint in external macros
Philipp Hansch [Thu, 24 Oct 2019 05:52:01 +0000 (07:52 +0200)]
Don't emit try_err lint in external macros

4 years agoAuto merge of #4675 - lzutao:improve-shellscript, r=phansch
bors [Thu, 24 Oct 2019 05:20:45 +0000 (05:20 +0000)]
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

4 years agoAuto merge of #4680 - hellow554:debug_assert_mut_call, r=flip1995
bors [Wed, 23 Oct 2019 20:58:14 +0000 (20:58 +0000)]
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`

4 years agoAuto merge of #4691 - HMPerson1:suggest_iter, r=phansch
bors [Wed, 23 Oct 2019 20:12:14 +0000 (20:12 +0000)]
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

4 years agoAuto merge of #4718 - matthiaskrgr:cargo_metadata, r=phansch
bors [Wed, 23 Oct 2019 19:09:40 +0000 (19:09 +0000)]
Auto merge of #4718 - matthiaskrgr:cargo_metadata, r=phansch

deps: update cargo_metadata from 0.8.0 to 0.9.0

changelog: none

4 years agodeps: update cargo_metadata from 0.8.0 to 0.9.0
Matthias Krüger [Wed, 23 Oct 2019 15:30:24 +0000 (17:30 +0200)]
deps: update cargo_metadata from 0.8.0 to 0.9.0

4 years agoAuto merge of #4715 - rust-lang:rustup, r=phansch
bors [Wed, 23 Oct 2019 10:35:17 +0000 (10:35 +0000)]
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

4 years agoUse StableHasher in SpanlessHasher
flip1995 [Tue, 22 Oct 2019 09:18:18 +0000 (11:18 +0200)]
Use StableHasher in SpanlessHasher

4 years agoDon't hash spans in SpanlessHasher
flip1995 [Tue, 22 Oct 2019 09:17:16 +0000 (11:17 +0200)]
Don't hash spans in SpanlessHasher

4 years agobuild: remove needless BASE_TESTS env
Lzu Tao [Tue, 22 Oct 2019 09:11:42 +0000 (16:11 +0700)]
build: remove needless BASE_TESTS env

4 years agoEarly exit if errors in integration tests
Lzu Tao [Tue, 22 Oct 2019 05:17:11 +0000 (12:17 +0700)]
Early exit if errors in integration tests

4 years agobuild: remove travis_wait
Lzu Tao [Tue, 22 Oct 2019 03:44:54 +0000 (10:44 +0700)]
build: remove travis_wait

Now the travis CI build time is fast enough to not cause build timeout.

4 years agonit: ! is not on a condition and skips errexit
Lzu Tao [Tue, 22 Oct 2019 03:19:12 +0000 (10:19 +0700)]
nit: ! is not on a condition and skips errexit

4 years agobuild: use shared target dir
Lzu Tao [Fri, 18 Oct 2019 04:10:15 +0000 (11:10 +0700)]
build: use shared target dir

4 years agoAdd lint for debug_assert_with_mut_call
Marcel Hellwig [Wed, 16 Oct 2019 11:25:42 +0000 (13:25 +0200)]
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.

4 years agomacos: symlink rustc dev libs to /usr/local/lib
Lzu Tao [Thu, 17 Oct 2019 10:02:24 +0000 (17:02 +0700)]
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.

4 years agobuild: improve script and travis config
Lzu Tao [Mon, 21 Oct 2019 08:09:53 +0000 (15:09 +0700)]
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

4 years agoAuto merge of #4702 - lzutao:build/debug-integration-clippy, r=phansch
bors [Sun, 20 Oct 2019 11:02:36 +0000 (11:02 +0000)]
Auto merge of #4702 - lzutao:build/debug-integration-clippy, r=phansch

build: use clippy's debug build in integration test

changelog: none

4 years agobuild: use clippy's debug build in integration test
Lzu Tao [Sat, 19 Oct 2019 09:44:29 +0000 (16:44 +0700)]
build: use clippy's debug build in integration test

4 years agoAuto merge of #4692 - lzutao:use-opt-profile-rtim, r=phansch
bors [Sat, 19 Oct 2019 09:14:29 +0000 (09:14 +0000)]
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

4 years agoAuto merge of #4700 - lzutao:rustup-65535, r=phansch
bors [Sat, 19 Oct 2019 05:41:18 +0000 (05:41 +0000)]
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

4 years agorustup https://github.com/rust-lang/rust/pull/65535
Lzu Tao [Sat, 19 Oct 2019 05:27:21 +0000 (12:27 +0700)]
rustup https://github.com/rust-lang/rust/pull/65535

4 years agoAuto merge of #4696 - rust-lang:need-not-use-proc-macro, r=phansch
bors [Fri, 18 Oct 2019 19:40:45 +0000 (19:40 +0000)]
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

4 years agoFix suggestion for ranges
HMPerson1 [Fri, 18 Oct 2019 16:11:15 +0000 (12:11 -0400)]
Fix suggestion for ranges

4 years agoOmit proc macros from `must_use_candidate`
Andre Bogus [Fri, 18 Oct 2019 13:54:25 +0000 (15:54 +0200)]
Omit proc macros from `must_use_candidate`

4 years agoAuto merge of #4657 - Licenser:additional-restrictions, r=flip1995
bors [Fri, 18 Oct 2019 10:32:01 +0000 (10:32 +0000)]
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`

4 years agobuild: use release build of RTIM
Lzu Tao [Fri, 18 Oct 2019 07:58:26 +0000 (14:58 +0700)]
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.

4 years agoSplit out tests
Heinz N. Gies [Wed, 16 Oct 2019 17:43:26 +0000 (19:43 +0200)]
Split out tests

4 years agoAdd expect
Heinz N. Gies [Tue, 15 Oct 2019 19:33:07 +0000 (21:33 +0200)]
Add expect

Co-Authored-By: Philipp Krones <hello@philkrones.com>
4 years agoAdd todo and tests
Heinz N. Gies [Sat, 12 Oct 2019 11:26:14 +0000 (13:26 +0200)]
Add todo and tests

4 years agoadd restirction for unreachable and panic
Heinz Gies [Fri, 11 Oct 2019 11:58:56 +0000 (13:58 +0200)]
add restirction for unreachable and panic

4 years agoFix suggestion span in `explicit_counter_loop`
HMPerson1 [Fri, 18 Oct 2019 05:15:54 +0000 (01:15 -0400)]
Fix suggestion span in `explicit_counter_loop`

4 years agoAuto merge of #4687 - lzutao:before-cache-appveyor, r=Manishearth
bors [Fri, 18 Oct 2019 04:53:16 +0000 (04:53 +0000)]
Auto merge of #4687 - lzutao:before-cache-appveyor, r=Manishearth

appveyor: on_finish run after saving cache

According to <https://www.appveyor.com/docs/build-configuration/#build-pipeline>
on_finish step runs after saving cache step, we should use after_test instead.

changelog: none

4 years agoSuggest calling `iter` if needed in `explicit_counter_loop`
HMPerson1 [Fri, 18 Oct 2019 04:03:27 +0000 (00:03 -0400)]
Suggest calling `iter` if needed in `explicit_counter_loop`

4 years agoAuto merge of #4685 - HMPerson1:patch-1, r=Manishearth
bors [Fri, 18 Oct 2019 02:51:04 +0000 (02:51 +0000)]
Auto merge of #4685 - HMPerson1:patch-1, r=Manishearth

Update adding_lints.md

changelog: none

4 years agoAuto merge of #4686 - lzutao:fix-travis-windows-stuck, r=Manishearth
bors [Fri, 18 Oct 2019 01:02:08 +0000 (01:02 +0000)]
Auto merge of #4686 - lzutao:fix-travis-windows-stuck, r=Manishearth

travis: Windows build might be stuck as non-supported languages

See <https://docs.travis-ci.com/user/reference/windows/#supported-languages>
for list of Windows supported languages.

I'm sorry for making Travis Windows build stuck.

changelog: none

4 years agoAuto merge of #4683 - HMPerson1:inefficient_to_string, r=Manishearth
bors [Thu, 17 Oct 2019 23:48:55 +0000 (23:48 +0000)]
Auto merge of #4683 - HMPerson1:inefficient_to_string, r=Manishearth

Add `inefficient_to_string` lint

Closes #4586

changelog: Add `inefficient_to_string` lint, which checks for calling `to_string` on `&&str`, which would bypass the `str`'s specialization

4 years agoUpdate help text in `inefficient_to_string`
Michael Zhang [Thu, 17 Oct 2019 23:11:51 +0000 (19:11 -0400)]
Update help text in `inefficient_to_string`

Co-Authored-By: Manish Goregaokar <manishsmail@gmail.com>
4 years agoAuto merge of #4689 - Manishearth:rustup, r=Yaahc
bors [Thu, 17 Oct 2019 23:00:08 +0000 (23:00 +0000)]
Auto merge of #4689 - Manishearth:rustup, r=Yaahc

Rustup to rustc 1.40.0-nightly (fa0f7d008 2019-10-17)

changelog: none

4 years agosyntax::ext -> syntax_expand
Manish Goregaokar [Thu, 17 Oct 2019 22:47:28 +0000 (15:47 -0700)]
syntax::ext -> syntax_expand

4 years agoappveyor: on_finish run after saving cache
Lzu Tao [Thu, 17 Oct 2019 17:44:13 +0000 (00:44 +0700)]
appveyor: on_finish run after saving cache

Use after_test instead

4 years agotravis: Windows build might be stuck as non-supported languages
Lzu Tao [Thu, 17 Oct 2019 17:50:59 +0000 (00:50 +0700)]
travis: Windows build might be stuck as non-supported languages

See <https://docs.travis-ci.com/user/reference/windows/#supported-languages>
for list of Windows supported languages.

4 years agoAuto merge of #4659 - lzutao:caching, r=phansch
bors [Thu, 17 Oct 2019 17:16:36 +0000 (17:16 +0000)]
Auto merge of #4659 - lzutao:caching, r=phansch

Cache cargo binaries

changelog: none

4 years agoAdd `run-rustfix` to `inefficient_to_string`
HMPerson1 [Thu, 17 Oct 2019 16:41:45 +0000 (12:41 -0400)]
Add `run-rustfix` to `inefficient_to_string`

4 years agoUpdate adding_lints.md
Michael Zhang [Thu, 17 Oct 2019 16:33:42 +0000 (12:33 -0400)]
Update adding_lints.md

4 years agoDogfood for `inefficient_to_string`
HMPerson1 [Wed, 16 Oct 2019 21:12:41 +0000 (17:12 -0400)]
Dogfood for `inefficient_to_string`

4 years agoAdd `inefficient_to_string` lint
HMPerson1 [Wed, 16 Oct 2019 19:54:20 +0000 (15:54 -0400)]
Add `inefficient_to_string` lint

4 years agoUse CI caching and cargo feature install-upgrade
Lzu Tao [Wed, 16 Oct 2019 06:14:24 +0000 (13:14 +0700)]
Use CI caching and cargo feature install-upgrade

* do not force to install rustfmt
* use cargo-cache
* disable bash trace
* clone single branch

4 years agoAuto merge of #4669 - lzutao:minimal-rustup, r=phansch
bors [Wed, 16 Oct 2019 04:13:38 +0000 (04:13 +0000)]
Auto merge of #4669 - lzutao:minimal-rustup, r=phansch

build: use rustup minimal profile to speed up Rust installation time

changelog: none

4 years agoAuto merge of #4673 - Manishearth:rustup, r=phansch
bors [Tue, 15 Oct 2019 19:58:52 +0000 (19:58 +0000)]
Auto merge of #4673 - Manishearth:rustup, r=phansch

Rustup to rustc 1.40.0-nightly (237d54ff6 2019-10-15)

changelog: none

4 years agobuild: use rustup minimal profile to speed up Rust installation time
Lzu Tao [Tue, 15 Oct 2019 10:02:11 +0000 (17:02 +0700)]
build: use rustup minimal profile to speed up Rust installation time

4 years agoRustup to rustc 1.40.0-nightly (237d54ff6 2019-10-15)
Manish Goregaokar [Tue, 15 Oct 2019 19:29:28 +0000 (12:29 -0700)]
Rustup to rustc 1.40.0-nightly (237d54ff6 2019-10-15)

4 years agoAuto merge of #4668 - lzutao:update-rtim, r=flip1995
bors [Tue, 15 Oct 2019 18:34:30 +0000 (18:34 +0000)]
Auto merge of #4668 - lzutao:update-rtim, r=flip1995

 build: switch back to latest official RTIM release

Closes #4666

changelog: none

4 years agoAuto merge of #4671 - flip1995:ice-4671, r=phansch
bors [Tue, 15 Oct 2019 17:57:10 +0000 (17:57 +0000)]
Auto merge of #4671 - flip1995:ice-4671, r=phansch

Fix ICE in `use_self` lint

The ICE is produced by building this span:
https://github.com/rust-lang/rust-clippy/blob/55e7818a06c8d83bead9c81e10e73ba33fb20890/clippy_lints/src/use_self.rs#L55-L60

`span` can start in the file the macro is defined in and end where the macro is called.

changelog: Fix ICE in `use_self` lint

4 years agoEnable integration tests again
flip1995 [Tue, 15 Oct 2019 13:13:09 +0000 (15:13 +0200)]
Enable integration tests again

futures-rs, hyper, rls

4 years agoFix ICE in use_self lint
flip1995 [Tue, 15 Oct 2019 13:11:29 +0000 (15:11 +0200)]
Fix ICE in use_self lint

4 years agoAdd regression test for ICE in use-self lint
flip1995 [Tue, 15 Oct 2019 12:57:54 +0000 (14:57 +0200)]
Add regression test for ICE in use-self lint

4 years agotravis: break out before_script stage to test setup-toolchain work
Lzu Tao [Mon, 14 Oct 2019 18:21:25 +0000 (01:21 +0700)]
travis: break out before_script stage to test setup-toolchain work

4 years agobuild: do not trace deploy step
Lzu Tao [Mon, 14 Oct 2019 17:56:27 +0000 (00:56 +0700)]
build: do not trace deploy step

4 years agoEarly exit if there is any errors
Lzu Tao [Mon, 14 Oct 2019 17:51:41 +0000 (00:51 +0700)]
Early exit if there is any errors

4 years agobuild: switch back to latest official RTIM release
Lzu Tao [Mon, 14 Oct 2019 17:45:48 +0000 (00:45 +0700)]
build: switch back to latest official RTIM release

4 years agoAuto merge of #4619 - james9909:unused-self, r=flip1995
bors [Tue, 15 Oct 2019 08:16:39 +0000 (08:16 +0000)]
Auto merge of #4619 - james9909:unused-self, r=flip1995

Add a lint for unused self

changelog: Adds a new lint: `unused_self`

Closes #4550.

4 years agoChange terminology from static to associated
James Wang [Mon, 14 Oct 2019 19:23:24 +0000 (14:23 -0500)]
Change terminology from static to associated

4 years agoSwitch to OnlyBodies
James Wang [Sun, 6 Oct 2019 18:12:07 +0000 (13:12 -0500)]
Switch to OnlyBodies

4 years agoChange lint to be pedantic
James Wang [Fri, 4 Oct 2019 17:18:52 +0000 (12:18 -0500)]
Change lint to be pedantic

4 years agoRemove prints
James Wang [Thu, 3 Oct 2019 19:38:33 +0000 (14:38 -0500)]
Remove prints

4 years agoAdd a new lint for unused self
James Wang [Thu, 3 Oct 2019 19:09:32 +0000 (14:09 -0500)]
Add a new lint for unused self

4 years agoAuto merge of #4560 - rust-lang:must-use-pure, r=phansch
bors [Mon, 14 Oct 2019 17:33:30 +0000 (17:33 +0000)]
Auto merge of #4560 - rust-lang:must-use-pure, r=phansch

new lints around`#[must_use]`

changelog: Add `must_use_candidate` lint,  add `must-use-unit` lint, add `double_must_use` lint

The first one checks if an public function or method has no mutable argument and mutates no non-local data and lints if it has no `#[must_use]` attribute. It will skip inner functions, because those are usually highly local and the attribute doesn't have as much benefit there.

The second lints `#[must_use]` attributes on functions and methods that return unit. Those attributes are likely a remnant from a refactoring that removed the return value.

The last one lints for `#[must_use]` attributrs without text on functions that return a type which is already marked `#[must_use]`. This has no auto-suggestion, because while it would be easy to do, there may be value in writing a detailed text for the attribute instead.

This fixes #4526

4 years agoAuto merge of #4663 - lzutao:rustup, r=phansch
bors [Mon, 14 Oct 2019 17:00:46 +0000 (17:00 +0000)]
Auto merge of #4663 - lzutao:rustup, r=phansch

Rustup

changelog: none

Suppresses #4662.

r? @phansch

4 years agonew lints around `#[must_use]` fns
Andre Bogus [Wed, 18 Sep 2019 06:37:41 +0000 (08:37 +0200)]
new lints around `#[must_use]` fns

`must_use_unit` lints unit-returning functions with a `#[must_use]`
attribute, suggesting to remove it.

`double_must_use` lints functions with a plain `#[must_use]`
attribute, but which return a type which is already `#[must_use]`,
so the attribute has no benefit.

`must_use_candidate` is a pedantic lint that lints functions and
methods that return some non-unit type that is not already
`#[must_use]` and suggests to add the annotation.

4 years agorustc-dev has been temporarily removed
Lzu Tao [Mon, 14 Oct 2019 03:25:05 +0000 (10:25 +0700)]
rustc-dev has been temporarily removed

4 years agoUse my RTIM fork
Lzu Tao [Sun, 13 Oct 2019 17:47:36 +0000 (00:47 +0700)]
Use my RTIM fork

4 years agoBump compiletest
Manish Goregaokar [Sun, 13 Oct 2019 14:46:14 +0000 (07:46 -0700)]
Bump compiletest

4 years agoAuto merge of #4649 - Lythenas:use_match_function_call, r=phansch
bors [Sat, 12 Oct 2019 06:40:13 +0000 (06:40 +0000)]
Auto merge of #4649 - Lythenas:use_match_function_call, r=phansch

Use match_function_call wherever possible

Move `match_function_call` to `utils` and use it wherever possible as discussed in #4635.

changelog: none

4 years agoAuto merge of #4654 - lzutao:rustc-dev, r=phansch
bors [Sat, 12 Oct 2019 06:00:52 +0000 (06:00 +0000)]
Auto merge of #4654 - lzutao:rustc-dev, r=phansch

Rustup for rustc-dev

cc https://github.com/rust-lang/rust/pull/64823
Closes #4651
changelog: none