]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoMerge branch 'master' into sugg
mcarton [Sun, 3 Jul 2016 21:56:06 +0000 (23:56 +0200)]
Merge branch 'master' into sugg

8 years agoUse `span_suggestion` in entry lints
mcarton [Sun, 3 Jul 2016 17:24:44 +0000 (19:24 +0200)]
Use `span_suggestion` in entry lints

8 years agoUse `utils::sugg` in `match` related lints
mcarton [Sun, 3 Jul 2016 17:13:01 +0000 (19:13 +0200)]
Use `utils::sugg` in `match` related lints

Also don't build suggestion when unnecessary.

8 years agoMerge pull request #1068 from AtheMathmo/useless_vec-constant-expr
Martin Carton [Sun, 3 Jul 2016 20:36:00 +0000 (22:36 +0200)]
Merge pull request #1068 from AtheMathmo/useless_vec-constant-expr

Check for constant expression in useless_vec lint

8 years agoCheck for constant expression in useless_vec lint
James Lucas [Sun, 3 Jul 2016 19:12:43 +0000 (12:12 -0700)]
Check for constant expression in useless_vec lint

8 years agoMerge pull request #1067 from Manishearth/pr-991
Manish Goregaokar [Sun, 3 Jul 2016 09:09:20 +0000 (14:39 +0530)]
Merge pull request #1067 from Manishearth/pr-991

Rebase #991

8 years agoMake #991 work with current rust
Manish Goregaokar [Sun, 3 Jul 2016 08:25:23 +0000 (13:55 +0530)]
Make #991 work with current rust

8 years agoImprove `NOT_UNSAFE_PTR_ARG_DEREF` with functions
mcarton [Tue, 7 Jun 2016 15:29:22 +0000 (17:29 +0200)]
Improve `NOT_UNSAFE_PTR_ARG_DEREF` with functions

8 years agoAdd a new `not_unsafe_ptr_arg_deref` lint
mcarton [Tue, 7 Jun 2016 14:55:55 +0000 (16:55 +0200)]
Add a new `not_unsafe_ptr_arg_deref` lint

8 years agoUse `utils::sugg` in swap lints
mcarton [Sat, 2 Jul 2016 15:24:24 +0000 (17:24 +0200)]
Use `utils::sugg` in swap lints

8 years agoMerge pull request #1054 from Manishearth/rustup
Martin Carton [Sat, 2 Jul 2016 14:15:57 +0000 (16:15 +0200)]
Merge pull request #1054 from Manishearth/rustup

Rustup to ea0dc9297283daff6486807f43e190b4eb561412

8 years agoBump to 0.0.78
mcarton [Sat, 2 Jul 2016 14:02:27 +0000 (16:02 +0200)]
Bump to 0.0.78

8 years agoMerge pull request #1065 from mathstuf/doc-typos
Manish Goregaokar [Sat, 2 Jul 2016 12:02:10 +0000 (17:32 +0530)]
Merge pull request #1065 from mathstuf/doc-typos

typo: use commas around "e.g."

8 years agotypo: use commas around "e.g."
Ben Boeckel [Sat, 2 Jul 2016 02:59:42 +0000 (22:59 -0400)]
typo: use commas around "e.g."

8 years agoCleanup
mcarton [Fri, 1 Jul 2016 19:01:56 +0000 (21:01 +0200)]
Cleanup

8 years agoUse `utils::sugg` in `FOR_KV_MAP`
mcarton [Fri, 1 Jul 2016 18:55:45 +0000 (20:55 +0200)]
Use `utils::sugg` in `FOR_KV_MAP`

8 years agoFix wrong suggestion with `...` and for loops
mcarton [Fri, 1 Jul 2016 17:31:14 +0000 (19:31 +0200)]
Fix wrong suggestion with `...` and for loops

8 years agoAdd more sugggestion-building functions
mcarton [Fri, 1 Jul 2016 17:30:38 +0000 (19:30 +0200)]
Add more sugggestion-building functions

8 years agoImprove `NEEDLESS_RANGE_LOOP` error reporting
mcarton [Fri, 1 Jul 2016 16:44:59 +0000 (18:44 +0200)]
Improve `NEEDLESS_RANGE_LOOP` error reporting

8 years agoIntroduce `multispan_sugg`
mcarton [Fri, 1 Jul 2016 16:38:50 +0000 (18:38 +0200)]
Introduce `multispan_sugg`

8 years agoRustup to ea0dc9297283daff6486807f43e190b4eb561412 III
mcarton [Fri, 1 Jul 2016 15:49:05 +0000 (17:49 +0200)]
Rustup to ea0dc9297283daff6486807f43e190b4eb561412 III

8 years agoMerge remote-tracking branch 'origin/rustup' into sugg
mcarton [Fri, 1 Jul 2016 15:48:57 +0000 (17:48 +0200)]
Merge remote-tracking branch 'origin/rustup' into sugg

8 years agoRustup to ea0dc9297283daff6486807f43e190b4eb561412 II
mcarton [Fri, 1 Jul 2016 15:41:57 +0000 (17:41 +0200)]
Rustup to ea0dc9297283daff6486807f43e190b4eb561412 II

8 years agoRustup to ea0dc9297283daff6486807f43e190b4eb561412
mcarton [Tue, 28 Jun 2016 13:54:23 +0000 (15:54 +0200)]
Rustup to ea0dc9297283daff6486807f43e190b4eb561412

8 years agoOnly build suggestion if necessary in `USELESS_VEC`
mcarton [Thu, 30 Jun 2016 17:50:03 +0000 (19:50 +0200)]
Only build suggestion if necessary in `USELESS_VEC`

8 years agoMove `vec!` unexpanding function to `utils::higher`
mcarton [Thu, 30 Jun 2016 17:49:34 +0000 (19:49 +0200)]
Move `vec!` unexpanding function to `utils::higher`

8 years agoMove more functions to `utils::higher`
mcarton [Wed, 29 Jun 2016 22:08:43 +0000 (00:08 +0200)]
Move more functions to `utils::higher`

8 years agoMove `unsugar_range` to `utils::higher`
mcarton [Wed, 29 Jun 2016 21:16:44 +0000 (23:16 +0200)]
Move `unsugar_range` to `utils::higher`

8 years agoUse `util::sugg` in `TRANSMUTE_PTR_TO_REF`
mcarton [Wed, 29 Jun 2016 21:02:15 +0000 (23:02 +0200)]
Use `util::sugg` in `TRANSMUTE_PTR_TO_REF`

8 years agoImprove `TOPLEVEL_REF_ARG` message
mcarton [Wed, 29 Jun 2016 20:45:58 +0000 (22:45 +0200)]
Improve `TOPLEVEL_REF_ARG` message

8 years agoUse `utils::sugg` in `TOPLEVEL_REF_ARG`
mcarton [Wed, 29 Jun 2016 20:37:10 +0000 (22:37 +0200)]
Use `utils::sugg` in `TOPLEVEL_REF_ARG`

8 years agoCleanup
mcarton [Wed, 29 Jun 2016 20:35:58 +0000 (22:35 +0200)]
Cleanup

8 years agoUse `utils::sugg` in `MATCH_BOOL`
mcarton [Wed, 29 Jun 2016 19:50:21 +0000 (21:50 +0200)]
Use `utils::sugg` in `MATCH_BOOL`

8 years agoUse `utils::sugg` in `COLLAPSIBLE_IF`
mcarton [Wed, 29 Jun 2016 19:26:26 +0000 (21:26 +0200)]
Use `utils::sugg` in `COLLAPSIBLE_IF`

8 years agoUse `utils::sugg` in `FLOAT_CMP`
mcarton [Wed, 29 Jun 2016 19:25:23 +0000 (21:25 +0200)]
Use `utils::sugg` in `FLOAT_CMP`

8 years agoUse `utils::sugg` in `ASSIGN_OPS`
mcarton [Wed, 29 Jun 2016 19:24:20 +0000 (21:24 +0200)]
Use `utils::sugg` in `ASSIGN_OPS`

8 years agoAdd a module to pretty-print suggestions
mcarton [Wed, 29 Jun 2016 19:23:21 +0000 (21:23 +0200)]
Add a module to pretty-print suggestions

8 years agoUse `span_suggestion` in `FLOAT_CMP`
mcarton [Wed, 29 Jun 2016 17:47:51 +0000 (19:47 +0200)]
Use `span_suggestion` in `FLOAT_CMP`

8 years agoMerge pull request #1061 from Manishearth/double_neg
Manish Goregaokar [Thu, 30 Jun 2016 04:35:11 +0000 (10:05 +0530)]
Merge pull request #1061 from Manishearth/double_neg

new lint: double_neg

8 years agofixed doc nit
Andre Bogus [Thu, 30 Jun 2016 04:33:21 +0000 (06:33 +0200)]
fixed doc nit

8 years agonew lint: double_neg
Andre Bogus [Wed, 29 Jun 2016 23:00:25 +0000 (01:00 +0200)]
new lint: double_neg

8 years agoMerge pull request #1032 from Manishearth/mut_mut
llogiq [Wed, 29 Jun 2016 18:41:03 +0000 (20:41 +0200)]
Merge pull request #1032 from Manishearth/mut_mut

Improve `mut_mut` and `collapsible_if`

8 years agoImprove `matches` tests
mcarton [Wed, 22 Jun 2016 00:17:26 +0000 (02:17 +0200)]
Improve `matches` tests

8 years agoUpdate CHANGELOG
mcarton [Tue, 21 Jun 2016 21:58:13 +0000 (23:58 +0200)]
Update CHANGELOG

8 years agoMake `COLLAPSIBLE_IF` consider `if let`
mcarton [Tue, 21 Jun 2016 21:53:45 +0000 (23:53 +0200)]
Make `COLLAPSIBLE_IF` consider `if let`

8 years agoSmall cleanup
mcarton [Tue, 21 Jun 2016 21:53:24 +0000 (23:53 +0200)]
Small cleanup

8 years agoMake `CollapsibleIf` an `EarlyLintPass`
mcarton [Tue, 21 Jun 2016 21:17:18 +0000 (23:17 +0200)]
Make `CollapsibleIf` an `EarlyLintPass`

It doesn't need any `hir` feature and `ast` is much more stable.

8 years agoFix FP with `mut_mut` and `for` loops
mcarton [Tue, 21 Jun 2016 20:54:22 +0000 (22:54 +0200)]
Fix FP with `mut_mut` and `for` loops

8 years agoMerge pull request #1057 from Manishearth/1055
Oliver Schneider [Wed, 29 Jun 2016 12:54:19 +0000 (14:54 +0200)]
Merge pull request #1057 from Manishearth/1055

Revert "Automatically defines the `clippy` feature"

8 years agoRevert "Automatically defines the `clippy` feature"
mcarton [Wed, 29 Jun 2016 11:58:07 +0000 (13:58 +0200)]
Revert "Automatically defines the `clippy` feature"

This reverts commit d7ba66bf44f993e64114e17cc15f1b0d56ae8f70.

It was causing problems with crates with:

```rust
#![cfg_attr(feature="clippy", plugin(clippy))]
```

8 years agoMerge pull request #1053 from oli-obk/char_float_transmute
Oliver Schneider [Tue, 28 Jun 2016 12:50:39 +0000 (14:50 +0200)]
Merge pull request #1053 from oli-obk/char_float_transmute

lint on unnecessary and plain wrong transmutes

8 years agolint on unnecessary and plain wrong transmutes
Oliver Schneider [Tue, 28 Jun 2016 12:08:08 +0000 (14:08 +0200)]
lint on unnecessary and plain wrong transmutes

8 years agoMerge pull request #1050 from Manishearth/fx-1049
Oliver Schneider [Tue, 28 Jun 2016 08:58:31 +0000 (10:58 +0200)]
Merge pull request #1050 from Manishearth/fx-1049

Add parentheses when necessary in transmute suggestion (fixes #1049)

8 years agoAdd parentheses when necessary in transmute suggestion (fixes #1049)
Manish Goregaokar [Tue, 28 Jun 2016 06:48:44 +0000 (12:18 +0530)]
Add parentheses when necessary in transmute suggestion (fixes #1049)

8 years agoMerge pull request #1048 from Manishearth/Manishearth-patch-1
Manish Goregaokar [Mon, 27 Jun 2016 15:38:36 +0000 (21:08 +0530)]
Merge pull request #1048 from Manishearth/Manishearth-patch-1

readme formatting nit

8 years agoreadme formatting nit
Manish Goregaokar [Mon, 27 Jun 2016 15:38:16 +0000 (21:08 +0530)]
readme formatting nit

8 years agoMerge pull request #1046 from oli-obk/unify_span_lint_usage
llogiq [Mon, 27 Jun 2016 15:20:03 +0000 (17:20 +0200)]
Merge pull request #1046 from oli-obk/unify_span_lint_usage

use span_lint_and_then instead of adding to the `DiagnosticWrapper`

8 years agoMerge pull request #1045 from oli-obk/more_transmutes
llogiq [Mon, 27 Jun 2016 15:17:14 +0000 (17:17 +0200)]
Merge pull request #1045 from oli-obk/more_transmutes

lint transmuting references to pointer

8 years agouse span_lint_and_then instead of adding to the `DiagnosticWrapper`
Oliver Schneider [Mon, 27 Jun 2016 15:14:04 +0000 (17:14 +0200)]
use span_lint_and_then instead of adding to the `DiagnosticWrapper`

8 years agolint transmuting references to pointers
Oliver Schneider [Mon, 27 Jun 2016 14:12:48 +0000 (16:12 +0200)]
lint transmuting references to pointers

8 years agorefactor transmute lints into a single match
Oliver Schneider [Mon, 27 Jun 2016 11:46:21 +0000 (13:46 +0200)]
refactor transmute lints into a single match

8 years agoMerge pull request #1041 from oli-obk/procedural
Oliver Schneider [Sun, 26 Jun 2016 12:13:24 +0000 (14:13 +0200)]
Merge pull request #1041 from oli-obk/procedural

don't depend on regex_macros anymore

8 years agorename mini-macro to clippy-mini-macro-test
Oliver 'ker' Schneider [Sun, 26 Jun 2016 11:26:30 +0000 (13:26 +0200)]
rename mini-macro to clippy-mini-macro-test

8 years agoMerge pull request #1042 from oli-obk/raw_pointers
Manish Goregaokar [Sat, 25 Jun 2016 22:28:17 +0000 (03:58 +0530)]
Merge pull request #1042 from oli-obk/raw_pointers

don't lint on comparing `*const f32`s

8 years agodon't lint on comparing `*const f32`s
Oliver 'ker' Schneider [Sat, 25 Jun 2016 16:59:37 +0000 (18:59 +0200)]
don't lint on comparing `*const f32`s

8 years agodon't depend on regex_macros anymore
Oliver 'ker' Schneider [Sat, 25 Jun 2016 16:12:29 +0000 (18:12 +0200)]
don't depend on regex_macros anymore

8 years agoMerge pull request #1038 from Manishearth/oli-obk-patch-2
Manish Goregaokar [Sat, 25 Jun 2016 13:16:29 +0000 (18:46 +0530)]
Merge pull request #1038 from Manishearth/oli-obk-patch-2

add myself to Cargo.toml authors

8 years agoadd myself to Cargo.toml authors
Oliver Schneider [Sat, 25 Jun 2016 13:05:29 +0000 (15:05 +0200)]
add myself to Cargo.toml authors

8 years agoMerge pull request #1036 from bestouff/patch-1
Manish Goregaokar [Fri, 24 Jun 2016 13:01:02 +0000 (18:31 +0530)]
Merge pull request #1036 from bestouff/patch-1

Suggest Rust nightly

8 years ago*latest* nightly
Xavier Bestel [Fri, 24 Jun 2016 12:55:17 +0000 (14:55 +0200)]
*latest* nightly

8 years agoSuggest Rust nightly
Xavier Bestel [Fri, 24 Jun 2016 12:41:58 +0000 (14:41 +0200)]
Suggest Rust nightly

Add one line to suggest that clippy won't compile with Rust stable.

8 years agoMerge pull request #1034 from Manishearth/travis_cache
Manish Goregaokar [Fri, 24 Jun 2016 05:57:02 +0000 (11:27 +0530)]
Merge pull request #1034 from Manishearth/travis_cache

try out cache: cargo with travis

8 years agotry out cache: cargo with travis
Andre Bogus [Fri, 24 Jun 2016 05:20:33 +0000 (07:20 +0200)]
try out cache: cargo with travis

8 years agoMerge pull request #1031 from oli-obk/travis2pointOH
Martin Carton [Wed, 22 Jun 2016 13:12:58 +0000 (15:12 +0200)]
Merge pull request #1031 from oli-obk/travis2pointOH

speed up travis by not recompiling clippy just to test `cargo clippy`

8 years agopass the path to the correct command
Oliver Schneider [Wed, 22 Jun 2016 12:37:08 +0000 (14:37 +0200)]
pass the path to the correct command

8 years agoMerge pull request #995 from oli-obk/oh_the_horror
llogiq [Wed, 22 Jun 2016 11:06:12 +0000 (13:06 +0200)]
Merge pull request #995 from oli-obk/oh_the_horror

lint on `filter(x).map(y)`, `filter(x).flat_map(y)`, `filter_map(x).flat_map(y)`

8 years agoupdate lint doc text
Oliver Schneider [Wed, 22 Jun 2016 11:03:59 +0000 (13:03 +0200)]
update lint doc text

8 years agounify the lints
Oliver Schneider [Wed, 22 Jun 2016 08:44:46 +0000 (10:44 +0200)]
unify the lints

8 years agoadd cargo/bin to PATH
Oliver Schneider [Wed, 22 Jun 2016 08:37:08 +0000 (10:37 +0200)]
add cargo/bin to PATH

8 years agocreate missing cargo directory
Oliver Schneider [Wed, 22 Jun 2016 08:36:18 +0000 (10:36 +0200)]
create missing cargo directory

8 years agoMerge pull request #1012 from Manishearth/nohyg
Martin Carton [Tue, 21 Jun 2016 19:23:39 +0000 (21:23 +0200)]
Merge pull request #1012 from Manishearth/nohyg

Don't use identifier hygiene in HIR

8 years agospeed up travis by not recompiling clippy just to test `cargo clippy`
Oliver Schneider [Tue, 21 Jun 2016 15:20:08 +0000 (17:20 +0200)]
speed up travis by not recompiling clippy just to test `cargo clippy`

8 years agoBump to 0.0.77
mcarton [Tue, 21 Jun 2016 14:26:56 +0000 (16:26 +0200)]
Bump to 0.0.77

8 years agofix tests
Oliver Schneider [Tue, 21 Jun 2016 12:46:02 +0000 (14:46 +0200)]
fix tests

8 years agolint message nits
Oliver Schneider [Tue, 21 Jun 2016 12:41:16 +0000 (14:41 +0200)]
lint message nits

8 years agodoc nits
Oliver Schneider [Tue, 21 Jun 2016 12:39:56 +0000 (14:39 +0200)]
doc nits

8 years agofallout2
Oliver Schneider [Tue, 21 Jun 2016 11:51:44 +0000 (13:51 +0200)]
fallout2

8 years agofallout
Oliver Schneider [Tue, 21 Jun 2016 11:49:08 +0000 (13:49 +0200)]
fallout

8 years agoadd tests
Oliver Schneider [Tue, 21 Jun 2016 11:48:56 +0000 (13:48 +0200)]
add tests

8 years agoupdate lints
Oliver Schneider [Tue, 21 Jun 2016 11:32:34 +0000 (13:32 +0200)]
update lints

8 years agocreate a lint for each of the messages
Oliver Schneider [Tue, 21 Jun 2016 11:04:50 +0000 (13:04 +0200)]
create a lint for each of the messages

8 years agoMerge pull request #1029 from oli-obk/manifest2
Manish Goregaokar [Tue, 21 Jun 2016 10:47:38 +0000 (11:47 +0100)]
Merge pull request #1029 from oli-obk/manifest2

fix cargo clippy when using with `--manifest-path`

8 years agofix tests
Oliver Schneider [Tue, 21 Jun 2016 10:35:49 +0000 (12:35 +0200)]
fix tests

8 years agofix cargo clippy when using with `--manifest-path`
Oliver Schneider [Tue, 21 Jun 2016 10:31:30 +0000 (12:31 +0200)]
fix cargo clippy when using with `--manifest-path`

8 years agolint on `filter(x).map(y)`, `filter(x).flat_map(y)`, `filter_map(x).flat_map(y)`
Oliver Schneider [Wed, 8 Jun 2016 17:54:22 +0000 (19:54 +0200)]
lint on `filter(x).map(y)`, `filter(x).flat_map(y)`, `filter_map(x).flat_map(y)`

8 years agoRevert "fix cargo clippy when using with `--manifest-path`"
Manish Goregaokar [Tue, 21 Jun 2016 09:54:04 +0000 (15:24 +0530)]
Revert "fix cargo clippy when using with `--manifest-path`"

This reverts commit b31bebeea4b7ae1a1312049745649d8d2c89c0f4.

8 years agoMerge pull request #1028 from oli-obk/manifest_path
Manish Goregaokar [Tue, 21 Jun 2016 09:45:39 +0000 (10:45 +0100)]
Merge pull request #1028 from oli-obk/manifest_path

fix cargo clippy when using with `--manifest-path`

8 years agofix cargo clippy when using with `--manifest-path`
Oliver Schneider [Tue, 21 Jun 2016 09:35:34 +0000 (11:35 +0200)]
fix cargo clippy when using with `--manifest-path`

8 years agoInclude restriction lints in the wiki
mcarton [Fri, 17 Jun 2016 11:21:46 +0000 (13:21 +0200)]
Include restriction lints in the wiki

8 years agoFix paths in *update_wiki.py*
mcarton [Fri, 17 Jun 2016 10:57:44 +0000 (12:57 +0200)]
Fix paths in *update_wiki.py*