]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoSplit `new_without_default` and `new_without_default_derive`.
Andre Bogus [Tue, 17 May 2016 06:33:57 +0000 (08:33 +0200)]
Split `new_without_default` and `new_without_default_derive`.

This is still very slow, because we do a trait lookup for each field.
Perhaps storing the visited types in a set to reuse types would improve
performance somewhat. Also we may want to pre-decide some known types
(e.g. `Vec<T>`, `Option<T>`).

8 years agoMerge pull request #948 from BenoitZugmeyer/cargo-clippy-exit-code
Manish Goregaokar [Tue, 24 May 2016 03:25:41 +0000 (08:55 +0530)]
Merge pull request #948 from BenoitZugmeyer/cargo-clippy-exit-code

Let cargo-clippy exit with a code > 0 if some error occured

8 years agoLet cargo-clippy exit with a code > 0 if some error occured
Benoît Zugmeyer [Mon, 23 May 2016 20:32:51 +0000 (22:32 +0200)]
Let cargo-clippy exit with a code > 0 if some error occured

8 years agoMerge pull request #944 from Manishearth/rustup
Martin Carton [Mon, 23 May 2016 18:54:06 +0000 (20:54 +0200)]
Merge pull request #944 from Manishearth/rustup

Rustup to *rustc 1.10.0-nightly (764ef92ae 2016-05-19)* and bump to 0.0.69

8 years agoBump to 0.0.69
mcarton [Thu, 19 May 2016 21:15:12 +0000 (23:15 +0200)]
Bump to 0.0.69

8 years agoRustup to *1.10.0-nightly (476fe6eef 2016-05-21)*
mcarton [Mon, 23 May 2016 14:34:09 +0000 (16:34 +0200)]
Rustup to *1.10.0-nightly (476fe6eef 2016-05-21)*

8 years agoRustup to *1.10.0-nightly (764ef92ae 2016-05-19)*
mcarton [Fri, 20 May 2016 17:18:32 +0000 (19:18 +0200)]
Rustup to *1.10.0-nightly (764ef92ae 2016-05-19)*

8 years agoRustup to *1.10.0-nightly (9c6904ca1 2016-05-18)*
mcarton [Thu, 19 May 2016 21:14:34 +0000 (23:14 +0200)]
Rustup to *1.10.0-nightly (9c6904ca1 2016-05-18)*

8 years agoMerge branch 'pr-942'
Manish Goregaokar [Wed, 18 May 2016 07:43:35 +0000 (13:13 +0530)]
Merge branch 'pr-942'

8 years agoBump to 0.0.68
mcarton [Tue, 17 May 2016 21:26:44 +0000 (23:26 +0200)]
Bump to 0.0.68

8 years agoRustup to *1.10.0-nightly (cd6a40017 2016-05-16)*
mcarton [Tue, 17 May 2016 21:25:20 +0000 (23:25 +0200)]
Rustup to *1.10.0-nightly (cd6a40017 2016-05-16)*

8 years agoDon't panic if cargo rustc fails
Manish Goregaokar [Mon, 16 May 2016 17:42:55 +0000 (23:12 +0530)]
Don't panic if cargo rustc fails

8 years agoMerge pull request #934 from Manishearth/allow-upcast
Martin Carton [Mon, 16 May 2016 17:36:06 +0000 (19:36 +0200)]
Merge pull request #934 from Manishearth/allow-upcast

Allow invalid upcast comparisons

8 years agoAllow invalid upcast comparisons
Manish Goregaokar [Mon, 16 May 2016 17:09:16 +0000 (22:39 +0530)]
Allow invalid upcast comparisons

8 years agoMerge pull request #928 from oli-obk/unnecessary_operation
Martin Carton [Fri, 13 May 2016 15:45:58 +0000 (17:45 +0200)]
Merge pull request #928 from oli-obk/unnecessary_operation

add a companion lint to `no_effect` with suggestions for partially (in-)effective statements

8 years agoadd a companion lint to `no_effect` with suggestions for partially effective statements
Oliver Schneider [Fri, 13 May 2016 14:43:47 +0000 (16:43 +0200)]
add a companion lint to `no_effect` with suggestions for partially effective statements

8 years agoMerge pull request #927 from oli-obk/german_windows_32bit
llogiq [Fri, 13 May 2016 13:41:49 +0000 (15:41 +0200)]
Merge pull request #927 from oli-obk/german_windows_32bit

German windows 32bit

8 years agomake sure compiletest works on windows
Oliver Schneider [Fri, 13 May 2016 11:46:13 +0000 (13:46 +0200)]
make sure compiletest works on windows

8 years agoignore the portability test on 32 bit
Oliver Schneider [Fri, 13 May 2016 11:45:53 +0000 (13:45 +0200)]
ignore the portability test on 32 bit

it will fail in rustc

8 years agodon't check for an exact error message
Oliver Schneider [Fri, 13 May 2016 11:45:25 +0000 (13:45 +0200)]
don't check for an exact error message

the system might change it, especially if the system language is changed

8 years agoMerge pull request #921 from afck/master
Martin Carton [Fri, 13 May 2016 10:13:23 +0000 (12:13 +0200)]
Merge pull request #921 from afck/master

fix typos

8 years agofix typos
Andreas Fackler [Thu, 12 May 2016 15:52:51 +0000 (18:52 +0300)]
fix typos

8 years agoMerge pull request #922 from Manishearth/rustup
Manish Goregaokar [Thu, 12 May 2016 20:16:04 +0000 (13:16 -0700)]
Merge pull request #922 from Manishearth/rustup

Rustup to *1.10.0-nightly (22ac88f1a 2016-05-11)*

8 years agoBump to 0.0.67
mcarton [Thu, 12 May 2016 17:32:59 +0000 (19:32 +0200)]
Bump to 0.0.67

8 years agoRustup to *1.10.0-nightly (22ac88f1a 2016-05-11)*
mcarton [Thu, 12 May 2016 17:11:13 +0000 (19:11 +0200)]
Rustup to *1.10.0-nightly (22ac88f1a 2016-05-11)*

8 years agoMerge pull request #919 from oli-obk/fix/917
Martin Carton [Thu, 12 May 2016 11:09:15 +0000 (13:09 +0200)]
Merge pull request #919 from oli-obk/fix/917

don't suggest closures over constants

8 years agodon't suggest closures over constants
Oliver Schneider [Thu, 12 May 2016 08:23:06 +0000 (10:23 +0200)]
don't suggest closures over constants

fixes #917

8 years agoMerge pull request #913 from oli-obk/assign_ops
llogiq [Wed, 11 May 2016 21:36:10 +0000 (23:36 +0200)]
Merge pull request #913 from oli-obk/assign_ops

suggest `a op= b` over `a = a op b`

8 years agoMerge pull request #915 from Manishearth/sysroot
llogiq [Wed, 11 May 2016 19:56:52 +0000 (21:56 +0200)]
Merge pull request #915 from Manishearth/sysroot

Use rustc --print sysroot, bump to v66 r? @llogiq

8 years agoMerge pull request #914 from oli-obk/non_expressive_names
llogiq [Wed, 11 May 2016 19:55:38 +0000 (21:55 +0200)]
Merge pull request #914 from oli-obk/non_expressive_names

similar_names fixes

8 years agoUse rustc --print sysroot, bump to v66
Manish Goregaokar [Wed, 11 May 2016 18:05:34 +0000 (11:05 -0700)]
Use rustc --print sysroot, bump to v66

8 years agoadd known problems
Oliver Schneider [Wed, 11 May 2016 15:04:27 +0000 (17:04 +0200)]
add known problems

8 years agomerge struct similar_name test into the general test file
Oliver Schneider [Wed, 11 May 2016 15:01:34 +0000 (17:01 +0200)]
merge struct similar_name test into the general test file

8 years agoproperly lint function argument patterns in similar_names
Oliver Schneider [Wed, 11 May 2016 14:45:06 +0000 (16:45 +0200)]
properly lint function argument patterns in similar_names

8 years agodon't lint at the use-site of bad struct field bindings if they're shorthand
Oliver Schneider [Wed, 11 May 2016 14:44:43 +0000 (16:44 +0200)]
don't lint at the use-site of bad struct field bindings if they're shorthand

fixes #899

8 years agosuggest `a op= b` over `a = a op b`
Oliver Schneider [Wed, 11 May 2016 13:32:20 +0000 (15:32 +0200)]
suggest `a op= b` over `a = a op b`

8 years agoMerge pull request #911 from cuviper/rustup
llogiq [Tue, 10 May 2016 21:23:44 +0000 (23:23 +0200)]
Merge pull request #911 from cuviper/rustup

Support either rustup or multirust environment variables

8 years agoSupport either rustup or multirust environment variables
Josh Stone [Tue, 10 May 2016 20:45:37 +0000 (13:45 -0700)]
Support either rustup or multirust environment variables

Fixes #910

8 years agoMerge pull request #681 from oli-obk/split
Manish Goregaokar [Tue, 10 May 2016 07:41:34 +0000 (00:41 -0700)]
Merge pull request #681 from oli-obk/split

cargo clippy

8 years agoMerge pull request #908 from sanxiyn/unused-import
Martin Carton [Mon, 9 May 2016 19:20:45 +0000 (21:20 +0200)]
Merge pull request #908 from sanxiyn/unused-import

Remove unused imports

8 years agoRemove unused imports
Seo Sanghyeon [Mon, 9 May 2016 15:35:51 +0000 (00:35 +0900)]
Remove unused imports

8 years ago`cargo clippy` subcommand
Oliver Schneider [Wed, 17 Feb 2016 17:16:29 +0000 (18:16 +0100)]
`cargo clippy` subcommand

8 years agoMerge pull request #884 from oli-obk/needless_ref2
Martin Carton [Mon, 9 May 2016 11:15:33 +0000 (13:15 +0200)]
Merge pull request #884 from oli-obk/needless_ref2

Add a `needless_borrow` lint

8 years agofallout
Oliver Schneider [Tue, 26 Apr 2016 15:06:08 +0000 (17:06 +0200)]
fallout

8 years agoneedless borrows found in clippy
Oliver Schneider [Tue, 26 Apr 2016 15:05:39 +0000 (17:05 +0200)]
needless borrows found in clippy

8 years agoadd needless_borrow lint
Oliver Schneider [Tue, 26 Apr 2016 13:49:53 +0000 (15:49 +0200)]
add needless_borrow lint

8 years agoMerge pull request #906 from Manishearth/birkenfeld-master
Manish Goregaokar [Sun, 8 May 2016 04:31:21 +0000 (21:31 -0700)]
Merge pull request #906 from Manishearth/birkenfeld-master

Rustup to *rustc 1.10.0-nightly (62e2b2fb7 2016-05-06)*

8 years agoBump to 0.0.65
mcarton [Sat, 7 May 2016 23:03:20 +0000 (01:03 +0200)]
Bump to 0.0.65

8 years agoFix tests
mcarton [Sat, 7 May 2016 22:56:23 +0000 (00:56 +0200)]
Fix tests

8 years agoMerge pull request #903 from oli-obk/master
llogiq [Fri, 6 May 2016 14:53:18 +0000 (16:53 +0200)]
Merge pull request #903 from oli-obk/master

use remark-lint to check README.md

8 years agomore arguments don't make stuff better
Oliver Schneider [Fri, 6 May 2016 14:22:17 +0000 (16:22 +0200)]
more arguments don't make stuff better

8 years agopass full config path to remark
Oliver Schneider [Fri, 6 May 2016 14:15:10 +0000 (16:15 +0200)]
pass full config path to remark

8 years agouse .remarkrc.json for travis
Oliver Schneider [Fri, 6 May 2016 14:13:05 +0000 (16:13 +0200)]
use .remarkrc.json for travis

8 years agofix markdown generated from code
Oliver Schneider [Fri, 6 May 2016 14:09:05 +0000 (16:09 +0200)]
fix markdown generated from code

8 years agoignore some markdown lints
Oliver Schneider [Fri, 6 May 2016 14:07:54 +0000 (16:07 +0200)]
ignore some markdown lints

8 years agofix markdown
Oliver Schneider [Fri, 6 May 2016 14:07:47 +0000 (16:07 +0200)]
fix markdown

8 years agofail fast
Oliver Schneider [Fri, 6 May 2016 13:39:10 +0000 (15:39 +0200)]
fail fast

8 years agorun remark-lint on README.md
Oliver Schneider [Fri, 6 May 2016 13:32:34 +0000 (15:32 +0200)]
run remark-lint on README.md

8 years agoMerge pull request #901 from Manishearth/doc
llogiq [Thu, 5 May 2016 20:45:42 +0000 (22:45 +0200)]
Merge pull request #901 from Manishearth/doc

Fix DOC_MARKDOWN

8 years agoDon’t warn in titles in DOC_MARKDOWN
mcarton [Thu, 5 May 2016 19:42:59 +0000 (21:42 +0200)]
Don’t warn in titles in DOC_MARKDOWN

8 years agoTest previously reported false positive
mcarton [Thu, 5 May 2016 19:34:42 +0000 (21:34 +0200)]
Test previously reported false positive

8 years agoFix issue with `DOC_MARKDOWN` and punctuation
mcarton [Thu, 5 May 2016 19:32:48 +0000 (21:32 +0200)]
Fix issue with `DOC_MARKDOWN` and punctuation

8 years agorustup: fix breakage in diagnostics API
Georg Brandl [Wed, 4 May 2016 06:54:59 +0000 (08:54 +0200)]
rustup: fix breakage in diagnostics API

Also adds a function to add the clippy wiki note, which is used a few times.

8 years agoMerge pull request #891 from oli-obk/doc_precise_spans
Martin Carton [Mon, 2 May 2016 12:52:43 +0000 (14:52 +0200)]
Merge pull request #891 from oli-obk/doc_precise_spans

markdown doc lints use exact span

8 years agodoc markdown lint shows the exact word location
Oliver Schneider [Mon, 2 May 2016 12:36:48 +0000 (14:36 +0200)]
doc markdown lint shows the exact word location

8 years agodoc markdown lint's span shows the line instead of the item
Oliver Schneider [Mon, 2 May 2016 12:36:33 +0000 (14:36 +0200)]
doc markdown lint's span shows the line instead of the item

8 years agoMerge branch 'pr-890'
Manish Goregaokar [Mon, 2 May 2016 09:13:11 +0000 (14:43 +0530)]
Merge branch 'pr-890'

8 years agosimilar_names should be allow-by-default
Oliver Schneider [Mon, 2 May 2016 08:53:09 +0000 (10:53 +0200)]
similar_names should be allow-by-default

8 years agodon't lint similar_names inside #[test] functions
Oliver Schneider [Mon, 2 May 2016 08:52:55 +0000 (10:52 +0200)]
don't lint similar_names inside #[test] functions

8 years agoMerge pull request #889 from Manishearth/fix-887
Manish Goregaokar [Sat, 30 Apr 2016 22:11:34 +0000 (03:41 +0530)]
Merge pull request #889 from Manishearth/fix-887

fix #887: New lints for integer/floating-point arithmetic

8 years agofixed tests, added clippy_restrictions lint group
Andre Bogus [Sat, 30 Apr 2016 21:54:10 +0000 (23:54 +0200)]
fixed tests, added clippy_restrictions lint group

8 years agolint remainder, document test w/ half expr
Andre Bogus [Sat, 30 Apr 2016 15:11:59 +0000 (17:11 +0200)]
lint remainder, document test w/ half expr

8 years agofix #887: New lints for integer/floating-point arithmetic
Andre Bogus [Sat, 30 Apr 2016 02:01:47 +0000 (04:01 +0200)]
fix #887: New lints for integer/floating-point arithmetic

8 years agoMerge pull request #882 from Manishearth/rustup
llogiq [Tue, 26 Apr 2016 14:22:35 +0000 (16:22 +0200)]
Merge pull request #882 from Manishearth/rustup

Rustup to rustc 1.10.0-nightly (645dd013a 2016-04-24); release 0.0.64

8 years agoUpdate changelog
mcarton [Tue, 26 Apr 2016 13:08:09 +0000 (15:08 +0200)]
Update changelog

8 years agoCentralize more paths
mcarton [Tue, 26 Apr 2016 11:43:23 +0000 (13:43 +0200)]
Centralize more paths

8 years agoFix paths resolution
mcarton [Tue, 26 Apr 2016 11:31:52 +0000 (13:31 +0200)]
Fix paths resolution

Put more paths into the `utils::paths` module.

8 years agoRustup to rustc 1.10.0-nightly (645dd013a 2016-04-24); release 0.0.64
Manish Goregaokar [Mon, 25 Apr 2016 20:31:49 +0000 (02:01 +0530)]
Rustup to rustc 1.10.0-nightly (645dd013a 2016-04-24); release 0.0.64

8 years agoMerge pull request #875 from Manishearth/fx-doc
Martin Carton [Sun, 24 Apr 2016 11:48:53 +0000 (13:48 +0200)]
Merge pull request #875 from Manishearth/fx-doc

Improve new_without_default docs

8 years agoImprove new_without_default docs
Manish Goregaokar [Sun, 24 Apr 2016 11:45:54 +0000 (17:15 +0530)]
Improve new_without_default docs

8 years agoMerge pull request #872 from oli-obk/cc_result
llogiq [Sat, 23 Apr 2016 15:11:12 +0000 (17:11 +0200)]
Merge pull request #872 from oli-obk/cc_result

cc: early returns are special

8 years agocc: early returns are special
Oliver 'ker' Schneider [Sat, 23 Apr 2016 12:30:05 +0000 (14:30 +0200)]
cc: early returns are special

8 years agoMerge pull request #867 from Manishearth/#830
llogiq [Sat, 23 Apr 2016 08:54:22 +0000 (10:54 +0200)]
Merge pull request #867 from Manishearth/#830

Check type for `SINGLE_CHAR_PATTERN`

8 years agoMerge pull request #870 from Manishearth/fix-722
Manish Goregaokar [Sat, 23 Apr 2016 08:29:23 +0000 (13:59 +0530)]
Merge pull request #870 from Manishearth/fix-722

allow items_after_statements by default

8 years agoallow items_after_statements by default
Andre Bogus [Sat, 23 Apr 2016 05:50:46 +0000 (07:50 +0200)]
allow items_after_statements by default

8 years agoFix grammar.
Georg Brandl [Fri, 22 Apr 2016 16:06:35 +0000 (18:06 +0200)]
Fix grammar.

8 years agoMerge pull request #868 from cramertj/master
Manish Goregaokar [Thu, 21 Apr 2016 17:06:55 +0000 (22:36 +0530)]
Merge pull request #868 from cramertj/master

Add lint for `mem::forget(_)`

8 years agoRan script to update README.md
Taylor Cramer [Thu, 21 Apr 2016 16:41:38 +0000 (09:41 -0700)]
Ran script to update README.md

8 years agoFixed destructor detection in mem_forget
Taylor Cramer [Thu, 21 Apr 2016 16:36:39 +0000 (09:36 -0700)]
Fixed destructor detection in mem_forget

8 years agoLimited mem_forget error to only Drop types (fails)
Taylor Cramer [Thu, 21 Apr 2016 02:24:31 +0000 (19:24 -0700)]
Limited mem_forget error to only Drop types (fails)

8 years agoChanged std::mem::forget errors to mem::forget
Taylor Cramer [Thu, 21 Apr 2016 01:55:41 +0000 (18:55 -0700)]
Changed std::mem::forget errors to mem::forget

8 years agoTicks around std::mem::forget
Taylor Cramer [Wed, 20 Apr 2016 20:33:05 +0000 (13:33 -0700)]
Ticks around std::mem::forget

8 years agoRan update_lints and updated CHANGELOG.md to reflect addition of mem_forget
Taylor Cramer [Wed, 20 Apr 2016 20:11:55 +0000 (13:11 -0700)]
Ran update_lints and updated CHANGELOG.md to reflect addition of mem_forget

8 years agoAdded lint for mem_forget
Taylor Cramer [Wed, 20 Apr 2016 20:10:23 +0000 (13:10 -0700)]
Added lint for mem_forget

8 years agoCheck type for `SINGLE_CHAR_PATTERN`
mcarton [Wed, 20 Apr 2016 19:09:38 +0000 (21:09 +0200)]
Check type for `SINGLE_CHAR_PATTERN`

It’d be nicer to actually check for `Pattern` bounds but in the meantime
this needs to be fixed.

8 years agoMerge pull request #866 from cramertj/master
Martin Carton [Wed, 20 Apr 2016 19:11:29 +0000 (21:11 +0200)]
Merge pull request #866 from cramertj/master

Add UNSAFE_REMOVED_FROM_NAME lint

8 years agoAdded unsafe_removed_from_name to new list in CHANGELOG.md
Taylor Cramer [Wed, 20 Apr 2016 16:27:12 +0000 (09:27 -0700)]
Added unsafe_removed_from_name to new list in CHANGELOG.md

8 years agoExpanded tests for unsafe_removed_from_name
Taylor Cramer [Wed, 20 Apr 2016 04:52:10 +0000 (21:52 -0700)]
Expanded tests for unsafe_removed_from_name

8 years agoRemoved unnecessary restriction of unsafe_removed_from_name to top-level use statements
Taylor Cramer [Wed, 20 Apr 2016 04:41:45 +0000 (21:41 -0700)]
Removed unnecessary restriction of unsafe_removed_from_name to top-level use statements

8 years agoRan update_lints script
Taylor Cramer [Tue, 19 Apr 2016 23:32:04 +0000 (16:32 -0700)]
Ran update_lints script