]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAdjust HTML Docs
Pascal Hertleif [Thu, 14 Jul 2016 19:00:20 +0000 (21:00 +0200)]
Adjust HTML Docs

- Section IDs, with handy anchor links
- Multiple filters for levels
- Table rendering, block quote size
- Nicer loading (hide un-rendered content)
- Code highlighting (only for Rust, of course!)
- Fix parsing of descriptions that have a newline after the section
  title (lead to duplicating the title, e.g., "Examples", in the
  content)

8 years agoAdd First Draft of Lint Listing Page
Pascal Hertleif [Tue, 12 Jul 2016 12:11:18 +0000 (14:11 +0200)]
Add First Draft of Lint Listing Page

8 years agoMerge pull request #1084 from Manishearth/rustup
Martin Carton [Sun, 10 Jul 2016 13:48:38 +0000 (15:48 +0200)]
Merge pull request #1084 from Manishearth/rustup

 Rustup to rustc 1.12.0-nightly (f93aaf84c 2016-07-09)  and bump to 0.0.79

8 years agoBump to 0.0.79
mcarton [Sun, 10 Jul 2016 13:43:06 +0000 (15:43 +0200)]
Bump to 0.0.79

8 years agoRustup to rustc 1.12.0-nightly (f93aaf84c 2016-07-09)
mcarton [Sun, 10 Jul 2016 13:42:02 +0000 (15:42 +0200)]
Rustup to rustc 1.12.0-nightly (f93aaf84c 2016-07-09)

8 years agoMerge pull request #1082 from Manishearth/small-fixes
Manish Goregaokar [Sun, 10 Jul 2016 13:01:17 +0000 (18:31 +0530)]
Merge pull request #1082 from Manishearth/small-fixes

Small fixes

8 years agoLink to known issues for `MATCH_SAME_ARMS`
mcarton [Sun, 10 Jul 2016 12:53:42 +0000 (14:53 +0200)]
Link to known issues for `MATCH_SAME_ARMS`

8 years agoTry to explain `MATCH_SAME_ARMS` better
mcarton [Sun, 10 Jul 2016 12:46:39 +0000 (14:46 +0200)]
Try to explain `MATCH_SAME_ARMS` better

8 years agoFix suggestions for `NEW_WITHOUT_DEFAULT`
mcarton [Sun, 10 Jul 2016 12:07:13 +0000 (14:07 +0200)]
Fix suggestions for `NEW_WITHOUT_DEFAULT`

8 years agoFix FP with `for` loops and shadowed loop variable
mcarton [Sun, 10 Jul 2016 12:05:57 +0000 (14:05 +0200)]
Fix FP with `for` loops and shadowed loop variable

8 years agoMerge pull request #1060 from Manishearth/sugg
llogiq [Sat, 9 Jul 2016 22:06:30 +0000 (00:06 +0200)]
Merge pull request #1060 from Manishearth/sugg

Improve suggestions

8 years agoMerge pull request #1080 from sourcefrog/patch-2
Martin Carton [Sat, 9 Jul 2016 19:24:33 +0000 (21:24 +0200)]
Merge pull request #1080 from sourcefrog/patch-2

Fix Markdown syntax in description of collapsible_if

8 years agoFix Markdown syntax in description of collapsible_if
Martin Pool [Sat, 9 Jul 2016 19:20:54 +0000 (12:20 -0700)]
Fix Markdown syntax in description of collapsible_if

8 years agoMerge pull request #1074 from Manishearth/fix-doc
llogiq [Fri, 8 Jul 2016 23:40:28 +0000 (01:40 +0200)]
Merge pull request #1074 from Manishearth/fix-doc

Handle `/**` and `~~~` in `DOC_MARKDOWN`

8 years agoHandle `/**` and `~~~` in `DOC_MARKDOWN`
mcarton [Fri, 8 Jul 2016 16:18:45 +0000 (18:18 +0200)]
Handle `/**` and `~~~` in `DOC_MARKDOWN`

8 years agoMerge pull request #1072 from dashed/patch-1
Manish Goregaokar [Fri, 8 Jul 2016 05:30:57 +0000 (11:00 +0530)]
Merge pull request #1072 from dashed/patch-1

Add note on how to enable the optional dependency

8 years agoAdd note on how to enable the optional dependency
Alberto Leal [Fri, 8 Jul 2016 00:36:49 +0000 (20:36 -0400)]
Add note on how to enable the optional dependency

8 years agoMerge pull request #1071 from dtolnay/javascript
llogiq [Thu, 7 Jul 2016 04:41:22 +0000 (06:41 +0200)]
Merge pull request #1071 from dtolnay/javascript

Add "JavaScript" to doc-valid-idents

8 years agoAdd "JavaScript" to doc-valid-idents
David Tolnay [Thu, 7 Jul 2016 04:27:29 +0000 (21:27 -0700)]
Add "JavaScript" to doc-valid-idents

8 years agoAddress PR's comments
mcarton [Wed, 6 Jul 2016 13:36:42 +0000 (15:36 +0200)]
Address PR's comments

8 years agoMerge remote-tracking branch 'origin/master' into sugg
mcarton [Wed, 6 Jul 2016 12:54:10 +0000 (14:54 +0200)]
Merge remote-tracking branch 'origin/master' into sugg

8 years agoRemove useless feature attribute
mcarton [Wed, 6 Jul 2016 12:51:20 +0000 (14:51 +0200)]
Remove useless feature attribute

`iter_arith` has been stabilized in rustc 1.11.0.

8 years agoMention the major sugg. refactoring in CHANGELOG
mcarton [Wed, 6 Jul 2016 12:38:48 +0000 (14:38 +0200)]
Mention the major sugg. refactoring in CHANGELOG

8 years agoUse `utils::sugg` in methods lints
mcarton [Tue, 5 Jul 2016 21:26:47 +0000 (23:26 +0200)]
Use `utils::sugg` in methods lints

8 years agoMerge pull request #1069 from oli-obk/lets_assume_dependencies_already_lint_clippy_fo...
llogiq [Mon, 4 Jul 2016 14:08:17 +0000 (16:08 +0200)]
Merge pull request #1069 from oli-obk/lets_assume_dependencies_already_lint_clippy_for_themselves

don't run clippy on dependencies when running cargo clippy

8 years agodon't run clippy on dependencies when running cargo clippy
Oliver Schneider [Mon, 4 Jul 2016 11:33:48 +0000 (13:33 +0200)]
don't run clippy on dependencies when running cargo clippy

8 years agoUse `sugg::Sugg` in transmute links
mcarton [Mon, 4 Jul 2016 00:22:57 +0000 (02:22 +0200)]
Use `sugg::Sugg` in transmute links

8 years agoFix suggestions for `needless_bool`
mcarton [Sun, 3 Jul 2016 23:17:31 +0000 (01:17 +0200)]
Fix suggestions for `needless_bool`

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