]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoImplemented option_option lint
Michael Wright [Tue, 26 Dec 2017 05:25:13 +0000 (07:25 +0200)]
Implemented option_option lint

6 years agoStart regression tests for types.rs
Darren Tsung [Sat, 23 Dec 2017 18:15:11 +0000 (10:15 -0800)]
Start regression tests for types.rs

6 years agoMerge pull request #2291 from DarrenTsung/fix_2265
Oliver Schneider [Sat, 23 Dec 2017 00:06:44 +0000 (01:06 +0100)]
Merge pull request #2291 from DarrenTsung/fix_2265

Fix #2265, ignore eq_op lint in macro invocation

6 years agoMove in_macro check to end of expression since usual case is not inside macro
Darren Tsung [Fri, 22 Dec 2017 18:54:52 +0000 (10:54 -0800)]
Move in_macro check to end of expression since usual case is not inside macro

6 years agoCheck that eq_op lint doesn’t mark macro use of functions as errors since macros...
Darren Tsung [Fri, 22 Dec 2017 18:51:41 +0000 (10:51 -0800)]
Check that eq_op lint doesn’t mark macro use of functions as errors since macros, fix #2265

6 years agoCreate failing test for equal inside macro
Darren Tsung [Fri, 22 Dec 2017 18:37:44 +0000 (10:37 -0800)]
Create failing test for equal inside macro

6 years agoMerge pull request #2289 from rust-lang-nursery/rustup
Manish Goregaokar [Fri, 22 Dec 2017 05:12:54 +0000 (21:12 -0800)]
Merge pull request #2289 from rust-lang-nursery/rustup

Rustup to rustc 1.24.0-nightly (250b49205 2017-12-21)

6 years agoBump to 0.0.177
Manish Goregaokar [Fri, 22 Dec 2017 04:56:20 +0000 (20:56 -0800)]
Bump to 0.0.177

6 years agoUniversal impl traits get removed earlier now
Manish Goregaokar [Fri, 22 Dec 2017 04:45:01 +0000 (20:45 -0800)]
Universal impl traits get removed earlier now

https://github.com/rust-lang/rust/pull/46754

6 years agoUpdate to handle GenericParam
Manish Goregaokar [Fri, 22 Dec 2017 04:42:47 +0000 (20:42 -0800)]
Update to handle GenericParam

introduced in https://github.com/rust-lang/rust/pull/45930

6 years agoMerge pull request #2286 from DarrenTsung/readme-clarify-add-lines
Martin Carton [Thu, 21 Dec 2017 23:45:50 +0000 (00:45 +0100)]
Merge pull request #2286 from DarrenTsung/readme-clarify-add-lines

Clarify README for new Rust users.

6 years agoAdd +nightly to command for running cargo build.
Darren Tsung [Thu, 21 Dec 2017 23:24:18 +0000 (15:24 -0800)]
Add +nightly to command for running cargo build.

6 years agoAdd “, add these lines” as well as removing the extra space between the attributes...
Darren Tsung [Thu, 21 Dec 2017 23:21:28 +0000 (15:21 -0800)]
Add “, add these lines” as well as removing the extra space between the attributes to make it more clear that both should be included.

6 years agoMerge pull request #2284 from rust-lang-nursery/new-macro
Oliver Schneider [Wed, 20 Dec 2017 20:56:00 +0000 (21:56 +0100)]
Merge pull request #2284 from rust-lang-nursery/new-macro

Move mini-macro to proc macro

6 years agoMove mini-macro to proc macro
Manish Goregaokar [Wed, 20 Dec 2017 16:16:43 +0000 (08:16 -0800)]
Move mini-macro to proc macro

We can add a bang-style proc macro again once it stabilizes (we can use
the proc macro hack, but it's unnecessary for now)

6 years agoMerge pull request #2281 from detrumi/match-as-ref
Oliver Schneider [Wed, 20 Dec 2017 10:07:31 +0000 (11:07 +0100)]
Merge pull request #2281 from detrumi/match-as-ref

Lint for matching option as ref

6 years agoAlso suggest as_mut for match_as_ref
Wilco Kusee [Wed, 20 Dec 2017 09:39:48 +0000 (10:39 +0100)]
Also suggest as_mut for match_as_ref

6 years agoLint for matching option as ref
Wilco Kusee [Tue, 19 Dec 2017 22:22:16 +0000 (23:22 +0100)]
Lint for matching option as ref

6 years agoMerge pull request #2269 from letheed/fix-2267
Oliver Schneider [Sun, 17 Dec 2017 14:09:41 +0000 (15:09 +0100)]
Merge pull request #2269 from letheed/fix-2267

Disable cast_lossless on const/static items

6 years agoRustup and lazy_static version mismatch fix
Oliver Schneider [Fri, 15 Dec 2017 09:02:39 +0000 (10:02 +0100)]
Rustup and lazy_static version mismatch fix

fixes #2274

6 years agoMerge pull request #2273 from imp/fixlink
Martin Carton [Thu, 14 Dec 2017 22:37:43 +0000 (23:37 +0100)]
Merge pull request #2273 from imp/fixlink

Fix crates.io site name

6 years agoFix crates.io site name
Cyril Plisko [Thu, 14 Dec 2017 22:33:23 +0000 (00:33 +0200)]
Fix crates.io site name

6 years agoDisable cast_lossless on const items
letheed [Mon, 11 Dec 2017 15:16:44 +0000 (16:16 +0100)]
Disable cast_lossless on const items

6 years agoUpdate ui tests to latest rustc changes
Oliver Schneider [Thu, 7 Dec 2017 10:20:48 +0000 (11:20 +0100)]
Update ui tests to latest rustc changes

6 years agoTry fixing const_with_static_lifetime docs
Oliver Schneider [Thu, 7 Dec 2017 07:09:46 +0000 (08:09 +0100)]
Try fixing const_with_static_lifetime docs

6 years agoVersion bump
Oliver Schneider [Sat, 2 Dec 2017 12:02:02 +0000 (13:02 +0100)]
Version bump

6 years agoMerge pull request #2255 from topecongiro/rustup-2017-12-01
Oliver Schneider [Sat, 2 Dec 2017 11:59:37 +0000 (12:59 +0100)]
Merge pull request #2255 from topecongiro/rustup-2017-12-01

Rustup to rustc 1.24.0-nightly (bb42071f6 2017-12-01)

6 years agoRustup to rustc 1.24.0-nightly (bb42071f6 2017-12-01)
Seiichi Uchida [Sat, 2 Dec 2017 09:23:32 +0000 (18:23 +0900)]
Rustup to rustc 1.24.0-nightly (bb42071f6 2017-12-01)

6 years agoMerge pull request #2254 from LaurentMazare/master
Oliver Schneider [Fri, 1 Dec 2017 20:07:11 +0000 (21:07 +0100)]
Merge pull request #2254 from LaurentMazare/master

Avoid the MATCH_SAME_ARMS warning when two arms are separated by an arm with a guard

6 years agoRevert the regex test change.
laurent [Fri, 1 Dec 2017 19:59:40 +0000 (19:59 +0000)]
Revert the regex test change.

6 years agoBugfix the bugfix.
laurent [Fri, 1 Dec 2017 19:27:02 +0000 (19:27 +0000)]
Bugfix the bugfix.

6 years agoDo raise a same-arms warning when the two arms are separated by an arm with a guard...
laurent [Fri, 1 Dec 2017 19:25:43 +0000 (19:25 +0000)]
Do raise a same-arms warning when the two arms are separated by an arm with a guard, fix #1996.

6 years agoMerge pull request #2166 from HMPerson1/fix_2160
Oliver Schneider [Fri, 1 Dec 2017 07:10:30 +0000 (08:10 +0100)]
Merge pull request #2166 from HMPerson1/fix_2160

Fix #2160

6 years agoUpdate ui test
HMPerson1 [Fri, 1 Dec 2017 00:50:31 +0000 (19:50 -0500)]
Update ui test

6 years agoAdd linting for empty blocks too
HMPerson1 [Fri, 1 Dec 2017 00:38:29 +0000 (19:38 -0500)]
Add linting for empty blocks too

6 years agoFix #2160
HMPerson1 [Sat, 21 Oct 2017 01:26:41 +0000 (21:26 -0400)]
Fix #2160

6 years agoFix #1925
Oliver Schneider [Thu, 30 Nov 2017 09:54:55 +0000 (10:54 +0100)]
Fix #1925

6 years agoMerge pull request #2251 from LaurentMazare/master
Oliver Schneider [Thu, 30 Nov 2017 09:53:48 +0000 (10:53 +0100)]
Merge pull request #2251 from LaurentMazare/master

Add a couple small tests to the match-same-arm lint + fix a small issue in search_same.

6 years agoUse latest compiletest
Oliver Schneider [Thu, 30 Nov 2017 08:31:23 +0000 (09:31 +0100)]
Use latest compiletest

6 years agoFix a bug in search_same + add a test case.
laurent [Wed, 29 Nov 2017 21:42:58 +0000 (21:42 +0000)]
Fix a bug in search_same + add a test case.

6 years agoAdd another test.
laurent [Wed, 29 Nov 2017 20:52:49 +0000 (20:52 +0000)]
Add another test.

6 years agoAdd a couple small tests to the match-same-arm lint.
laurent [Wed, 29 Nov 2017 20:42:37 +0000 (20:42 +0000)]
Add a couple small tests to the match-same-arm lint.

6 years agoFix #2188
Oliver Schneider [Wed, 29 Nov 2017 16:20:00 +0000 (17:20 +0100)]
Fix #2188

6 years agoFix placement of new_without_default suggestion
Oliver Schneider [Wed, 29 Nov 2017 16:10:53 +0000 (17:10 +0100)]
Fix placement of new_without_default suggestion

6 years agoFix #2196
Oliver Schneider [Wed, 29 Nov 2017 16:06:27 +0000 (17:06 +0100)]
Fix #2196

6 years agoAdd regression test (fixes #2234)
Oliver Schneider [Wed, 29 Nov 2017 15:05:13 +0000 (16:05 +0100)]
Add regression test (fixes #2234)

6 years agoFix #2245
Oliver Schneider [Wed, 29 Nov 2017 15:03:05 +0000 (16:03 +0100)]
Fix #2245

6 years agoFix #2247
Oliver Schneider [Wed, 29 Nov 2017 14:52:57 +0000 (15:52 +0100)]
Fix #2247

6 years agoUpdate ui output to latest nightly
Oliver Schneider [Wed, 29 Nov 2017 14:45:12 +0000 (15:45 +0100)]
Update ui output to latest nightly

6 years agoMerge pull request #2246 from lukasstevens/master
Oliver Schneider [Mon, 27 Nov 2017 10:05:37 +0000 (11:05 +0100)]
Merge pull request #2246 from lukasstevens/master

Check for word beginning in stutter lint

6 years agoMerge pull request #2248 from rust-lang-nursery/oli-obk-patch-1
Oliver Schneider [Mon, 27 Nov 2017 09:31:00 +0000 (10:31 +0100)]
Merge pull request #2248 from rust-lang-nursery/oli-obk-patch-1

Update stderr output to rustc changes

6 years agoUpdate stderr output to rustc changes
Oliver Schneider [Mon, 27 Nov 2017 09:20:38 +0000 (10:20 +0100)]
Update stderr output to rustc changes

6 years agoUpdate ui tests
Lukas Stevens [Sun, 26 Nov 2017 17:57:34 +0000 (18:57 +0100)]
Update ui tests

6 years agoCheck for word beginning in stutter lint
Lukas Stevens [Sun, 26 Nov 2017 17:36:12 +0000 (18:36 +0100)]
Check for word beginning in stutter lint

6 years agoMerge pull request #2243 from phansch/fix-license-badge-link
Martin Carton [Wed, 22 Nov 2017 21:18:41 +0000 (22:18 +0100)]
Merge pull request #2243 from phansch/fix-license-badge-link

Fix license badge anchor link

6 years agoFix license badge anchor link [skip ci]
Philipp Hansch [Wed, 22 Nov 2017 20:26:11 +0000 (21:26 +0100)]
Fix license badge anchor link [skip ci]

The anchor name is lowercase, not uppercase.

6 years agoRustup
Oliver Schneider [Wed, 22 Nov 2017 09:55:12 +0000 (10:55 +0100)]
Rustup

6 years agoVersion bump
Oliver Schneider [Tue, 21 Nov 2017 07:17:28 +0000 (08:17 +0100)]
Version bump

6 years agoMerge pull request #2240 from Frederick888/fix-2239
Oliver Schneider [Tue, 21 Nov 2017 07:12:35 +0000 (08:12 +0100)]
Merge pull request #2240 from Frederick888/fix-2239

Fixes #2239

6 years agofix usage of LayoutDetails
Frederick Zhang [Tue, 21 Nov 2017 05:51:36 +0000 (16:51 +1100)]
fix usage of LayoutDetails

6 years agoMerge pull request #2203 from clippered/float_cmp_const
Oliver Schneider [Mon, 20 Nov 2017 08:51:12 +0000 (09:51 +0100)]
Merge pull request #2203 from clippered/float_cmp_const

Fix #1142 float constant comparison lint

6 years agoMerge pull request #2230 from LaurentMazare/master
Oliver Schneider [Mon, 20 Nov 2017 08:26:22 +0000 (09:26 +0100)]
Merge pull request #2230 from LaurentMazare/master

More refactoring around boolean expression suggestion.

6 years agoFix for the new nightly version.
Laurent Mazare [Mon, 20 Nov 2017 07:47:28 +0000 (07:47 +0000)]
Fix for the new nightly version.

6 years agoMore tests.
laurent [Sun, 19 Nov 2017 09:07:50 +0000 (09:07 +0000)]
More tests.

6 years agoBugfix + add test.
laurent [Fri, 17 Nov 2017 21:52:11 +0000 (21:52 +0000)]
Bugfix + add test.

6 years agoRemove the brackets argument.
laurent [Fri, 17 Nov 2017 21:42:25 +0000 (21:42 +0000)]
Remove the brackets argument.

6 years agoUse a struct to store most of the recurse parameters for boolean expr suggestion.
laurent [Fri, 17 Nov 2017 21:18:32 +0000 (21:18 +0000)]
Use a struct to store most of the recurse parameters for boolean expr suggestion.

6 years agoMerge pull request #2232 from rust-lang-nursery/fixup-const-static-lifetime
Oliver Schneider [Sun, 19 Nov 2017 08:28:47 +0000 (09:28 +0100)]
Merge pull request #2232 from rust-lang-nursery/fixup-const-static-lifetime

Fixup "const static lifetime" lint for non-path types

6 years agoMerge pull request #2235 from b-r-u/master
Oliver Schneider [Sun, 19 Nov 2017 08:26:13 +0000 (09:26 +0100)]
Merge pull request #2235 from b-r-u/master

Ignore identifier 'OpenStreetMap' for DOC_MARKDOWN lint

6 years agoIgnore identifier 'OpenStreetMap' for DOC_MARKDOWN lint
Johannes Hofmann [Sat, 18 Nov 2017 18:13:07 +0000 (19:13 +0100)]
Ignore identifier 'OpenStreetMap' for DOC_MARKDOWN lint

6 years agotests: fixup arg handling for update-all-references
Georg Brandl [Sat, 18 Nov 2017 15:11:55 +0000 (16:11 +0100)]
tests: fixup arg handling for update-all-references

This script does not take any args, so $1 being empty is expected.

6 years agoCONTRIBUTING: clarify how to regenerate ui test output
Georg Brandl [Sat, 18 Nov 2017 15:11:07 +0000 (16:11 +0100)]
CONTRIBUTING: clarify how to regenerate ui test output

6 years agoconst_static_lifetime: this applies not only to path types
Georg Brandl [Sat, 18 Nov 2017 15:10:28 +0000 (16:10 +0100)]
const_static_lifetime: this applies not only to path types

For example, &'static [u8] or &'static (t1, t2).

6 years agoMerge pull request #2229 from LaurentMazare/master
Oliver Schneider [Fri, 17 Nov 2017 08:29:09 +0000 (09:29 +0100)]
Merge pull request #2229 from LaurentMazare/master

Simplify the boolean expression suggestion function

6 years agoVersion bump
Oliver Schneider [Fri, 17 Nov 2017 07:29:48 +0000 (08:29 +0100)]
Version bump

6 years agoRemove the union type.
laurent [Thu, 16 Nov 2017 21:20:17 +0000 (21:20 +0000)]
Remove the union type.

6 years agoFirst attempt at simplifying boolean processing.
laurent [Thu, 16 Nov 2017 21:08:08 +0000 (21:08 +0000)]
First attempt at simplifying boolean processing.

6 years agoSplit TyImplTrait into Universal and Existential
Christopher Vittal [Wed, 15 Nov 2017 22:52:25 +0000 (17:52 -0500)]
Split TyImplTrait into Universal and Existential

This fixes build after the implementation of impl Trait in argument
position lands in rustc

6 years agoMerge pull request #2216 from LaurentMazare/master
Oliver Schneider [Wed, 15 Nov 2017 08:08:36 +0000 (09:08 +0100)]
Merge pull request #2216 from LaurentMazare/master

Handle methods with an obvious negation in the non-minimal bool lint

6 years agoMerge pull request #2224 from rust-lang-nursery/rust-test
Oliver Schneider [Wed, 15 Nov 2017 07:50:30 +0000 (08:50 +0100)]
Merge pull request #2224 from rust-lang-nursery/rust-test

Apply changes that were required for running in the rustc test suite

6 years agoRustup
Oliver Schneider [Wed, 15 Nov 2017 07:38:43 +0000 (08:38 +0100)]
Rustup

6 years agoRaise a lint when suggest has simplified the expression.
laurent [Tue, 14 Nov 2017 21:14:08 +0000 (21:14 +0000)]
Raise a lint when suggest has simplified the expression.

6 years agoMove 'handle_method_call_in_not' code into 'suggest'
Oliver Schneider [Tue, 14 Nov 2017 16:07:04 +0000 (17:07 +0100)]
Move 'handle_method_call_in_not' code into 'suggest'

6 years agoMerge remote-tracking branch 'origin/master' into laurent_master
Oliver Schneider [Tue, 14 Nov 2017 15:46:56 +0000 (16:46 +0100)]
Merge remote-tracking branch 'origin/master' into laurent_master

6 years agoMerge branch 'master' of github.com:Manishearth/rust-clippy into rust-test
Oliver Schneider [Tue, 14 Nov 2017 15:29:08 +0000 (16:29 +0100)]
Merge branch 'master' of github.com:Manishearth/rust-clippy into rust-test

6 years agoApply changes that were required for running in the rustc test suite
Oliver Schneider [Tue, 14 Nov 2017 13:56:00 +0000 (14:56 +0100)]
Apply changes that were required for running in the rustc test suite

6 years agoUse both pair orders.
laurent [Fri, 10 Nov 2017 19:55:15 +0000 (19:55 +0000)]
Use both pair orders.

6 years agoMerge pull request #2214 from rust-lang-nursery/nrlfp
Oliver Schneider [Fri, 10 Nov 2017 09:11:20 +0000 (10:11 +0100)]
Merge pull request #2214 from rust-lang-nursery/nrlfp

Improve `needless_range_loop`

6 years agoRustup
Oliver Schneider [Fri, 10 Nov 2017 07:58:54 +0000 (08:58 +0100)]
Rustup

6 years agoMerge pull request #2219 from sinkuu/compiletest0.3
Oliver Schneider [Thu, 9 Nov 2017 08:33:26 +0000 (09:33 +0100)]
Merge pull request #2219 from sinkuu/compiletest0.3

Use compiletest 0.3

6 years agoBuild path from current_dir
Shotaro Yamada [Thu, 9 Nov 2017 05:47:14 +0000 (14:47 +0900)]
Build path from current_dir

6 years agoUse compiletest 0.3
Shotaro Yamada [Thu, 9 Nov 2017 02:05:49 +0000 (11:05 +0900)]
Use compiletest 0.3

6 years agoOnly apply when there is a single argument.
laurent [Tue, 7 Nov 2017 21:49:30 +0000 (21:49 +0000)]
Only apply when there is a single argument.

6 years agoHandle methods with an immediate negation in the non-minimal boolean lint, fixes...
laurent [Tue, 7 Nov 2017 21:43:24 +0000 (21:43 +0000)]
Handle methods with an immediate negation in the non-minimal boolean lint, fixes #1930.

6 years agoDon't lint mixed slice indexing and usize indexing in `needless_range_loop`
Oliver Schneider [Tue, 7 Nov 2017 14:32:52 +0000 (15:32 +0100)]
Don't lint mixed slice indexing and usize indexing in `needless_range_loop`

6 years agoDifferentiate between mutable iteration and immutable iteration in `needless_range_loop`
Oliver Schneider [Tue, 7 Nov 2017 13:41:54 +0000 (14:41 +0100)]
Differentiate between mutable iteration and immutable iteration in `needless_range_loop`

6 years agoMerge pull request #2209 from sinkuu/trait_methods
Oliver Schneider [Tue, 7 Nov 2017 07:26:32 +0000 (08:26 +0100)]
Merge pull request #2209 from sinkuu/trait_methods

Fix false positive in needless_pass_by_value trait methods

6 years agoMerge pull request #2206 from LaurentMazare/master
Oliver Schneider [Tue, 7 Nov 2017 07:24:49 +0000 (08:24 +0100)]
Merge pull request #2206 from LaurentMazare/master

Refactor the never-loop lint.

6 years agoFix broken tests.
laurent [Mon, 6 Nov 2017 23:26:44 +0000 (23:26 +0000)]
Fix broken tests.

6 years agoFix merge issues.
laurent [Mon, 6 Nov 2017 23:22:19 +0000 (23:22 +0000)]
Fix merge issues.