]>
git.lizzy.rs Git - rust.git/log
Michael Wright [Wed, 13 Nov 2019 06:28:01 +0000 (08:28 +0200)]
literal representation restructure 10
Rename DigitInfo to NumericLiteral
Michael Wright [Wed, 13 Nov 2019 06:27:54 +0000 (08:27 +0200)]
literal representation restructure 9
Only store valid suffixes (and not mistyped suffixes) in DigitInfo.
Check for mistyped suffixes later and not when DigitInfo is created.
This opens the door to more sophisticated mistyped suffix checks later.
Michael Wright [Wed, 13 Nov 2019 06:27:49 +0000 (08:27 +0200)]
literal representation restructure 8
Store the digit parts directly in DigitInfo since we need them anyway.
Michael Wright [Wed, 13 Nov 2019 06:27:42 +0000 (08:27 +0200)]
literal representation restructure 7
Replace `do_lint` with `get_group_size`. Return `None` if there are no
groups.
Michael Wright [Wed, 13 Nov 2019 06:27:37 +0000 (08:27 +0200)]
literal representation restructure 6
Add `group_digits` helper function.
Michael Wright [Wed, 13 Nov 2019 06:27:27 +0000 (08:27 +0200)]
literal representation restructure 5
Use `split_digit_parts` in `check_lit`.
Michael Wright [Wed, 13 Nov 2019 06:27:19 +0000 (08:27 +0200)]
literal representation restructure 4
Simplify `grouping_hint` by splitting digits into parts and handling
one at a time.
Fixes #4762
Michael Wright [Wed, 13 Nov 2019 06:27:14 +0000 (08:27 +0200)]
literal representation restructure 3
Move suffix check into `check_lit` so that it isn't done repeatedly.
Michael Wright [Wed, 13 Nov 2019 06:27:05 +0000 (08:27 +0200)]
literal representation restructure 2
Consolidate warning handling using "poor man's try".
Michael Wright [Wed, 13 Nov 2019 06:26:52 +0000 (08:26 +0200)]
literal representation restructure 1
Combine macro expansion checks. Indentation is a little strange to
avoid rustfmt issue.
bors [Tue, 12 Nov 2019 13:56:14 +0000 (13:56 +0000)]
Auto merge of #4769 - euclio:crlf, r=flip1995
don't warn on CRLF in `with_newline` lints
changelog: don't warn on CRLF in `print_with_newline` and `write_with_newline`
fixes #4208.
This PR also transitions the unescaping logic to use the compiler's lexer.
Andy Russell [Sun, 3 Nov 2019 04:41:22 +0000 (00:41 -0400)]
don't warn on CRLF in `with_newline` lints
bors [Mon, 11 Nov 2019 19:24:20 +0000 (19:24 +0000)]
Auto merge of #4803 - tomprogrammer:issue-4732, r=phansch
Fix false positive in explicit_counter_loop lint
When the counter was used in a closure after the loop the lint didn't detect the
usage of the counter correctly.
changelog: Fix false positive in `explicit_counter_loop`
Fixes #4732
bors [Mon, 11 Nov 2019 18:59:06 +0000 (18:59 +0000)]
Auto merge of #4805 - Manishearth:rustup, r=phansch
Rustup to rustc 1.40.0-nightly (
56237d75b 2019-11-11)
changelog: none
Manish Goregaokar [Mon, 11 Nov 2019 17:24:12 +0000 (09:24 -0800)]
MutImmutable -> Immutable, MutMutable -> Mutable, CaptureClause -> CaptureBy
bors [Mon, 11 Nov 2019 11:28:27 +0000 (11:28 +0000)]
Auto merge of #4801 - mikerite:to_digit_is_some, r=flip1995
To digit is some
Add a lint that recommends replacing `to_digit().is_some()` with `is_digit()` on `char`s
changelog: Add lint `to_digit_is_some`
Thomas Bahn [Mon, 11 Nov 2019 10:27:18 +0000 (11:27 +0100)]
Fix false positive in explicit_counter_loop lint
When the counter was used in a closure after the loop the lint didn't detect the
usage of the counter correctly.
bors [Mon, 11 Nov 2019 06:23:27 +0000 (06:23 +0000)]
Auto merge of #4780 - flip1995:ice_4775, r=phansch
Fix ICE #4775
Fixes #4775
changelog: Fix ICE with const_generics
bors [Mon, 11 Nov 2019 06:03:56 +0000 (06:03 +0000)]
Auto merge of #4802 - mikerite:fix-breakage-
20191111 , r=phansch
Fix breakage due to rust-lang/rust#65324
changelog: none
Michael Wright [Mon, 11 Nov 2019 04:22:50 +0000 (06:22 +0200)]
Fix breakage due to rust-lang/rust#65324
Michael Wright [Sun, 10 Nov 2019 16:00:04 +0000 (18:00 +0200)]
Really fix `to_digit_is_some` documentation
Michael Wright [Sun, 10 Nov 2019 15:55:25 +0000 (17:55 +0200)]
Fix `to_digit_is_some` documentation
Michael Wright [Sun, 10 Nov 2019 13:14:26 +0000 (15:14 +0200)]
Fix `to_digit_is_some` dogfood errors
Michael Wright [Sun, 10 Nov 2019 13:12:05 +0000 (15:12 +0200)]
Add `to_digit_is_some` lint
bors [Sun, 10 Nov 2019 04:51:23 +0000 (04:51 +0000)]
Auto merge of #4800 - msizanoen1:target-libs2, r=Manishearth
Only pass `--extern` flags for rlibs in target deps directory
It seems like there are proc macros/build scripts using serde: https://github.com/rust-lang/rust/pull/66207#issuecomment-
552159692
This fix the build error by only passing `--extern` flags for rlibs in target deps directory (if available, otherwise host deps directory).
r? @Manishearth
changelog: none
msizanoen1 [Sun, 10 Nov 2019 03:54:49 +0000 (10:54 +0700)]
Only pass rlibs in target deps directory
bors [Sun, 10 Nov 2019 01:10:12 +0000 (01:10 +0000)]
Auto merge of #4799 - Manishearth:rustup, r=yaahc
Rustup to rustc 1.40.0-nightly (
ac162c6ab 2019-11-09)
changelog: none
Manish Goregaokar [Sun, 10 Nov 2019 01:04:42 +0000 (17:04 -0800)]
Rustup to rustc 1.40.0-nightly (
ac162c6ab 2019-11-09)
bors [Fri, 8 Nov 2019 23:33:30 +0000 (23:33 +0000)]
Auto merge of #4791 - lzutao:osx2bors, r=matthiaskrgr
build macOS on bors branches only
Clippy is portable enough. It is rare to see Clippy builds' broke
on *nix OSes. Testing macOS build on auto and try branch is
enough.
changelog: none
bors [Fri, 8 Nov 2019 22:58:33 +0000 (22:58 +0000)]
Auto merge of #4786 - msizanoen1:target-libs, r=Manishearth
Add the TARGET_LIBS environment variable for rustc CI testing
Needed to fix the test failure in rust-lang/rust#66158.
See https://github.com/rust-lang/rust/pull/66158#issuecomment-
550585396
r? @Manishearth
changelog: none
bors [Fri, 8 Nov 2019 22:06:21 +0000 (22:06 +0000)]
Auto merge of #4776 - mikerite:fix-4727, r=flip1995
Fix crash in `use-self` lint
Fixes #4727
changelog: Fix crash in `use-self` lint
bors [Fri, 8 Nov 2019 21:27:26 +0000 (21:27 +0000)]
Auto merge of #4795 - HMPerson1:rustup, r=matthiaskrgr
Rustup rust-lang/rust#66188
changelog: none
HMPerson1 [Fri, 8 Nov 2019 20:41:54 +0000 (15:41 -0500)]
dogfood
HMPerson1 [Fri, 8 Nov 2019 20:12:08 +0000 (15:12 -0500)]
Rustup rust-lang/rust#66188
msizanoen1 [Fri, 8 Nov 2019 05:29:07 +0000 (12:29 +0700)]
Add target libs directory to search path
Michael Wright [Fri, 8 Nov 2019 05:18:12 +0000 (07:18 +0200)]
Put ice test auxiliary fix in right place
Michael Wright [Fri, 8 Nov 2019 05:15:16 +0000 (07:15 +0200)]
Merge branch 'master' into fix-4727
bors [Fri, 8 Nov 2019 03:34:42 +0000 (03:34 +0000)]
Auto merge of #4792 - lzutao:rustup-65916, r=Manishearth
rustup rust-lang/rust#65916
cc rust-lang/rust#65916
changelog: none
Lzu Tao [Fri, 8 Nov 2019 03:16:43 +0000 (10:16 +0700)]
remove unused warnings
Lzu Tao [Fri, 8 Nov 2019 03:10:08 +0000 (10:10 +0700)]
rustup https://github.com/rust-lang/rust/pull/65916
bors [Thu, 7 Nov 2019 22:05:51 +0000 (22:05 +0000)]
Auto merge of #4697 - Licenser:no-exit, r=flip1995
restriction lint for `std::process::exit`
Addition to #4655 - adds the lint checking for `std::process::exit`
changelog: add restriction lint for `std::process::exit`
bors [Thu, 7 Nov 2019 21:33:04 +0000 (21:33 +0000)]
Auto merge of #4784 - Manishearth:remove-extern, r=Manishearth
Remove `extern crate clippy_lints` from tests
This causes rustc's build system to fail because it still tries to load the crate as a plugin: https://github.com/rust-lang/rust/pull/66158#issuecomment-
550415160 . I'm not sure _why_ this happens, but for a short term fix we should remove these.
In one case it was just a convenient crate to use so i picked a different test. In another it was load-bearing, I had to delete the test. Idk if there's a better way around this.
changelog: none
bors [Thu, 7 Nov 2019 21:06:18 +0000 (21:06 +0000)]
Auto merge of #4758 - mikerite:dec_lit_20191031, r=flip1995
`DecimalLiteralRepresentation` simplification
Remove recalculation of literal value.
changelog: none
Manish Goregaokar [Thu, 7 Nov 2019 20:48:22 +0000 (12:48 -0800)]
Remove clippy dependency in lint_without_lint_pass
Manish Goregaokar [Wed, 6 Nov 2019 18:36:04 +0000 (10:36 -0800)]
Remove clippy_lints from useless attribute test
bors [Thu, 7 Nov 2019 20:47:14 +0000 (20:47 +0000)]
Auto merge of #4757 - evanjs:issue/4748, r=phansch
Fix Deprecated lints don't expand
### Move doc comments inside of declare_deprecated_lint macros so that they are picked up by lintlib.py
### fixes #4748
Unable to `cargo test` locally (I'm on NixOS, and keep getting errors that are similar to those #4714 might solve) but I have verified that all deprecated lints can now be expanded like other lints.
![2019-10-30_21:06:28](https://user-images.githubusercontent.com/
1847524 /
67910501 -
5815de00 -fb59-11e9-9fa2-
91fe6a8b9bb9 .png)
changelog: Show deprecated lints in lint documentation again
Lzu Tao [Thu, 7 Nov 2019 19:06:28 +0000 (02:06 +0700)]
build macOS on bors branches only
Clippy is portable enough. It is rare to see Clippy builds' broke
on *nix OSes. Testing macOS build on auto and try branch is
enough.
Heinz N. Gies [Thu, 7 Nov 2019 16:13:26 +0000 (17:13 +0100)]
Update lints
Heinz N. Gies [Tue, 29 Oct 2019 20:34:00 +0000 (21:34 +0100)]
Update tests for exit
Heinz N. Gies [Fri, 25 Oct 2019 08:59:33 +0000 (10:59 +0200)]
Update clippy_lints/src/lib.rs
Co-Authored-By: Philipp Krones <hello@philkrones.com>
Heinz N. Gies [Fri, 25 Oct 2019 08:16:25 +0000 (10:16 +0200)]
Update clippy_lints/src/lib.rs
Co-Authored-By: Philipp Krones <hello@philkrones.com>
Heinz N. Gies [Thu, 24 Oct 2019 19:17:21 +0000 (21:17 +0200)]
Simplify dentry point detection
Heinz N. Gies [Mon, 21 Oct 2019 20:55:01 +0000 (22:55 +0200)]
Improve function checking
Heinz N. Gies [Sat, 19 Oct 2019 12:31:02 +0000 (14:31 +0200)]
Exclude main from exit lint
Heinz N. Gies [Fri, 18 Oct 2019 19:10:35 +0000 (21:10 +0200)]
Update lints
Heinz N. Gies [Fri, 18 Oct 2019 19:09:42 +0000 (21:09 +0200)]
Add lint for exit
msizanoen1 [Thu, 7 Nov 2019 07:01:25 +0000 (14:01 +0700)]
Add the TARGET_LIBS environment variable for rustc CI testing
bors [Thu, 7 Nov 2019 13:23:32 +0000 (13:23 +0000)]
Auto merge of #4788 - Manishearth:rustup, r=flip1995
Rustup to rustc 1.40.0-nightly (
50f8aadd 2019-11-07)
changelog: Deprecate [`into_iter_on_array`] lint
r? @phansch @oli-obk
flip1995 [Thu, 7 Nov 2019 12:44:57 +0000 (13:44 +0100)]
Deprecate `into_iter_on_array` lint
This lint was uplifted/reimplemented by rustc.
Rustup to rust-lang/rust#66017
flip1995 [Thu, 7 Nov 2019 12:27:00 +0000 (13:27 +0100)]
Rustup to rust-lang/rust#65884
Manish Goregaokar [Thu, 7 Nov 2019 08:34:45 +0000 (00:34 -0800)]
Rustup to rustc 1.40.0-nightly (
7a76fe76f 2019-11-07)
Michael Wright [Thu, 7 Nov 2019 03:59:13 +0000 (05:59 +0200)]
use-self: correctly ignore dummy paths
bors [Wed, 6 Nov 2019 18:21:25 +0000 (18:21 +0000)]
Auto merge of #4781 - lzutao:rustup/65134, r=matthiaskrgr
rustup improper_ctypes: `extern "C"` fns
cc https://github.com/rust-lang/rust/pull/65134
changelog: none
Lzu Tao [Wed, 6 Nov 2019 17:38:10 +0000 (00:38 +0700)]
rustup improper_ctypes: `extern "C"` fns
flip1995 [Wed, 6 Nov 2019 17:15:04 +0000 (18:15 +0100)]
Add regression test for ICE #4775
flip1995 [Wed, 6 Nov 2019 17:14:47 +0000 (18:14 +0100)]
Fix ICE #4775
bors [Wed, 6 Nov 2019 15:50:42 +0000 (15:50 +0000)]
Auto merge of #4772 - HMPerson1:tastier_ice_cream, r=flip1995
Use correct TypeckTables when hashing bodies
Fixes #4760
changelog: Fix ICE while hashing block expressions #4760
r? @phansch
bors [Wed, 6 Nov 2019 12:13:39 +0000 (12:13 +0000)]
Auto merge of #4777 - lzutao:66014-rustup, r=matthiaskrgr
rustup https://github.com/rust-lang/rust/pull/65776
changelog: none
Lzu Tao [Wed, 6 Nov 2019 10:00:12 +0000 (17:00 +0700)]
bump smallvec to 1.0.0
Lzu Tao [Wed, 6 Nov 2019 09:46:32 +0000 (16:46 +0700)]
chore: sort out clippy_lints deps
Lzu Tao [Wed, 6 Nov 2019 09:50:24 +0000 (16:50 +0700)]
rustup rust-lang/rust#65776
Lzu Tao [Wed, 6 Nov 2019 06:27:39 +0000 (13:27 +0700)]
build: re-enable stdsimd integration test
Also sorting rls to the first in the list because it is now
the longest running test.
Lzu Tao [Wed, 6 Nov 2019 06:24:47 +0000 (06:24 +0000)]
rustup https://github.com/rust-lang/rust/pull/66014
Michael Wright [Wed, 6 Nov 2019 05:13:43 +0000 (07:13 +0200)]
Fix crash in `use-self` lint
Fixes #4727
bors [Wed, 6 Nov 2019 03:21:01 +0000 (03:21 +0000)]
Auto merge of #4714 - msizanoen1:remove-plugin, r=Manishearth
Remove clippy plugin
This PR removes the clippy plugin, which is already deprecated and is causing the `fmt_macros` not found error in rust-lang/rust#62558: https://github.com/rust-lang/rust/issues/62558#issuecomment-
529884322
changelog: remove plugin interface
bors [Tue, 5 Nov 2019 20:57:00 +0000 (20:57 +0000)]
Auto merge of #4773 - lzutao:rls/print-something, r=Manishearth
build: avoid timing out in Travis
cc #4770
changelog: none
Manish Goregaokar [Mon, 4 Nov 2019 19:40:06 +0000 (11:40 -0800)]
Turn off stdsimd integration test
Lzu Tao [Tue, 5 Nov 2019 14:51:56 +0000 (21:51 +0700)]
chore: remove unnecessary parentheses around type
Lzu Tao [Tue, 5 Nov 2019 14:36:44 +0000 (21:36 +0700)]
build: avoid timing out in Travis
HMPerson1 [Tue, 5 Nov 2019 01:03:03 +0000 (20:03 -0500)]
Use correct TypeckTables when hashing bodies
Evan Stoll [Sat, 2 Nov 2019 18:19:25 +0000 (14:19 -0400)]
deprecated_lints: re-fix ASSIGN_OPS lint doc-comment
Evan Stoll [Sat, 2 Nov 2019 18:10:59 +0000 (14:10 -0400)]
deprecated_lints: align doc comment indents with `pub LINT_NAME`
Evan Stoll [Sat, 2 Nov 2019 18:09:41 +0000 (14:09 -0400)]
deprecated_lints: remove extraneous `declare_deprecated_lint`
Michael Wright [Thu, 31 Oct 2019 07:13:08 +0000 (09:13 +0200)]
`DecimalLiteralRepresentation` simplification
Remove recalculation of literal value.
Evan Stoll [Thu, 31 Oct 2019 01:05:23 +0000 (21:05 -0400)]
Fix #4748 - Deprecated lints don't expand
- Move doc comments inside of declare_deprecated_lint macros so that they are picked up by lintlib.py
bors [Tue, 29 Oct 2019 09:41:27 +0000 (09:41 +0000)]
Auto merge of #4752 - lzutao:cache/uninstall-clippy, r=flip1995
build: do not cache clippy binaries in integration tests
We rebuild clippy anyway. So caching them is needless
```console
% ls -lF target/debug
total 628M
drwxr-xr-x 22 lzutao lzutao 4.0K Oct 29 04:02 build/
drwxr-xr-x 2 lzutao lzutao 144K Oct 29 04:03 deps/
drwxr-xr-x 2 lzutao lzutao 4.0K Oct 29 03:57 examples/
drwxr-xr-x 11 lzutao lzutao 4.0K Oct 29 04:03 incremental/
-rwxr-xr-x 2 lzutao lzutao 3.4M Oct 29 04:03 cargo-clippy*
-rw-r--r-- 1 lzutao lzutao 11K Oct 29 03:58 cargo-clippy.d
-rwxr-xr-x 2 lzutao lzutao 313M Oct 29 04:03 clippy-driver*
-rw-r--r-- 1 lzutao lzutao 11K Oct 29 03:58 clippy-driver.d
-rw-r--r-- 1 lzutao lzutao 11K Oct 29 04:03 libclippy.d
-rwxr-xr-x 2 lzutao lzutao 312M Oct 29 04:03 libclippy.so*
```
changelog: none
bors [Tue, 29 Oct 2019 09:17:53 +0000 (09:17 +0000)]
Auto merge of #4753 - mikerite:approx-const-
20191029 , r=flip1995
Simplify approx const truncation check
changelog: none
Michael Wright [Tue, 29 Oct 2019 06:34:05 +0000 (08:34 +0200)]
Simplify approx const truncation check
Lzu Tao [Tue, 29 Oct 2019 04:08:06 +0000 (11:08 +0700)]
build: do not cache clippy binaries in integration tests
We rebuild clippy anyway.
bors [Tue, 29 Oct 2019 03:16:14 +0000 (03:16 +0000)]
Auto merge of #4720 - lzutao:int-errexit, r=phansch
Do not early exit if cargo clippy returns non-zero status code
changelog: none
Lzu Tao [Sun, 27 Oct 2019 14:41:47 +0000 (21:41 +0700)]
build: strip before caching in .cargo/bin
Lzu Tao [Wed, 23 Oct 2019 18:50:00 +0000 (01:50 +0700)]
Early exit in integration tests
bors [Mon, 28 Oct 2019 20:26:41 +0000 (20:26 +0000)]
Auto merge of #4744 - phansch:split_up_some_derive_test, r=flip1995
UI test cleanup: Extract derive_hash_xor_eq tests
changelog: none
cc #2038
bors [Mon, 28 Oct 2019 17:12:24 +0000 (17:12 +0000)]
Auto merge of #4749 - flip1995:backport_merge, r=Manishearth
Merge backport branches back into master
r? @Manishearth
cc #4745
changelog: none
flip1995 [Mon, 28 Oct 2019 15:54:15 +0000 (16:54 +0100)]
Merge remote-tracking branch 'upstream/rust-1.39.0' into backport_merge
flip1995 [Mon, 28 Oct 2019 15:53:03 +0000 (16:53 +0100)]
Merge remote-tracking branch 'upstream/rust-1.38.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
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
Matthias Krüger [Mon, 28 Oct 2019 09:46:54 +0000 (10:46 +0100)]
travis: temporarily disable rustfmt ci check until #4742 is resolved
Matthias Krüger [Mon, 28 Oct 2019 08:02:48 +0000 (09:02 +0100)]
rustup https://github.com/rust-lang/rust/pull/65792/