]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoWhen suggesting `from(x)` for lossless casts, strip parens from `x`.
Dan Gohman [Wed, 30 Aug 2017 23:06:21 +0000 (16:06 -0700)]
When suggesting `from(x)` for lossless casts, strip parens from `x`.

6 years agoUpdate changelog
Manish Goregaokar [Tue, 5 Sep 2017 16:45:14 +0000 (09:45 -0700)]
Update changelog

6 years agoAdd lint to detect manual slice copies
Marcus Klaas [Tue, 5 Sep 2017 00:16:34 +0000 (20:16 -0400)]
Add lint to detect manual slice copies

6 years agoRustfmt for_loop.rs and add false positive tests
Oliver Schneider [Tue, 5 Sep 2017 10:53:52 +0000 (12:53 +0200)]
Rustfmt for_loop.rs and add false positive tests

6 years agoRun nightly rustfmt
Oliver Schneider [Tue, 5 Sep 2017 09:33:04 +0000 (11:33 +0200)]
Run nightly rustfmt

6 years agoMerge pull request #2020 from 0xbsec/patch-1
Martin Carton [Mon, 4 Sep 2017 19:29:50 +0000 (21:29 +0200)]
Merge pull request #2020 from 0xbsec/patch-1

Fix "further information" link

6 years agoFix "further information" link
M. Hasbini [Mon, 4 Sep 2017 17:03:51 +0000 (20:03 +0300)]
Fix "further information" link

"further information" link was missing the `v` part from the url.
e.g.
wrong (404 notfound): https://rust-lang-nursery.github.io/rust-clippy/0.0.157/index.html#map_entry
correct: https://rust-lang-nursery.github.io/rust-clippy/v0.0.157/index.html#map_entry

6 years agoVersion Bump
Oliver Schneider [Mon, 4 Sep 2017 15:07:19 +0000 (17:07 +0200)]
Version Bump

6 years agoFix `len_zero` ICE
Oliver Schneider [Mon, 4 Sep 2017 15:05:47 +0000 (17:05 +0200)]
Fix `len_zero` ICE

6 years agoUpdate to latest nightly
Oliver Schneider [Mon, 4 Sep 2017 14:10:36 +0000 (16:10 +0200)]
Update to latest nightly

6 years agoFix dogfood
Manish Goregaokar [Sun, 3 Sep 2017 21:58:27 +0000 (14:58 -0700)]
Fix dogfood

6 years agoRun rustfmt
Manish Goregaokar [Sun, 3 Sep 2017 21:15:15 +0000 (14:15 -0700)]
Run rustfmt

6 years agoFix unit_expr expectations and changelog entry
Manish Goregaokar [Sun, 3 Sep 2017 21:14:07 +0000 (14:14 -0700)]
Fix unit_expr expectations and changelog entry

6 years agoMerge branch 'pr-2016' into HEAD
Manish Goregaokar [Sun, 3 Sep 2017 21:02:16 +0000 (14:02 -0700)]
Merge branch 'pr-2016' into HEAD

6 years agoMention the false positive
Zaki Manian [Sun, 3 Sep 2017 21:01:29 +0000 (14:01 -0700)]
Mention the false positive

6 years agoBump to 0.0.156
Manish Goregaokar [Sun, 3 Sep 2017 20:57:40 +0000 (13:57 -0700)]
Bump to 0.0.156

6 years agoRustup to rustc 1.22.0-nightly (744dd6c1d 2017-09-02) (fixes #2013)
Manish Goregaokar [Sun, 3 Sep 2017 20:55:45 +0000 (13:55 -0700)]
Rustup to rustc 1.22.0-nightly (744dd6c1d 2017-09-02) (fixes #2013)

6 years agoRustfmt tests
Zaki Manian [Sun, 3 Sep 2017 20:46:49 +0000 (13:46 -0700)]
Rustfmt tests

6 years agoFix all the clippy lints
Zaki Manian [Sun, 3 Sep 2017 20:39:49 +0000 (13:39 -0700)]
Fix all the clippy lints

Add false positive tests

6 years agoRemove direct call for Deref
Zaki Manian [Sun, 3 Sep 2017 19:50:02 +0000 (12:50 -0700)]
Remove direct call for Deref

Remove "assigns" from the lint

6 years agoRustFmt file and tests
Zaki Manian [Sun, 3 Sep 2017 18:19:59 +0000 (11:19 -0700)]
RustFmt file and tests

6 years agoDon't trigger lint on break or return
Zaki Manian [Sun, 3 Sep 2017 18:17:20 +0000 (11:17 -0700)]
Don't trigger lint on break or return

6 years agoMore relevant tests
Zaki Manian [Sun, 3 Sep 2017 17:39:28 +0000 (10:39 -0700)]
More relevant tests

6 years agoImprove the lint message
Zaki Manian [Sun, 3 Sep 2017 16:52:28 +0000 (09:52 -0700)]
Improve the lint message

6 years agoUpdate unit tests
Zaki Manian [Sun, 3 Sep 2017 16:12:55 +0000 (09:12 -0700)]
Update unit tests

6 years agoearly tests
Zaki Manian [Sun, 3 Sep 2017 15:56:34 +0000 (08:56 -0700)]
early tests

6 years agoFix false positives in assignment inside the else condition
Zaki Manian [Sun, 3 Sep 2017 15:31:15 +0000 (08:31 -0700)]
Fix false positives in assignment inside the else condition

6 years agoRustFmt changes
Zaki Manian [Sun, 3 Sep 2017 04:33:26 +0000 (21:33 -0700)]
RustFmt changes

6 years agoSwitch back to manual deref
Zaki Manian [Sun, 3 Sep 2017 03:45:40 +0000 (20:45 -0700)]
Switch back to manual deref

6 years agoImproved spans for lints and support match expressions
Zaki Manian [Sun, 3 Sep 2017 03:36:24 +0000 (20:36 -0700)]
Improved spans for lints and support match expressions

6 years agoHandle method calls
Zaki Manian [Sat, 2 Sep 2017 22:04:52 +0000 (15:04 -0700)]
Handle method calls

6 years agoFix brace indentation
Zaki Manian [Sat, 2 Sep 2017 21:20:22 +0000 (14:20 -0700)]
Fix brace indentation

6 years agoCheck method calls
Zaki Manian [Sat, 2 Sep 2017 21:19:45 +0000 (14:19 -0700)]
Check method calls

6 years agoMore initial work
Zaki Manian [Sat, 2 Sep 2017 21:09:41 +0000 (14:09 -0700)]
More initial work

6 years agoIntroduce check_stmt
Zaki Manian [Sat, 2 Sep 2017 19:20:43 +0000 (12:20 -0700)]
Introduce check_stmt

6 years agoUse the type from the macro
Zaki Manian [Sat, 2 Sep 2017 18:29:01 +0000 (11:29 -0700)]
Use the type from the macro

6 years agoInitial commit of unit expr
Zaki Manian [Sat, 2 Sep 2017 18:25:33 +0000 (11:25 -0700)]
Initial commit of unit expr

6 years agoMerge pull request #2010 from rust-lang-nursery/doc_improvements
Oliver Schneider [Sat, 2 Sep 2017 05:22:21 +0000 (07:22 +0200)]
Merge pull request #2010 from rust-lang-nursery/doc_improvements

some small doc improvements

6 years agoMerge pull request #2009 from rust-lang-nursery/mcarton-patch-1
Oliver Schneider [Sat, 2 Sep 2017 05:12:25 +0000 (07:12 +0200)]
Merge pull request #2009 from rust-lang-nursery/mcarton-patch-1

Move the number of lints back to the top of README

6 years agosome small doc improvements
Andre Bogus [Fri, 1 Sep 2017 20:43:34 +0000 (22:43 +0200)]
some small doc improvements

6 years agoMove the number of lints back to the top of README
Martin Carton [Fri, 1 Sep 2017 18:29:36 +0000 (20:29 +0200)]
Move the number of lints back to the top of README

This used to be at the top and was moved at the bottom when the big list of lints started to be so ridiculously long that people had to scroll for 10 minutes to have usage information :smile:

6 years agoMerge pull request #2008 from rust-lang-nursery/oli-obk-patch-1
Oliver Schneider [Fri, 1 Sep 2017 16:59:28 +0000 (18:59 +0200)]
Merge pull request #2008 from rust-lang-nursery/oli-obk-patch-1

Remove clippy.bashy.io badge

6 years agoRemove clippy.bashy.io
Oliver Schneider [Fri, 1 Sep 2017 13:14:49 +0000 (15:14 +0200)]
Remove clippy.bashy.io

The service seems to be defunct for a while now

6 years agoMerge pull request #2007 from rust-lang-nursery/wiki
Oliver Schneider [Fri, 1 Sep 2017 13:07:14 +0000 (15:07 +0200)]
Merge pull request #2007 from rust-lang-nursery/wiki

Deprecate the wiki and remove the lint list from the README (fixes #1933)

6 years agoUpdate README lint counter message
Oliver Schneider [Fri, 1 Sep 2017 08:36:20 +0000 (10:36 +0200)]
Update README lint counter message

6 years agoLink to current versions docs instead of master docs
Oliver Schneider [Fri, 1 Sep 2017 08:35:58 +0000 (10:35 +0200)]
Link to current versions docs instead of master docs

6 years agowiki -> docs
Oliver Schneider [Fri, 1 Sep 2017 08:29:49 +0000 (10:29 +0200)]
wiki -> docs

6 years agoDeprecate the wiki and remove the lint list from the README (fixes #1933)
Oliver Schneider [Thu, 31 Aug 2017 13:38:24 +0000 (15:38 +0200)]
Deprecate the wiki and remove the lint list from the README (fixes #1933)

6 years agoMerge pull request #2006 from rust-lang-nursery/rustup
Oliver Schneider [Thu, 31 Aug 2017 13:38:13 +0000 (15:38 +0200)]
Merge pull request #2006 from rust-lang-nursery/rustup

Accessing `Span` internals is deprecated

6 years agoGet rid of another handwritten Span construtor in favour of a builtin function
Oliver Schneider [Thu, 31 Aug 2017 12:58:18 +0000 (14:58 +0200)]
Get rid of another handwritten Span construtor in favour of a builtin function

6 years agoAccessing `Span` internals is deprecated
Oliver Schneider [Thu, 31 Aug 2017 12:47:45 +0000 (14:47 +0200)]
Accessing `Span` internals is deprecated

6 years agoRustup (fixes #2002)
Oliver Schneider [Wed, 30 Aug 2017 08:54:24 +0000 (10:54 +0200)]
Rustup (fixes #2002)

6 years agoMerge pull request #1999 from sunfishcode/master
Oliver Schneider [Tue, 29 Aug 2017 15:08:06 +0000 (17:08 +0200)]
Merge pull request #1999 from sunfishcode/master

Enable the cast_lossless warning by default.

6 years agoEnable the cast_lossless warning by default.
Dan Gohman [Tue, 29 Aug 2017 12:48:19 +0000 (05:48 -0700)]
Enable the cast_lossless warning by default.

6 years agoMerge pull request #1956 from sunfishcode/master
Oliver Schneider [Tue, 29 Aug 2017 06:50:36 +0000 (08:50 +0200)]
Merge pull request #1956 from sunfishcode/master

Add a lint for lossless casts.

6 years agoMerge pull request #1998 from montrivo/bug/is_empty-false-positive
Oliver Schneider [Tue, 29 Aug 2017 06:49:16 +0000 (08:49 +0200)]
Merge pull request #1998 from montrivo/bug/is_empty-false-positive

len_without_is_empty false positive #1740

6 years agolen_without_is_empty false positive #1740
Tim Nielens [Mon, 28 Aug 2017 21:13:56 +0000 (23:13 +0200)]
len_without_is_empty false positive #1740

6 years agoUpdate tests to current rustc
Oliver Schneider [Mon, 28 Aug 2017 16:16:16 +0000 (18:16 +0200)]
Update tests to current rustc

6 years agoAdd a lint for lossless casts.
Dan Gohman [Sun, 13 Aug 2017 21:58:17 +0000 (14:58 -0700)]
Add a lint for lossless casts.

6 years agoMerge pull request #1861 from CBenoit/master
Oliver Schneider [Mon, 28 Aug 2017 12:34:30 +0000 (14:34 +0200)]
Merge pull request #1861 from CBenoit/master

Add example for needless borrowed ref lint and register it

6 years agoMerge pull request #1986 from koivunej/manualtesting-help
Oliver Schneider [Sun, 27 Aug 2017 10:44:45 +0000 (12:44 +0200)]
Merge pull request #1986 from koivunej/manualtesting-help

CONTRIBUTING: add manual testing section

6 years agoMerge pull request #1994 from ishitatsuyuki/lint-cleanup
Oliver Schneider [Sun, 27 Aug 2017 10:44:14 +0000 (12:44 +0200)]
Merge pull request #1994 from ishitatsuyuki/lint-cleanup

Lint cleanup

6 years agoRemove unused extern crates
Tatsuyuki Ishi [Sun, 27 Aug 2017 07:04:20 +0000 (16:04 +0900)]
Remove unused extern crates

6 years agoReorder allow attributes to suppress unknown lint warning
Tatsuyuki Ishi [Sun, 27 Aug 2017 07:02:05 +0000 (16:02 +0900)]
Reorder allow attributes to suppress unknown lint warning

6 years agoMerge pull request #1992 from rust-lang-nursery/infinite_iter
Oliver Schneider [Sat, 26 Aug 2017 21:06:00 +0000 (23:06 +0200)]
Merge pull request #1992 from rust-lang-nursery/infinite_iter

New lint: (maybe_)infinite_iter

6 years agorename TriState -> Finiteness, docs
Andre Bogus [Sat, 26 Aug 2017 16:46:42 +0000 (18:46 +0200)]
rename TriState -> Finiteness, docs

6 years agofix match_path -> match_qpath rename
Andre Bogus [Fri, 25 Aug 2017 22:09:31 +0000 (00:09 +0200)]
fix match_path -> match_qpath rename

6 years agoNew lint: (maybe_)infinite_iter
Andre Bogus [Fri, 25 Aug 2017 20:20:52 +0000 (22:20 +0200)]
New lint: (maybe_)infinite_iter

This fixes #1870 (mostly, does not account for loops yet)

6 years agoMerge pull request #1989 from Frederick888/fix-1988
Martin Carton [Fri, 25 Aug 2017 10:39:53 +0000 (12:39 +0200)]
Merge pull request #1989 from Frederick888/fix-1988

Try to fix #1988

6 years agoBump the version to 0.0.154
mcarton [Fri, 25 Aug 2017 10:01:57 +0000 (12:01 +0200)]
Bump the version to 0.0.154

6 years agoMerge pull request #1987 from alexeyzab/rename-match-path-old
Martin Carton [Fri, 25 Aug 2017 09:42:20 +0000 (11:42 +0200)]
Merge pull request #1987 from alexeyzab/rename-match-path-old

Rename `match_path_old` to `match_path`

6 years agofix PathParameters usage
Frederick Zhang [Fri, 25 Aug 2017 07:30:21 +0000 (17:30 +1000)]
fix PathParameters usage

6 years agoIncorporate upstream changes
Alexey Zabelin [Fri, 25 Aug 2017 00:46:40 +0000 (20:46 -0400)]
Incorporate upstream changes

6 years agoRename `match_path_old` to `match_path`
Alexey Zabelin [Thu, 24 Aug 2017 22:21:46 +0000 (18:21 -0400)]
Rename `match_path_old` to `match_path`

The old `match_path` was renamed to `match_qpath`.

As per #1983.

6 years agoMerge pull request #1959 from DarkEld3r/1884-borrowed-box-any
Oliver Schneider [Thu, 24 Aug 2017 21:59:15 +0000 (23:59 +0200)]
Merge pull request #1959 from DarkEld3r/1884-borrowed-box-any

Fix borrowed_box lint for Box<Any>

6 years agoCONTRIBUTING: add manual testing section
Joonas Koivunen [Thu, 24 Aug 2017 15:17:35 +0000 (18:17 +0300)]
CONTRIBUTING: add manual testing section

6 years agoMerge pull request #1984 from MaloJaffre/fix_int_to_bits
Oliver Schneider [Thu, 24 Aug 2017 07:11:13 +0000 (09:11 +0200)]
Merge pull request #1984 from MaloJaffre/fix_int_to_bits

Fix int_ty_to_nbits

6 years agoMerge pull request #1982 from rust-lang-nursery/bytecount
Oliver Schneider [Thu, 24 Aug 2017 07:09:56 +0000 (09:09 +0200)]
Merge pull request #1982 from rust-lang-nursery/bytecount

new lint: naive_bytecount

6 years agoFix int_ty_to_nbits
Malo Jaffré [Wed, 23 Aug 2017 20:18:04 +0000 (22:18 +0200)]
Fix int_ty_to_nbits

Thanks @oli-obk for the detailed instructions.
Fixes #1957.

6 years agoadd closure arg check, also catch non-consts
Andre Bogus [Wed, 23 Aug 2017 15:54:35 +0000 (17:54 +0200)]
add closure arg check, also catch non-consts

6 years agoMerge pull request #1979 from montrivo/use_self
Oliver Schneider [Wed, 23 Aug 2017 14:40:19 +0000 (16:40 +0200)]
Merge pull request #1979 from montrivo/use_self

lint #1674: lifetimed types exclusion

6 years agoFix 'cyclomatic complexity' warning
Stanislav Tkach [Wed, 23 Aug 2017 14:13:51 +0000 (17:13 +0300)]
Fix 'cyclomatic complexity' warning

6 years agoFix borrowed_box lint for Box<Any>
Stanislav Tkach [Mon, 14 Aug 2017 20:04:56 +0000 (23:04 +0300)]
Fix borrowed_box lint for Box<Any>

6 years agonew lint: naive_bytecount
Andre Bogus [Tue, 22 Aug 2017 21:45:08 +0000 (23:45 +0200)]
new lint: naive_bytecount

6 years agolint #1674: lifetimed types exclusion
Tim Nielens [Tue, 22 Aug 2017 17:22:47 +0000 (19:22 +0200)]
lint #1674: lifetimed types exclusion

add expect() message and update test results

6 years agolint #1674: lifetimed types exclusion
Tim Nielens [Mon, 21 Aug 2017 22:18:37 +0000 (00:18 +0200)]
lint #1674: lifetimed types exclusion

6 years agoMerge pull request #1980 from bjgill/patch-1
Oliver Schneider [Tue, 22 Aug 2017 09:17:48 +0000 (11:17 +0200)]
Merge pull request #1980 from bjgill/patch-1

Changelog entry for `cargo clippy --all`

6 years agoChangelog entry for `cargo clippy --all`
Benjamin Gill [Tue, 22 Aug 2017 08:59:58 +0000 (09:59 +0100)]
Changelog entry for `cargo clippy --all`

Should have added this as part of #1975

6 years agoMerge pull request #1977 from rust-lang-nursery/panic
Oliver Schneider [Tue, 22 Aug 2017 08:20:02 +0000 (10:20 +0200)]
Merge pull request #1977 from rust-lang-nursery/panic

Fix a panic and a false positive

6 years agoMerge pull request #1975 from bjgill/clippy--all
Oliver Schneider [Tue, 22 Aug 2017 08:16:16 +0000 (10:16 +0200)]
Merge pull request #1975 from bjgill/clippy--all

Implement `cargo clippy --all`

6 years agoMerge pull request #1978 from rust-lang-nursery/fix-768
Oliver Schneider [Tue, 22 Aug 2017 08:15:32 +0000 (10:15 +0200)]
Merge pull request #1978 from rust-lang-nursery/fix-768

fix #768 by checking for message macro expansion

6 years agoRemove surplus clippy invocation in travis
Benjamin Gill [Tue, 22 Aug 2017 01:15:45 +0000 (02:15 +0100)]
Remove surplus clippy invocation in travis

6 years agoMerge remote-tracking branch 'upstream/master' into clippy--all
Benjamin Gill [Tue, 22 Aug 2017 01:11:32 +0000 (02:11 +0100)]
Merge remote-tracking branch 'upstream/master' into clippy--all

6 years agofix #768 by checking for message macro expansion
Andre Bogus [Mon, 21 Aug 2017 21:23:54 +0000 (23:23 +0200)]
fix #768 by checking for message macro expansion

6 years agoRebase and update ui test
Oliver Schneider [Mon, 21 Aug 2017 12:22:41 +0000 (14:22 +0200)]
Rebase and update ui test

6 years agoFinalize needless_borrowed_ref lint doc.
Benoît CORTIER [Sat, 1 Jul 2017 16:51:20 +0000 (18:51 +0200)]
Finalize needless_borrowed_ref lint doc.

Make sure the needless_borrowed_ref.stderr in examples is up to date
too.

6 years agoImprove needless_borrowed_ref lint: remove the hand rolled span part.
Benoît CORTIER [Sat, 1 Jul 2017 14:56:19 +0000 (16:56 +0200)]
Improve needless_borrowed_ref lint: remove the hand rolled span part.

6 years agoImprove needless_borrowed_ref and update its stderr.
Benoît CORTIER [Sat, 1 Jul 2017 10:02:00 +0000 (12:02 +0200)]
Improve needless_borrowed_ref and update its stderr.

6 years agoImprove needless_borrowed_ref and add suggestion to it.
Benoît CORTIER [Sat, 1 Jul 2017 10:01:39 +0000 (12:01 +0200)]
Improve needless_borrowed_ref and add suggestion to it.

6 years agoUpdate needless_borrowed_ref lint example.
Benoît CORTIER [Fri, 30 Jun 2017 14:07:29 +0000 (16:07 +0200)]
Update needless_borrowed_ref lint example.