]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoFix type complexity lint
Manish Goregaokar [Thu, 15 Oct 2015 14:25:14 +0000 (19:55 +0530)]
Fix type complexity lint

8 years agoMerge pull request #395 from Manishearth/rustup
llogiq [Thu, 15 Oct 2015 14:24:04 +0000 (16:24 +0200)]
Merge pull request #395 from Manishearth/rustup

rustup

8 years agoMerge branch 'master' of https://github.com/Manishearth/rust-clippy into rustup
Andre Bogus [Thu, 15 Oct 2015 14:19:08 +0000 (16:19 +0200)]
Merge branch 'master' of https://github.com/Manishearth/rust-clippy into rustup

8 years agoworkaround for failing test
Andre Bogus [Thu, 15 Oct 2015 14:18:40 +0000 (16:18 +0200)]
workaround for failing test

8 years agobump crate version
Andre Bogus [Thu, 15 Oct 2015 14:04:19 +0000 (16:04 +0200)]
bump crate version

8 years agorustup
Andre Bogus [Thu, 15 Oct 2015 14:02:19 +0000 (16:02 +0200)]
rustup

8 years agobump crates
Manish Goregaokar [Thu, 15 Oct 2015 13:52:36 +0000 (19:22 +0530)]
bump crates

8 years agoMerge pull request #392 from fhartwig/warn-ptr-args
llogiq [Wed, 14 Oct 2015 20:40:18 +0000 (22:40 +0200)]
Merge pull request #392 from fhartwig/warn-ptr-args

Make ptr_arg lint warn by default

8 years agoMake ptr_arg lint warn by default
Florian Hartwig [Wed, 14 Oct 2015 17:51:54 +0000 (19:51 +0200)]
Make ptr_arg lint warn by default

8 years agoMerged #365
Andre Bogus [Wed, 14 Oct 2015 10:22:57 +0000 (12:22 +0200)]
Merged #365

8 years agoMerged #366
Andre Bogus [Wed, 14 Oct 2015 10:06:28 +0000 (12:06 +0200)]
Merged #366

8 years agoMerge PR #374
Andre Bogus [Wed, 14 Oct 2015 09:44:09 +0000 (11:44 +0200)]
Merge PR #374

8 years agoMerge pull request #382 from Manishearth/empty_loop
Manish Goregaokar [Tue, 13 Oct 2015 13:09:11 +0000 (18:39 +0530)]
Merge pull request #382 from Manishearth/empty_loop

new lint to detect `loop {}`

8 years agoupdate lints
Andre Bogus [Tue, 13 Oct 2015 12:45:35 +0000 (14:45 +0200)]
update lints

8 years agonew lint to detect
Andre Bogus [Mon, 12 Oct 2015 11:38:18 +0000 (13:38 +0200)]
new lint to detect

8 years agoMerge pull request #390 from Manishearth/precedence
Manish Goregaokar [Tue, 13 Oct 2015 12:03:23 +0000 (17:33 +0530)]
Merge pull request #390 from Manishearth/precedence

improved precedence messages (fixes #389)

8 years agoimproved precedence messages (fixes #389)
Andre Bogus [Tue, 13 Oct 2015 11:48:48 +0000 (13:48 +0200)]
improved precedence messages (fixes #389)

8 years agoImprove cmp_owned suggestions (fixes #386)
Manish Goregaokar [Mon, 12 Oct 2015 22:46:05 +0000 (04:16 +0530)]
Improve cmp_owned suggestions (fixes #386)

8 years agowhup the while_let_loop for ignoring expressions!
Ravi Shankar [Sun, 11 Oct 2015 16:49:01 +0000 (22:19 +0530)]
whup the while_let_loop for ignoring expressions!

8 years agoMerge pull request #379 from swgillespie/zero_div_zero_nan
Manish Goregaokar [Mon, 12 Oct 2015 06:03:35 +0000 (11:33 +0530)]
Merge pull request #379 from swgillespie/zero_div_zero_nan

implement 0.0/0.0 -> NaN lint as described in #370

8 years agoMerge pull request #381 from durka/patch-2
llogiq [Mon, 12 Oct 2015 06:01:35 +0000 (08:01 +0200)]
Merge pull request #381 from durka/patch-2

fix doc comment for if_let_chain!

8 years agoRemove "are you sure?" from lint msg.
Georg Brandl [Mon, 12 Oct 2015 05:59:08 +0000 (07:59 +0200)]
Remove "are you sure?" from lint msg.

No added value, and leads to punctuation clash.

8 years agofix doc comment for if_let_chain!
Alex Burka [Mon, 12 Oct 2015 05:54:44 +0000 (01:54 -0400)]
fix doc comment for if_let_chain!

8 years agoimplement 0.0/0.0 -> NaN lint as described in #370
swgillespie [Mon, 12 Oct 2015 02:22:13 +0000 (19:22 -0700)]
implement 0.0/0.0 -> NaN lint as described in #370

casing of NaN

8 years agoMerge pull request #377 from Manishearth/rustup
Manish Goregaokar [Sun, 11 Oct 2015 21:16:23 +0000 (02:46 +0530)]
Merge pull request #377 from Manishearth/rustup

Rust upgrade to rustc 1.5.0-nightly (9d3e79ad3 2015-10-10)

8 years agoRust upgrade to rustc 1.5.0-nightly (9d3e79ad3 2015-10-10)
Manish Goregaokar [Sun, 11 Oct 2015 21:12:21 +0000 (02:42 +0530)]
Rust upgrade to rustc 1.5.0-nightly (9d3e79ad3 2015-10-10)

8 years agoRecommend using Mutex<()> for locking
Florian Hartwig [Sun, 11 Oct 2015 14:07:00 +0000 (16:07 +0200)]
Recommend using Mutex<()> for locking

8 years agoMerge pull request #369 from fhartwig/allow-warn
Manish Goregaokar [Thu, 8 Oct 2015 09:21:53 +0000 (14:51 +0530)]
Merge pull request #369 from fhartwig/allow-warn

Fix documentation that disagrees with code

8 years agoFix documentation that disagrees with code
Florian Hartwig [Wed, 7 Oct 2015 22:35:32 +0000 (00:35 +0200)]
Fix documentation that disagrees with code

8 years agoAdd a lint for sized integer types in a mutex
Florian Hartwig [Wed, 7 Oct 2015 20:58:34 +0000 (22:58 +0200)]
Add a lint for sized integer types in a mutex

8 years agoChange lint description
Pyriphlegethon [Wed, 7 Oct 2015 15:15:44 +0000 (17:15 +0200)]
Change lint description

8 years agoAdd "nonsensical OpenOptions" lint
Pyriphlegethon [Wed, 7 Oct 2015 11:15:14 +0000 (13:15 +0200)]
Add "nonsensical OpenOptions" lint

8 years agoSuggest using an atomic value instead of a Mutex where possible
Florian Hartwig [Tue, 6 Oct 2015 23:17:57 +0000 (01:17 +0200)]
Suggest using an atomic value instead of a Mutex where possible

8 years agoMerge pull request #354 from Pyriphlegethon/master
Manish Goregaokar [Tue, 6 Oct 2015 22:48:02 +0000 (04:18 +0530)]
Merge pull request #354 from Pyriphlegethon/master

Add "unnecessary mut passed" lint

8 years agoRingBuf was renamed to VecDeque (fixes #363)
Georg Brandl [Mon, 5 Oct 2015 20:02:05 +0000 (22:02 +0200)]
RingBuf was renamed to VecDeque (fixes #363)

8 years agoBump version
Manish Goregaokar [Mon, 5 Oct 2015 19:20:06 +0000 (00:50 +0530)]
Bump version

8 years agoMerge pull request #361 from cuviper/deflocal
Manish Goregaokar [Fri, 2 Oct 2015 18:19:25 +0000 (23:49 +0530)]
Merge pull request #361 from cuviper/deflocal

Update the DefLocal pattern

8 years agoUpdate the DefLocal pattern
Josh Stone [Fri, 2 Oct 2015 18:07:56 +0000 (11:07 -0700)]
Update the DefLocal pattern

DefLocal now contains a DefId too, since rust-lang/rust@a0dc2d9a29218.

8 years agoMerge pull request #360 from Manishearth/fix-ice
Manish Goregaokar [Fri, 2 Oct 2015 08:09:07 +0000 (13:39 +0530)]
Merge pull request #360 from Manishearth/fix-ice

Fix a panic caused by while let

8 years agobump
Manish Goregaokar [Fri, 2 Oct 2015 07:56:04 +0000 (13:26 +0530)]
bump

8 years agoFix a panic caused by while let
Manish Goregaokar [Fri, 2 Oct 2015 07:55:34 +0000 (13:25 +0530)]
Fix a panic caused by while let

8 years agoMerge pull request #351 from Wafflespeanut/while_let
Manish Goregaokar [Wed, 30 Sep 2015 19:44:45 +0000 (01:14 +0530)]
Merge pull request #351 from Wafflespeanut/while_let

Training the `while_let` detector...

8 years agoWell, fix them again
Pyriphlegethon [Wed, 30 Sep 2015 16:17:55 +0000 (18:17 +0200)]
Well, fix them again

8 years agoFix tests
Pyriphlegethon [Wed, 30 Sep 2015 16:00:14 +0000 (18:00 +0200)]
Fix tests

8 years agoFix rustup fallout: lifetimes false positives
Manish Goregaokar [Wed, 30 Sep 2015 14:40:54 +0000 (20:10 +0530)]
Fix rustup fallout: lifetimes false positives

8 years agorustup to rustc 1.5.0-nightly (65d5c0833 2015-09-29)
Manish Goregaokar [Wed, 30 Sep 2015 14:24:41 +0000 (19:54 +0530)]
rustup to rustc 1.5.0-nightly (65d5c0833 2015-09-29)

8 years agoAdd test for unnecessary mut passed lint
Pyriphlegethon [Wed, 30 Sep 2015 11:27:09 +0000 (13:27 +0200)]
Add test for unnecessary mut passed lint

8 years agoRemove unnecessary clones and add helper function
Pyriphlegethon [Wed, 30 Sep 2015 11:08:29 +0000 (13:08 +0200)]
Remove unnecessary clones and add helper function

8 years agoChange description of unnecessary mut passed lint
Pyriphlegethon [Tue, 29 Sep 2015 16:52:19 +0000 (18:52 +0200)]
Change description of unnecessary mut passed lint

8 years agoAdd unnecessary mut passed lint for methods
Pyriphlegethon [Tue, 29 Sep 2015 16:43:38 +0000 (18:43 +0200)]
Add unnecessary mut passed lint for methods

8 years agoextending while_let to warn for more statements
Ravi Shankar [Sun, 27 Sep 2015 07:39:42 +0000 (13:09 +0530)]
extending while_let to warn for more statements

8 years agoReplace tabs by spaces
Pyriphlegethon [Tue, 29 Sep 2015 11:16:53 +0000 (13:16 +0200)]
Replace tabs by spaces

8 years agoAdd unnecessary mut passed lint
Pyriphlegethon [Tue, 29 Sep 2015 11:11:19 +0000 (13:11 +0200)]
Add unnecessary mut passed lint

8 years agoall: remove trailing spaces
Georg Brandl [Mon, 28 Sep 2015 05:11:03 +0000 (07:11 +0200)]
all: remove trailing spaces

8 years agorustup to 1.5.0-nightly (7bf4c885f 2015-09-26)
Manish Goregaokar [Mon, 28 Sep 2015 05:04:06 +0000 (10:34 +0530)]
rustup to 1.5.0-nightly (7bf4c885f 2015-09-26)

fixes #348

8 years agoMerge pull request #349 from Manishearth/rustup
llogiq [Fri, 25 Sep 2015 13:29:32 +0000 (15:29 +0200)]
Merge pull request #349 from Manishearth/rustup

rustup 2015-09-24

8 years agorustup 2015-09-24
Manish Goregaokar [Fri, 25 Sep 2015 13:22:36 +0000 (18:52 +0530)]
rustup 2015-09-24

8 years agoMerge branch 'pr-347'
Manish Goregaokar [Thu, 24 Sep 2015 06:31:18 +0000 (12:01 +0530)]
Merge branch 'pr-347'

8 years agoUpgrade Rust to rustc 1.5.0-nightly (b2f379cdc 2015-09-23)
Pietro Monteiro [Thu, 24 Sep 2015 00:30:39 +0000 (17:30 -0700)]
Upgrade Rust to rustc 1.5.0-nightly (b2f379cdc 2015-09-23)
Ident was removed in many HIR structures in favor of Name.

8 years agoMerge pull request #344 from Manishearth/reflet
llogiq [Tue, 22 Sep 2015 07:18:45 +0000 (09:18 +0200)]
Merge pull request #344 from Manishearth/reflet

Handle let ref in toplevel_ref_arg as well

8 years agoHandle let ref in toplevel_ref_arg as well
Manish Goregaokar [Tue, 22 Sep 2015 07:08:42 +0000 (12:38 +0530)]
Handle let ref in toplevel_ref_arg as well

8 years agoupdate lints
llogiq [Mon, 21 Sep 2015 04:24:46 +0000 (06:24 +0200)]
update lints

8 years agoMerge pull request #341 from Manishearth/issue340
llogiq [Sun, 20 Sep 2015 13:37:35 +0000 (15:37 +0200)]
Merge pull request #341 from Manishearth/issue340

generalize let_and_return for any block (closes #340)

8 years agogeneralize let_and_return for any block (closes #340)
Georg Brandl [Sun, 20 Sep 2015 11:57:27 +0000 (13:57 +0200)]
generalize let_and_return for any block (closes #340)

8 years agoUpdate README.md
Manish Goregaokar [Sat, 19 Sep 2015 13:46:59 +0000 (19:16 +0530)]
Update README.md

8 years agoFix stray backquote.
Georg Brandl [Sat, 19 Sep 2015 06:49:01 +0000 (08:49 +0200)]
Fix stray backquote.

8 years agofix dogfood
Manish Goregaokar [Sat, 19 Sep 2015 03:02:56 +0000 (08:32 +0530)]
fix dogfood

8 years agoUpgrade Rust to rustc 1.5.0-nightly (cff041170 2015-09-17)
Manish Goregaokar [Sat, 19 Sep 2015 02:53:04 +0000 (08:23 +0530)]
Upgrade Rust to rustc 1.5.0-nightly (cff041170 2015-09-17)

LintPass was split and ExprParen was removed from the HIR

Fixes #338

8 years agoMerge pull request #337 from Manishearth/indentfix
llogiq [Thu, 17 Sep 2015 05:44:39 +0000 (07:44 +0200)]
Merge pull request #337 from Manishearth/indentfix

fix indentation

8 years agoMerge pull request #336 from Manishearth/issue335
llogiq [Thu, 17 Sep 2015 05:43:26 +0000 (07:43 +0200)]
Merge pull request #336 from Manishearth/issue335

ref matches: false positive with only wildcard pattern match

8 years agofix indentation
Georg Brandl [Thu, 17 Sep 2015 05:27:18 +0000 (07:27 +0200)]
fix indentation

8 years agoref matches: false positive with only wildcard pattern match (fixes #335)
Georg Brandl [Thu, 17 Sep 2015 05:24:11 +0000 (07:24 +0200)]
ref matches: false positive with only wildcard pattern match (fixes #335)

8 years agoRustup to rustc 1.5.0-nightly (fc4d566b4 2015-09-16)
Manish Goregaokar [Thu, 17 Sep 2015 00:01:41 +0000 (05:31 +0530)]
Rustup to rustc 1.5.0-nightly (fc4d566b4 2015-09-16)

fixes #334

8 years agoMerge pull request #314 from nweston/loop-counter
Manish Goregaokar [Tue, 15 Sep 2015 16:07:37 +0000 (21:37 +0530)]
Merge pull request #314 from nweston/loop-counter

Lint for loops with explicit counter variable (#159)

8 years agoCheck for mutable borrow of counter variable
Nathan Weston [Thu, 10 Sep 2015 12:33:29 +0000 (08:33 -0400)]
Check for mutable borrow of counter variable

8 years agoImprove lint message
Nathan Weston [Thu, 10 Sep 2015 12:26:31 +0000 (08:26 -0400)]
Improve lint message

Remove trailing period and include snippet of loop argument.

8 years agoAdd is_integer_literal utility function
Nathan Weston [Fri, 4 Sep 2015 13:26:58 +0000 (09:26 -0400)]
Add is_integer_literal utility function

Replaces is_lit_zero and is_lit_one which were used in a couple of
places.

8 years agoNew lint: loop with explicit counter variable (fixes #159)
Nathan Weston [Sun, 23 Aug 2015 17:25:45 +0000 (13:25 -0400)]
New lint: loop with explicit counter variable (fixes #159)

Avoiding false positives here turns out to be fairly complicated.

8 years agoMerge pull request #332 from Manishearth/step_by
llogiq [Tue, 15 Sep 2015 07:16:49 +0000 (09:16 +0200)]
Merge pull request #332 from Manishearth/step_by

added fp test against negative .step_by(_)

8 years agoadded fp test against negative .step_by(_)
llogiq [Tue, 15 Sep 2015 07:12:58 +0000 (09:12 +0200)]
added fp test against negative .step_by(_)

8 years agoMerge pull request #331 from swgillespie/empty-range
Manish Goregaokar [Tue, 15 Sep 2015 05:36:30 +0000 (11:06 +0530)]
Merge pull request #331 from swgillespie/empty-range

implement iterating over an empty range lint as described in #330

8 years agouse the constant folder to generalize the lint a little bit and clean up the code...
swgillespie [Tue, 15 Sep 2015 05:20:56 +0000 (22:20 -0700)]
use the constant folder to generalize the lint a little bit and clean up the code. Add additional tests for things that should not be linted

8 years agoimplement empty range lint as described in #330
swgillespie [Tue, 15 Sep 2015 00:19:05 +0000 (17:19 -0700)]
implement empty range lint as described in #330

8 years agoMerge pull request #328 from Manishearth/falsepositives
Manish Goregaokar [Fri, 11 Sep 2015 14:01:36 +0000 (19:31 +0530)]
Merge pull request #328 from Manishearth/falsepositives

less false positives for approx_const and float_cmp

8 years agoremoved expensive crate check from approx_const
llogiq [Fri, 11 Sep 2015 13:59:19 +0000 (15:59 +0200)]
removed expensive crate check from approx_const

8 years agoless false positives for approx_const and float_cmp
llogiq [Fri, 11 Sep 2015 13:30:08 +0000 (15:30 +0200)]
less false positives for approx_const and float_cmp

8 years agoMerge pull request #326 from Manishearth/fix-323
llogiq [Thu, 10 Sep 2015 06:55:14 +0000 (08:55 +0200)]
Merge pull request #326 from Manishearth/fix-323

additional macro check + more tests

8 years agoadditional macro check + more tests
llogiq [Thu, 10 Sep 2015 06:51:14 +0000 (08:51 +0200)]
additional macro check + more tests

8 years agoMerge pull request #325 from durka/patch-1
llogiq [Thu, 10 Sep 2015 06:44:45 +0000 (08:44 +0200)]
Merge pull request #325 from durka/patch-1

add warning about different rustc versions

8 years agolink to wiki
Alex Burka [Thu, 10 Sep 2015 06:26:15 +0000 (02:26 -0400)]
link to wiki

8 years agoadd warning about different rustc versions
Alex Burka [Thu, 10 Sep 2015 06:06:52 +0000 (02:06 -0400)]
add warning about different rustc versions

Ref #322.

8 years agoadd cargo clippy link
Manish Goregaokar [Thu, 10 Sep 2015 01:31:28 +0000 (07:01 +0530)]
add cargo clippy link

8 years agoMerge pull request #321 from Manishearth/fix-319
llogiq [Tue, 8 Sep 2015 11:33:24 +0000 (13:33 +0200)]
Merge pull request #321 from Manishearth/fix-319

made shadow_unrelated allow, added previous binding span note,

8 years agomade shadow_unrelated allow, added previous binding span note, fixed #319
llogiq [Tue, 8 Sep 2015 09:50:04 +0000 (11:50 +0200)]
made shadow_unrelated allow, added previous binding span note, fixed #319

8 years agoMerge pull request #316 from Manishearth/mutmut
llogiq [Mon, 7 Sep 2015 21:22:30 +0000 (23:22 +0200)]
Merge pull request #316 from Manishearth/mutmut

Fix mut_mut false positive, make Allow (fixes #309)

8 years agoFix mut_mut false positive, make Allow (fixes #309)
Manish Goregaokar [Mon, 7 Sep 2015 20:58:15 +0000 (02:28 +0530)]
Fix mut_mut false positive, make Allow (fixes #309)

8 years agoMerge pull request #312 from Manishearth/pub_convention
llogiq [Mon, 7 Sep 2015 09:54:47 +0000 (11:54 +0200)]
Merge pull request #312 from Manishearth/pub_convention

split wrong_self_convention in pub/default visibility part

8 years agodamn autocorrect
llogiq [Mon, 7 Sep 2015 09:49:35 +0000 (11:49 +0200)]
damn autocorrect

8 years agoreplace if let by equality check
llogiq [Mon, 7 Sep 2015 09:46:04 +0000 (11:46 +0200)]
replace if let by equality check

8 years agosplit wrong_self_convention in pub/default visibility part
llogiq [Mon, 7 Sep 2015 07:17:45 +0000 (09:17 +0200)]
split wrong_self_convention in pub/default visibility part