]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoprevent panic in enum glob import lint if a crate's elements are glob imported
Oliver Schneider [Mon, 8 Feb 2016 10:28:18 +0000 (11:28 +0100)]
prevent panic in enum glob import lint if a crate's elements are glob imported

fixes #639

8 years agoMerge pull request #635 from mcarton/fix-wiki
Manish Goregaokar [Sun, 7 Feb 2016 14:18:03 +0000 (19:48 +0530)]
Merge pull request #635 from mcarton/fix-wiki

Fix wiki

8 years agoFix wiki
mcarton [Sun, 7 Feb 2016 14:14:12 +0000 (15:14 +0100)]
Fix wiki

Markdown is hell.

8 years agoMerge pull request #603 from mcarton/copies
llogiq [Sun, 7 Feb 2016 13:48:13 +0000 (14:48 +0100)]
Merge pull request #603 from mcarton/copies

Die copy & paste, die

8 years agoSmall cleanup
mcarton [Sun, 7 Feb 2016 13:40:45 +0000 (14:40 +0100)]
Small cleanup

8 years agoFix typo
mcarton [Fri, 5 Feb 2016 18:43:21 +0000 (19:43 +0100)]
Fix typo

8 years agoAdd `-` and `/` to EQ_OP
mcarton [Wed, 3 Feb 2016 19:42:05 +0000 (20:42 +0100)]
Add `-` and `/` to EQ_OP

8 years agoImprove is_exp_equal
mcarton [Sat, 30 Jan 2016 19:10:14 +0000 (20:10 +0100)]
Improve is_exp_equal

8 years agoLint ifs with the same then and else blocks
mcarton [Sat, 30 Jan 2016 18:16:49 +0000 (19:16 +0100)]
Lint ifs with the same then and else blocks

8 years agoLint about consecutive ifs with same condition
mcarton [Sat, 30 Jan 2016 17:03:53 +0000 (18:03 +0100)]
Lint about consecutive ifs with same condition

8 years agoMerge branch 'pr-581'
Manish Goregaokar [Sun, 7 Feb 2016 12:10:48 +0000 (17:40 +0530)]
Merge branch 'pr-581'

Conflicts:
README.md

8 years agoMerge pull request #631 from mcarton/regex
Manish Goregaokar [Sat, 6 Feb 2016 17:21:26 +0000 (22:51 +0530)]
Merge pull request #631 from mcarton/regex

Fix false negative in TRIVIAL_REGEX

8 years agoFix false negative in TRIVIAL_REGEX
mcarton [Sat, 6 Feb 2016 17:06:39 +0000 (18:06 +0100)]
Fix false negative in TRIVIAL_REGEX

8 years agoMerge pull request #623 from mcarton/redundant
Manish Goregaokar [Sat, 6 Feb 2016 06:44:03 +0000 (12:14 +0530)]
Merge pull request #623 from mcarton/redundant

Be more consistent in lint declarations

8 years agoUpdate `update_wiki.py` to extract default lint level
mcarton [Fri, 5 Feb 2016 23:42:55 +0000 (00:42 +0100)]
Update `update_wiki.py` to extract default lint level

8 years agoRemove redundancy in lint documentation
mcarton [Fri, 5 Feb 2016 23:41:54 +0000 (00:41 +0100)]
Remove redundancy in lint documentation

The default level is always given in the declare_lint! macro, no need to
add it inconsistently in the documentation.

8 years agoFix util/update_wiki.py warnings and be consistent in declare_lint! invocations
mcarton [Fri, 5 Feb 2016 23:13:29 +0000 (00:13 +0100)]
Fix util/update_wiki.py warnings and be consistent in declare_lint! invocations

8 years agoMerge pull request #622 from mcarton/regex
Manish Goregaokar [Fri, 5 Feb 2016 22:57:35 +0000 (04:27 +0530)]
Merge pull request #622 from mcarton/regex

Lint about trivial regexes

8 years agoLint about trivial regexes
mcarton [Fri, 5 Feb 2016 22:10:48 +0000 (23:10 +0100)]
Lint about trivial regexes

8 years agoFix case conventions
mcarton [Fri, 5 Feb 2016 20:54:29 +0000 (21:54 +0100)]
Fix case conventions

8 years agoMerge pull request #564 from mcarton/hashmap
llogiq [Fri, 5 Feb 2016 19:42:39 +0000 (20:42 +0100)]
Merge pull request #564 from mcarton/hashmap

Lint looping on maps ignoring the keys or values

8 years agoImprove error message
mcarton [Fri, 5 Feb 2016 18:46:11 +0000 (19:46 +0100)]
Improve error message

8 years agoCheck for pattern use in FOR_KV_MAP
mcarton [Fri, 5 Feb 2016 18:14:02 +0000 (19:14 +0100)]
Check for pattern use in FOR_KV_MAP

8 years agoLint looping on maps ignoring the keys or values
mcarton [Tue, 19 Jan 2016 20:10:00 +0000 (21:10 +0100)]
Lint looping on maps ignoring the keys or values

8 years agoMerge pull request #619 from Manishearth/regex_syntax
Manish Goregaokar [Fri, 5 Feb 2016 17:04:20 +0000 (22:34 +0530)]
Merge pull request #619 from Manishearth/regex_syntax

new regex syntax lint

8 years agoMerge branch 'master' into regex_syntax
llogiq [Fri, 5 Feb 2016 16:33:37 +0000 (17:33 +0100)]
Merge branch 'master' into regex_syntax

8 years agofixed span position and README
llogiq [Fri, 5 Feb 2016 15:48:35 +0000 (16:48 +0100)]
fixed span position and README

8 years agoMerge pull request #621 from Manishearth/double-ref
llogiq [Fri, 5 Feb 2016 11:15:08 +0000 (12:15 +0100)]
Merge pull request #621 from Manishearth/double-ref

Lint on cloning double pointer

8 years agoTest for double-ref lint
Manish Goregaokar [Fri, 5 Feb 2016 10:34:59 +0000 (16:04 +0530)]
Test for double-ref lint

8 years agoLint on cloning double pointer
Manish Goregaokar [Fri, 5 Feb 2016 10:34:15 +0000 (16:04 +0530)]
Lint on cloning double pointer

fixes #620

8 years agonew regex syntax lint, fixes #597
llogiq [Thu, 4 Feb 2016 23:36:06 +0000 (00:36 +0100)]
new regex syntax lint, fixes #597

8 years agoMerge pull request #614 from mcarton/#604
Manish Goregaokar [Wed, 3 Feb 2016 14:40:52 +0000 (20:10 +0530)]
Merge pull request #614 from mcarton/#604

Fix confusing message for `STRING_TO_STRING`

8 years agofallout
Oliver Schneider [Wed, 3 Feb 2016 14:39:22 +0000 (15:39 +0100)]
fallout

8 years agowarn on `use`ing all variants of an enum
Oliver Schneider [Wed, 3 Feb 2016 14:38:23 +0000 (15:38 +0100)]
warn on `use`ing all variants of an enum

8 years agoFix confusing message for STRING_TO_STRING
mcarton [Wed, 3 Feb 2016 12:42:46 +0000 (13:42 +0100)]
Fix confusing message for STRING_TO_STRING

8 years agoMerge branch 'pr-593'
Manish Goregaokar [Tue, 2 Feb 2016 21:56:51 +0000 (03:26 +0530)]
Merge branch 'pr-593'

Conflicts:
README.md
src/lib.rs

8 years agoMerge pull request #602 from mcarton/#594
Manish Goregaokar [Tue, 2 Feb 2016 21:48:00 +0000 (03:18 +0530)]
Merge pull request #602 from mcarton/#594

Add a lint about using `clone` on `Copy` types

8 years agoAdd a lint about using `clone` on `Copy` types
mcarton [Tue, 2 Feb 2016 21:35:01 +0000 (22:35 +0100)]
Add a lint about using `clone` on `Copy` types

8 years agoFix warnings about the rustfmt_skip attribute
mcarton [Sat, 30 Jan 2016 13:01:26 +0000 (14:01 +0100)]
Fix warnings about the rustfmt_skip attribute

8 years agoPartially apply rustfmt
mcarton [Sat, 30 Jan 2016 12:48:39 +0000 (13:48 +0100)]
Partially apply rustfmt

8 years agoRestore some of rustfmt madness
mcarton [Sat, 30 Jan 2016 12:39:16 +0000 (13:39 +0100)]
Restore some of rustfmt madness

8 years agoMerge pull request #612 from inrustwetrust/drop_ref_lint
llogiq [Tue, 2 Feb 2016 20:47:58 +0000 (21:47 +0100)]
Merge pull request #612 from inrustwetrust/drop_ref_lint

Fix typo in drop_ref lint description.

8 years agoFix typo in drop_ref lint description.
inrustwetrust [Tue, 2 Feb 2016 19:38:14 +0000 (20:38 +0100)]
Fix typo in drop_ref lint description.

8 years agoMerge pull request #610 from inrustwetrust/drop_ref_lint
llogiq [Tue, 2 Feb 2016 19:27:53 +0000 (20:27 +0100)]
Merge pull request #610 from inrustwetrust/drop_ref_lint

Add lint to warn for calls to `std::mem::drop` with a reference argument

8 years agoAdd lint to warn for calls to `std::mem::drop` with a reference argument
inrustwetrust [Mon, 1 Feb 2016 18:53:03 +0000 (19:53 +0100)]
Add lint to warn for calls to `std::mem::drop` with a reference argument

8 years agoMerge pull request #611 from Manishearth/fix-606
Manish Goregaokar [Mon, 1 Feb 2016 20:34:34 +0000 (02:04 +0530)]
Merge pull request #611 from Manishearth/fix-606

fixed #606

8 years agofixed #606
llogiq [Mon, 1 Feb 2016 19:37:07 +0000 (20:37 +0100)]
fixed #606

8 years agoMerge pull request #609 from oli-obk/prefixed_enum_variants
llogiq [Mon, 1 Feb 2016 19:36:18 +0000 (20:36 +0100)]
Merge pull request #609 from oli-obk/prefixed_enum_variants

lint against enums where all variants share a prefix/postfix

8 years agoMerge pull request #608 from sanxiyn/escape-closure-arg
llogiq [Mon, 1 Feb 2016 12:04:46 +0000 (13:04 +0100)]
Merge pull request #608 from sanxiyn/escape-closure-arg

Skip escape analysis for closure arguments

8 years agofallout
Oliver Schneider [Mon, 1 Feb 2016 11:51:33 +0000 (12:51 +0100)]
fallout

8 years agoadd lint to check for enums where all variants have the same pre-/postfix
Oliver Schneider [Mon, 1 Feb 2016 11:47:31 +0000 (12:47 +0100)]
add lint to check for enums where all variants have the same pre-/postfix

8 years agoSkip escape analysis for closure arguments
Seo Sanghyeon [Mon, 1 Feb 2016 11:35:01 +0000 (20:35 +0900)]
Skip escape analysis for closure arguments

8 years agoMerge pull request #579 from oli-obk/single_match_else
Manish Goregaokar [Mon, 1 Feb 2016 11:00:03 +0000 (16:30 +0530)]
Merge pull request #579 from oli-obk/single_match_else

Single match else

8 years agofallout
Oliver Schneider [Mon, 1 Feb 2016 10:28:39 +0000 (11:28 +0100)]
fallout

8 years agolint on single match expressions with a value in the else path
Oliver 'ker' Schneider [Sun, 24 Jan 2016 11:24:16 +0000 (12:24 +0100)]
lint on single match expressions with a value in the else path

8 years agoMerge pull request #607 from Manishearth/fix-528
Manish Goregaokar [Sun, 31 Jan 2016 23:38:43 +0000 (05:08 +0530)]
Merge pull request #607 from Manishearth/fix-528

fixed #528

8 years agofixed #528
llogiq [Sun, 31 Jan 2016 22:25:10 +0000 (23:25 +0100)]
fixed #528

8 years agoAdd a lint to suggest uint == 0 over uint <= 0
scurest [Fri, 29 Jan 2016 06:39:13 +0000 (00:39 -0600)]
Add a lint to suggest uint == 0 over uint <= 0

8 years agoMerge branch 'devonhollowood-for-loop-over-option'
llogiq [Sat, 30 Jan 2016 00:34:35 +0000 (01:34 +0100)]
Merge branch 'devonhollowood-for-loop-over-option'

Conflicts:
README.md

8 years agoMerge pull request #599 from mcarton/lt
llogiq [Sat, 30 Jan 2016 00:28:53 +0000 (01:28 +0100)]
Merge pull request #599 from mcarton/lt

Fix false positive with NEEDLESS_LIFETIMES and some cleanup

8 years agoAdd for_loop_over_result lint
Devon Hollowood [Fri, 29 Jan 2016 23:15:57 +0000 (15:15 -0800)]
Add for_loop_over_result lint

8 years agoFix formatting on wiki
mcarton [Fri, 29 Jan 2016 21:49:48 +0000 (22:49 +0100)]
Fix formatting on wiki

8 years agoSynchronise comments with wiki
mcarton [Fri, 29 Jan 2016 21:42:19 +0000 (22:42 +0100)]
Synchronise comments with wiki

Wiki commits bfa439b and 9b8ced8.

8 years agoMake the python scripts py3 and pep8 compatible
mcarton [Fri, 29 Jan 2016 21:24:08 +0000 (22:24 +0100)]
Make the python scripts py3 and pep8 compatible

8 years agoSmall cleanup
mcarton [Fri, 29 Jan 2016 21:19:14 +0000 (22:19 +0100)]
Small cleanup

8 years agoFix false positive in NEEDLESS_LIFETIMES
mcarton [Fri, 29 Jan 2016 21:18:14 +0000 (22:18 +0100)]
Fix false positive in NEEDLESS_LIFETIMES

8 years agoMerge pull request #589 from mcarton/vec
llogiq [Fri, 29 Jan 2016 18:50:18 +0000 (19:50 +0100)]
Merge pull request #589 from mcarton/vec

Add a lint to warn about &vec![_] if &[_] would do

8 years agoAdd a lint to warn about &vec![_] if &[_] would do
mcarton [Fri, 29 Jan 2016 00:54:10 +0000 (01:54 +0100)]
Add a lint to warn about &vec![_] if &[_] would do

8 years agoAdd for_loop_over_option lint
Devon Hollowood [Fri, 29 Jan 2016 07:34:09 +0000 (23:34 -0800)]
Add for_loop_over_option lint

8 years agoMerge pull request #549 from mcarton/ifs
Manish Goregaokar [Thu, 28 Jan 2016 22:09:27 +0000 (03:39 +0530)]
Merge pull request #549 from mcarton/ifs

Remove and lint about useless braces in `else { if .. }`

8 years agoMerge pull request #586 from mcarton/print
llogiq [Thu, 28 Jan 2016 20:25:59 +0000 (21:25 +0100)]
Merge pull request #586 from mcarton/print

Add a lint to warn about use of `print{,ln}!`

8 years agoAdd a lint to warn about use of `print{,ln}!`
mcarton [Thu, 28 Jan 2016 18:29:59 +0000 (19:29 +0100)]
Add a lint to warn about use of `print{,ln}!`

8 years agoMerge pull request #582 from Manishearth/extend
Manish Goregaokar [Wed, 27 Jan 2016 21:30:22 +0000 (03:00 +0530)]
Merge pull request #582 from Manishearth/extend

extend_from_slice lint

8 years agoMerge master and re-run update_lints.py
llogiq [Wed, 27 Jan 2016 21:22:43 +0000 (22:22 +0100)]
Merge master and re-run update_lints.py

8 years agoMerge pull request #585 from fhartwig/char-lit-as-u8
Manish Goregaokar [Wed, 27 Jan 2016 20:22:30 +0000 (01:52 +0530)]
Merge pull request #585 from fhartwig/char-lit-as-u8

Add a lint for casts from char literals to u8

8 years agoPoint out that char is 32 bit value
Florian Hartwig [Wed, 27 Jan 2016 20:10:35 +0000 (21:10 +0100)]
Point out that char is 32 bit value

8 years agoMake update_lints script accept digits in lint names
Florian Hartwig [Wed, 27 Jan 2016 19:59:19 +0000 (20:59 +0100)]
Make update_lints script accept digits in lint names

8 years agoAdd a lint for casts from char literals to u8
Florian Hartwig [Wed, 27 Jan 2016 19:23:59 +0000 (20:23 +0100)]
Add a lint for casts from char literals to u8

8 years agofixed and extended tests
llogiq [Wed, 27 Jan 2016 19:13:15 +0000 (20:13 +0100)]
fixed and extended tests

8 years agofixed suggestion for iter case
llogiq [Wed, 27 Jan 2016 13:51:30 +0000 (14:51 +0100)]
fixed suggestion for iter case

8 years agofixed argument check
llogiq [Tue, 26 Jan 2016 22:51:06 +0000 (23:51 +0100)]
fixed argument check

8 years agoadded more test, now works with vecs and iter
llogiq [Mon, 25 Jan 2016 18:46:56 +0000 (19:46 +0100)]
added more test, now works with vecs and iter

8 years agoextend_from_slice lint
llogiq [Mon, 25 Jan 2016 13:02:47 +0000 (14:02 +0100)]
extend_from_slice lint

8 years agoMerge pull request #580 from mcarton/derive
llogiq [Sun, 24 Jan 2016 14:53:16 +0000 (15:53 +0100)]
Merge pull request #580 from mcarton/derive

Lint explicit Clone implementations on Copy type

8 years agoLint explicit Clone implementations on Copy type
mcarton [Sun, 24 Jan 2016 12:56:23 +0000 (13:56 +0100)]
Lint explicit Clone implementations on Copy type

8 years agoMerge pull request #577 from oli-obk/items_after_statements
Manish Goregaokar [Sun, 24 Jan 2016 09:23:34 +0000 (14:53 +0530)]
Merge pull request #577 from oli-obk/items_after_statements

lint on items following statements

8 years agolint on items following statements
Oliver 'ker' Schneider [Sun, 24 Jan 2016 09:16:56 +0000 (10:16 +0100)]
lint on items following statements

8 years agoun-wildcard stuff
Manish Goregaokar [Fri, 22 Jan 2016 13:09:40 +0000 (18:39 +0530)]
un-wildcard stuff

8 years agoMerge branch 'rustup'
Manish Goregaokar [Fri, 22 Jan 2016 13:06:23 +0000 (18:36 +0530)]
Merge branch 'rustup'

8 years agoUpgrade Rust to rustc 1.8.0-nightly (18b851bc5 2016-01-22)
Manish Goregaokar [Fri, 22 Jan 2016 12:24:44 +0000 (17:54 +0530)]
Upgrade Rust to rustc 1.8.0-nightly (18b851bc5 2016-01-22)

fixes #573

8 years agoMerge pull request #571 from mcarton/hash_eq
Manish Goregaokar [Fri, 22 Jan 2016 09:10:26 +0000 (14:40 +0530)]
Merge pull request #571 from mcarton/hash_eq

Add a lint about deriving Hash and implementing PartialEq

8 years agoAdd a lint about deriving Hash and implementing PartialEq
mcarton [Thu, 21 Jan 2016 17:19:02 +0000 (18:19 +0100)]
Add a lint about deriving Hash and implementing PartialEq

8 years agoMerge pull request #566 from mcarton/starts_with
llogiq [Wed, 20 Jan 2016 19:15:10 +0000 (20:15 +0100)]
Merge pull request #566 from mcarton/starts_with

Add a lint for starts_with

8 years agoAdd macro checks in src/methods.rs lints
mcarton [Wed, 20 Jan 2016 17:32:17 +0000 (18:32 +0100)]
Add macro checks in src/methods.rs lints

8 years agoAdd a lint for starts_with
mcarton [Wed, 20 Jan 2016 01:23:39 +0000 (02:23 +0100)]
Add a lint for starts_with

8 years agoMerge pull request #565 from mcarton/or_fun_call
llogiq [Wed, 20 Jan 2016 11:31:54 +0000 (12:31 +0100)]
Merge pull request #565 from mcarton/or_fun_call

Handle Entry types in OR_FUN_CALL lint

8 years agoHandle Entry types in OR_FUN_CALL lint
mcarton [Tue, 19 Jan 2016 23:53:26 +0000 (00:53 +0100)]
Handle Entry types in OR_FUN_CALL lint

8 years agoMerge pull request #562 from fhartwig/str-lit-as-bytes
llogiq [Tue, 19 Jan 2016 20:06:48 +0000 (21:06 +0100)]
Merge pull request #562 from fhartwig/str-lit-as-bytes

Add lint for "string literal".as_bytes()

8 years agoAdd macro check
Florian Hartwig [Tue, 19 Jan 2016 18:43:29 +0000 (19:43 +0100)]
Add macro check

8 years agoAdd lint for "string literal".as_bytes()
Florian Hartwig [Tue, 19 Jan 2016 18:14:49 +0000 (19:14 +0100)]
Add lint for "string literal".as_bytes()