]>
git.lizzy.rs Git - rust.git/log
Oliver Schneider [Mon, 18 Sep 2017 10:47:33 +0000 (12:47 +0200)]
Reduce the hackiness of cargo-clippy
Oliver Schneider [Sat, 30 Sep 2017 15:10:09 +0000 (17:10 +0200)]
Merge pull request #1838 from rust-lang-nursery/fix-doc
Don't lint autolinks in `doc_markdown`
Oliver Schneider [Sat, 30 Sep 2017 14:19:12 +0000 (16:19 +0200)]
Merge pull request #2096 from lpesk/invalid-ref
Lint for creation of invalid references
mcarton [Mon, 19 Jun 2017 19:23:50 +0000 (21:23 +0200)]
Have a separate message for raw URLs in doc
mcarton [Mon, 19 Jun 2017 17:49:29 +0000 (19:49 +0200)]
Add the `url` crate as a dependency
mcarton [Sun, 18 Jun 2017 21:00:14 +0000 (23:00 +0200)]
Don't lint autolinks in `doc_markdown`
Laura Peskin [Sat, 30 Sep 2017 01:48:10 +0000 (21:48 -0400)]
alphabetize paths to pass dogfood
Laura Peskin [Sat, 30 Sep 2017 01:01:02 +0000 (21:01 -0400)]
add tests for false positives
Laura Peskin [Fri, 29 Sep 2017 02:52:10 +0000 (22:52 -0400)]
add ui test for invalid_ref
Laura Peskin [Fri, 29 Sep 2017 02:24:31 +0000 (22:24 -0400)]
add lint for creation of invalid references
Martin Carton [Fri, 29 Sep 2017 19:25:10 +0000 (21:25 +0200)]
Merge pull request #2097 from rust-lang-nursery/fix-2041
Fix detection of format and print macros
mcarton [Fri, 29 Sep 2017 17:13:21 +0000 (19:13 +0200)]
Fix regression with `print!`
mcarton [Fri, 29 Sep 2017 16:36:03 +0000 (18:36 +0200)]
Fix regression with `format!`
Oliver Schneider [Fri, 29 Sep 2017 06:49:27 +0000 (08:49 +0200)]
Merge pull request #2084 from ykrivopalov/bit_mask_verbosity_threshold
Configuration option for VERBOSE_BIT_MASK threshold
Oliver Schneider [Fri, 29 Sep 2017 06:42:14 +0000 (08:42 +0200)]
Merge pull request #2087 from Aaron1011/rustc_wrapper
Set RUSTC_WRAPPER instead of RUSTC when invoking Cargo
Aaron Hill [Wed, 27 Sep 2017 18:17:08 +0000 (14:17 -0400)]
Set RUSTC_WRAPPER instead of RUSTC when invoking Cargo
Some build scripts rely on the RUSTC binary being the actual compiler
(e.g. parsing the output of 'RUSTC --version'). To prevent clippy from
breaking these build scripts, this commit sets RUSTC_WRAPPER instead.
This will cause Cargo to leave RUSTC unchanged, making the use of clippy
transparent to build scripts.
Manish Goregaokar [Thu, 28 Sep 2017 17:50:15 +0000 (10:50 -0700)]
Merge pull request #2091 from rust-lang-nursery/rustup
Rust upgrade to rustc 1.22.0-nightly (
0e6f4cf51 2017-09-27)
Manish Goregaokar [Thu, 28 Sep 2017 17:44:29 +0000 (10:44 -0700)]
Bump to 0.0.165
Manish Goregaokar [Thu, 28 Sep 2017 17:44:26 +0000 (10:44 -0700)]
Update changelog
Manish Goregaokar [Thu, 28 Sep 2017 17:40:19 +0000 (10:40 -0700)]
Update ... -> ..= in tests
Manish Goregaokar [Thu, 28 Sep 2017 17:35:14 +0000 (10:35 -0700)]
Use ..= in the suggestion
Manish Goregaokar [Thu, 28 Sep 2017 14:11:34 +0000 (07:11 -0700)]
Rust upgrade to rustc 1.22.0-nightly (
0e6f4cf51 2017-09-27)
Yury Krivopalov [Tue, 26 Sep 2017 15:54:08 +0000 (18:54 +0300)]
Clarify verbose_bit_mask_threshold description
Manish Goregaokar [Tue, 26 Sep 2017 03:11:07 +0000 (20:11 -0700)]
Merge branch 'pr-1945'
Manish Goregaokar [Tue, 26 Sep 2017 03:04:57 +0000 (20:04 -0700)]
Merge pull request #2085 from rust-lang-nursery/rustup
[WIP] Rustup to rustc 1.22.0-nightly (
6c476ce46 2017-09-25)
Manish Goregaokar [Tue, 26 Sep 2017 02:56:48 +0000 (19:56 -0700)]
Bump to 0.0.164
Manish Goregaokar [Tue, 26 Sep 2017 02:54:24 +0000 (19:54 -0700)]
Run prepublish script
Manish Goregaokar [Tue, 26 Sep 2017 02:52:20 +0000 (19:52 -0700)]
Fix dogfood needless-borrow
Manish Goregaokar [Tue, 26 Sep 2017 02:52:13 +0000 (19:52 -0700)]
Fix dogfood filter-map
Manish Goregaokar [Tue, 26 Sep 2017 02:44:50 +0000 (19:44 -0700)]
Reduce cyclomatic complexity of types::check_ty
Manish Goregaokar [Tue, 26 Sep 2017 02:04:55 +0000 (19:04 -0700)]
Rustup to rustc 1.22.0-nightly (
6c476ce46 2017-09-25)
Manish Goregaokar [Tue, 26 Sep 2017 01:43:34 +0000 (18:43 -0700)]
Update changelog
Manish Goregaokar [Tue, 26 Sep 2017 01:39:50 +0000 (18:39 -0700)]
Pass dogfood
Manish Goregaokar [Tue, 26 Sep 2017 01:32:05 +0000 (18:32 -0700)]
Make it a ui test, update
Manish Goregaokar [Mon, 25 Sep 2017 20:52:23 +0000 (13:52 -0700)]
Update lockfile
Manish Goregaokar [Mon, 25 Sep 2017 20:52:17 +0000 (13:52 -0700)]
Update line numbers
Michal Budzynski [Thu, 14 Sep 2017 14:04:04 +0000 (16:04 +0200)]
stabilizing feature iterator_for_each for rust 1.21.0
Yury Krivopalov [Mon, 25 Sep 2017 20:38:49 +0000 (23:38 +0300)]
Configuration option for VERBOSE_BIT_MASK threshold
By default is 1. u64, because I didn't figure out how to deserialize
u128 option from config.
Manish Goregaokar [Mon, 25 Sep 2017 17:22:57 +0000 (10:22 -0700)]
Merge pull request #2079 from rust-lang-nursery/ptr_arg-vs-capacity
avoid linting `ptr_arg` if `.capacity()` is called.
Laura Peskin [Mon, 25 Sep 2017 06:00:21 +0000 (02:00 -0400)]
add lint for mutable borrow; may have false positives. pushed for feedback
Laura Peskin [Mon, 25 Sep 2017 05:44:47 +0000 (01:44 -0400)]
replace defids with nodeids for local variables
Laura Peskin [Sun, 24 Sep 2017 19:40:10 +0000 (15:40 -0400)]
use def_id of function in check_for_mutation
Laura Peskin [Tue, 19 Sep 2017 00:10:33 +0000 (17:10 -0700)]
refactor, add spans to warnings, add tests
Manish Goregaokar [Wed, 30 Aug 2017 17:07:25 +0000 (10:07 -0700)]
Update test, fix lint
Manish Goregaokar [Wed, 30 Aug 2017 16:47:28 +0000 (09:47 -0700)]
Rustup
Laura Peskin [Wed, 30 Aug 2017 14:38:13 +0000 (17:38 +0300)]
attempt to add check for mutation of range bound within loop; compiles but doesn't work as intended. pushed for feedback
Laura Peskin [Tue, 15 Aug 2017 16:41:59 +0000 (19:41 +0300)]
implement lint for mutable range bound
Laura Peskin [Thu, 10 Aug 2017 23:21:43 +0000 (02:21 +0300)]
add lint declaration and example that should trigger the lint
Oliver Schneider [Sun, 24 Sep 2017 11:57:56 +0000 (13:57 +0200)]
Merge pull request #2060 from mrecachinas/feature/int-plus-one
Addresses #1955 - Suggests >= y + 1 become > y
Michael Recachinas [Sun, 24 Sep 2017 11:31:12 +0000 (12:31 +0100)]
Change rtype of int_plus_one detection to Option<String>
Michael Recachinas [Sun, 24 Sep 2017 09:30:29 +0000 (10:30 +0100)]
Change to returning Option<(bool, Option<String>)>
Michael Recachinas [Sun, 24 Sep 2017 08:58:58 +0000 (09:58 +0100)]
Remove old return-value
Manish Goregaokar [Sat, 23 Sep 2017 20:47:07 +0000 (13:47 -0700)]
Merge pull request #2082 from rust-lang-nursery/rustup
Rust upgrade to rustc 1.22.0-nightly (
14039a42a 2017-09-22)
Manish Goregaokar [Sat, 23 Sep 2017 20:36:40 +0000 (13:36 -0700)]
fix docs
Manish Goregaokar [Sat, 23 Sep 2017 20:36:18 +0000 (13:36 -0700)]
Bump to 0.0.163
Manish Goregaokar [Sat, 23 Sep 2017 20:35:06 +0000 (13:35 -0700)]
Update test expectations
Manish Goregaokar [Sat, 23 Sep 2017 20:30:29 +0000 (13:30 -0700)]
Rust upgrade to rustc 1.22.0-nightly (
14039a42a 2017-09-22)
Michael Recachinas [Sat, 23 Sep 2017 18:32:11 +0000 (19:32 +0100)]
Use span_lint_and_then as per feedback
Andre Bogus [Wed, 20 Sep 2017 21:59:23 +0000 (23:59 +0200)]
avoid linting `ptr_arg` if `.capacity()` is called. Also suggest removing `.as_str()` where applicable.
THis fixes #2070.
Also fixes a few formatting mishaps
Manish Goregaokar [Tue, 19 Sep 2017 03:36:34 +0000 (20:36 -0700)]
Merge pull request #2069 from rust-lang-nursery/rustup
Rust upgrade to rustc 1.22.0-nightly (
0701b37d9 2017-09-18)
Manish Goregaokar [Tue, 19 Sep 2017 03:26:36 +0000 (20:26 -0700)]
Bump to 0.0.162
Manish Goregaokar [Tue, 19 Sep 2017 03:23:08 +0000 (20:23 -0700)]
Rust upgrade to rustc 1.22.0-nightly (
0701b37d9 2017-09-18)
Martin Carton [Mon, 18 Sep 2017 20:40:00 +0000 (22:40 +0200)]
Fix case in doc_valid_idents
BibTeX and BibLaTeX use the usual capitalization of TeX tools:
- https://www.ctan.org/pkg/bibtex
- https://www.ctan.org/pkg/biblatex
Martin Carton [Mon, 18 Sep 2017 20:34:43 +0000 (22:34 +0200)]
Merge pull request #2066 from lucab/ups/doc-markdown
lints/doc_markdown: add two more entries
Luca Bruno [Mon, 18 Sep 2017 14:44:28 +0000 (14:44 +0000)]
lints/doc_markdown: add two more entries
Michael Recachinas [Sun, 17 Sep 2017 16:27:40 +0000 (17:27 +0100)]
Add tests for 'int_plus_one'
Michael Recachinas [Sun, 17 Sep 2017 16:27:16 +0000 (17:27 +0100)]
Register 'int_plus_one' lint case in clippy_lints
Michael Recachinas [Sun, 17 Sep 2017 16:18:12 +0000 (17:18 +0100)]
(#1955): Suggests `x > y` over `x >= y + 1` for ints
This module handles the following cases:
- `... >= ... + 1` and `... >= 1 + ...`
- `... - 1 >= ...` and `-1 + ... >= ...`
- `... + 1 <= ...` and `... + 1 <= ...`
- `... <= ... - 1` and `... <= -1 + ...`
Note: this only goes 1 level deep (i.e., does not constant-fold) and
does not currently simplify expressions. Examples of these
cases include:
```rust
let x = 1;
y >= y + x; // won't catch this case or any permutation
x + 1 >= y + 2; // won't catch this case
x + 1 - 1 >= y - 1 + 1; // WILL catch this case when it likely shouldn't
```
Oliver Schneider [Sun, 17 Sep 2017 13:37:21 +0000 (15:37 +0200)]
Merge pull request #2058 from rust-lang-nursery/ptr_arg-vs-clone
add suggestions for .clone() in ptr_arg fns
llogiq [Sun, 17 Sep 2017 08:21:43 +0000 (10:21 +0200)]
Merge pull request #2059 from marcusklaas/manual-slice-clone4
Also detect manual slice cloning
Marcus Klaas [Sat, 16 Sep 2017 23:17:22 +0000 (19:17 -0400)]
Extend MANUAL_MEMCPY lint so that it also detects manual clones between slices
Marcus Klaas [Sat, 16 Sep 2017 22:53:55 +0000 (18:53 -0400)]
Add test for manual slice clones
Marcus Klaas [Sat, 16 Sep 2017 22:45:28 +0000 (18:45 -0400)]
Format loops.rs with latest stable rustfmt
llogiq [Sat, 16 Sep 2017 07:16:55 +0000 (09:16 +0200)]
Merge pull request #2057 from topecongiro/issue-1818
Enhance CHARS_*_CMP lint
llogiq [Sat, 16 Sep 2017 07:13:13 +0000 (09:13 +0200)]
Merge pull request #2056 from topecongiro/issue-1851
Add suggestion to needless_borrow
Andre Bogus [Sat, 16 Sep 2017 07:10:26 +0000 (09:10 +0200)]
add suggestions for .clone() in ptr_arg fns
topecongiro [Sat, 16 Sep 2017 05:50:30 +0000 (14:50 +0900)]
Update tests
topecongiro [Sat, 16 Sep 2017 05:50:07 +0000 (14:50 +0900)]
Enhance CHARS_*_CMP lint
topecongiro [Sat, 16 Sep 2017 02:27:46 +0000 (11:27 +0900)]
Update tests
topecongiro [Sat, 16 Sep 2017 02:27:24 +0000 (11:27 +0900)]
Add suggestion to needless_borrow
Oliver Schneider [Fri, 15 Sep 2017 07:21:46 +0000 (09:21 +0200)]
Merge pull request #2052 from topecongiro/issue-1990
Add ExprLoop to contains_continue_expr()
Seiichi Uchida [Thu, 14 Sep 2017 13:27:29 +0000 (22:27 +0900)]
Update a test
Seiichi Uchida [Thu, 14 Sep 2017 13:26:59 +0000 (22:26 +0900)]
Add ExprLoop to contains_continue_expr()
Seiichi Uchida [Thu, 14 Sep 2017 13:24:00 +0000 (22:24 +0900)]
Bump version
Oliver Schneider [Thu, 14 Sep 2017 07:13:54 +0000 (09:13 +0200)]
Version bump
Oliver Schneider [Thu, 14 Sep 2017 07:11:10 +0000 (09:11 +0200)]
Merge pull request #2049 from topecongiro/rustc-fix
rustc fix
topecongiro [Thu, 14 Sep 2017 04:18:34 +0000 (13:18 +0900)]
Remove '\t' from .stderr
to make cargo test pass
topecongiro [Thu, 14 Sep 2017 04:18:08 +0000 (13:18 +0900)]
Add a missing argument
Oliver Schneider [Wed, 13 Sep 2017 13:41:09 +0000 (15:41 +0200)]
Merge remote-tracking branch 'origin/master' into rustup
Oliver Schneider [Wed, 13 Sep 2017 13:34:04 +0000 (15:34 +0200)]
Rustup
llogiq [Tue, 12 Sep 2017 18:12:48 +0000 (20:12 +0200)]
Merge pull request #2046 from siiptuo/small-doc-fixes
Small documentation fixes
Tuomas Siipola [Tue, 12 Sep 2017 16:04:57 +0000 (19:04 +0300)]
Fix link in trivial_regex
Tuomas Siipola [Tue, 12 Sep 2017 16:04:05 +0000 (19:04 +0300)]
Fix empty documentation in unit_expr
Tuomas Siipola [Tue, 12 Sep 2017 16:03:34 +0000 (19:03 +0300)]
Fix links in approx_const
Oliver Schneider [Tue, 12 Sep 2017 12:40:24 +0000 (14:40 +0200)]
Version bump
Oliver Schneider [Tue, 12 Sep 2017 12:26:40 +0000 (14:26 +0200)]
Rustup
Oliver Schneider [Tue, 12 Sep 2017 12:25:58 +0000 (14:25 +0200)]
Regressions (#2041)
Oliver Schneider [Mon, 11 Sep 2017 06:30:52 +0000 (08:30 +0200)]
Merge pull request #2039 from rust-lang-nursery/ptr-arg-suggestion
suggestion for ptr_arg
Andre Bogus [Sun, 10 Sep 2017 17:32:24 +0000 (19:32 +0200)]
suggestion for ptr_arg
Oliver Schneider [Sun, 10 Sep 2017 09:27:02 +0000 (11:27 +0200)]
Merge pull request #2037 from Aaron1011/clone-rc
Add CLONE_ON_REF_PTR lint