]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agoMerge pull request #1400 from oli-obk/needed_needless_lifetime
Martin Carton [Sun, 25 Dec 2016 17:24:39 +0000 (18:24 +0100)]
Merge pull request #1400 from oli-obk/needed_needless_lifetime

support impl trait for needless lifetimes

7 years agofix rustfmt
Oliver Schneider [Sun, 25 Dec 2016 16:49:39 +0000 (17:49 +0100)]
fix rustfmt

7 years agoMerge pull request #1394 from Manishearth/absurd_extreme_comparisons_false_positive
Martin Carton [Sun, 25 Dec 2016 16:47:42 +0000 (17:47 +0100)]
Merge pull request #1394 from Manishearth/absurd_extreme_comparisons_false_positive

fix absurd extreme comparisons false positive

7 years agoMerge pull request #1399 from Manishearth/the_ice_was_a_lie
Manish Goregaokar [Thu, 22 Dec 2016 15:38:31 +0000 (07:38 -0800)]
Merge pull request #1399 from Manishearth/the_ice_was_a_lie

fix an ice related to associated types

7 years agosupport impl trait for needless lifetimes
Oliver Schneider [Thu, 22 Dec 2016 14:51:59 +0000 (15:51 +0100)]
support impl trait for needless lifetimes

7 years agofix an ice related to associated types
Oliver Schneider [Thu, 22 Dec 2016 13:16:07 +0000 (14:16 +0100)]
fix an ice related to associated types

fixes #1341

7 years agofix absurd extreme comparisons false positive
Oliver Schneider [Wed, 21 Dec 2016 15:49:53 +0000 (16:49 +0100)]
fix absurd extreme comparisons false positive

fixes #1387

7 years agoMerge pull request #1374 from Nemo157/allow_deprecated
Oliver Schneider [Wed, 21 Dec 2016 14:50:32 +0000 (15:50 +0100)]
Merge pull request #1374 from Nemo157/allow_deprecated

Allow `allow(deprecated)` attribute on `use` items

7 years agoMerge branch 'master' into allow_deprecated
Oliver Schneider [Wed, 21 Dec 2016 14:47:12 +0000 (15:47 +0100)]
Merge branch 'master' into allow_deprecated

7 years agoMerge pull request #1393 from oli-obk/linkedlists
Oliver Schneider [Wed, 21 Dec 2016 14:46:00 +0000 (15:46 +0100)]
Merge pull request #1393 from oli-obk/linkedlists

Don’t warn for types used in trait implementation

7 years agoDon’t warn for types used in trait implementation
Oliver Schneider [Wed, 21 Dec 2016 14:42:20 +0000 (15:42 +0100)]
Don’t warn for types used in trait implementation

7 years agoMerge pull request #1206 from Manishearth/pub_enum_variant_names
Oliver Schneider [Wed, 21 Dec 2016 12:37:27 +0000 (13:37 +0100)]
Merge pull request #1206 from Manishearth/pub_enum_variant_names

split pub_enum_variant_names to new lint

7 years agosplit pub_enum_variant_names to new lint
Oliver Schneider [Wed, 21 Dec 2016 12:30:57 +0000 (13:30 +0100)]
split pub_enum_variant_names to new lint

7 years agoMerge pull request #1392 from oli-obk/rustfmt
Oliver Schneider [Wed, 21 Dec 2016 12:26:39 +0000 (13:26 +0100)]
Merge pull request #1392 from oli-obk/rustfmt

also run rustfmt on clippy-lints

7 years agofix travis
Oliver Schneider [Wed, 21 Dec 2016 12:21:35 +0000 (13:21 +0100)]
fix travis

7 years agoevery line needs to be its own string
Oliver Schneider [Wed, 21 Dec 2016 12:12:17 +0000 (13:12 +0100)]
every line needs to be its own string

7 years agoshorten deprecated lints line length
Oliver Schneider [Wed, 21 Dec 2016 11:50:39 +0000 (12:50 +0100)]
shorten deprecated lints line length

7 years agoautogenerated functions are ignored by rustfmt
Oliver Schneider [Wed, 21 Dec 2016 11:40:56 +0000 (12:40 +0100)]
autogenerated functions are ignored by rustfmt

7 years agorun rustfmt on clippy, not only on clippy_lints
Oliver Schneider [Wed, 21 Dec 2016 11:36:25 +0000 (12:36 +0100)]
run rustfmt on clippy, not only on clippy_lints

7 years agomanually fix the overlong lines
Oliver Schneider [Wed, 21 Dec 2016 11:30:41 +0000 (12:30 +0100)]
manually fix the overlong lines

7 years agofunction definition style simplification
Oliver Schneider [Wed, 21 Dec 2016 11:14:54 +0000 (12:14 +0100)]
function definition style simplification

7 years agoremove nondeterminism by adjusting thresholds
Oliver Schneider [Wed, 21 Dec 2016 09:25:14 +0000 (10:25 +0100)]
remove nondeterminism by adjusting thresholds

7 years agorustfmt fallout in doc comments
Oliver Schneider [Wed, 21 Dec 2016 09:00:13 +0000 (10:00 +0100)]
rustfmt fallout in doc comments

7 years agorustfmt round n
Oliver Schneider [Wed, 21 Dec 2016 08:45:24 +0000 (09:45 +0100)]
rustfmt round n

7 years agoalso run rustfmt on clippy-lints
Oliver Schneider [Tue, 20 Dec 2016 17:21:30 +0000 (18:21 +0100)]
also run rustfmt on clippy-lints

7 years agoMerge pull request #1259 from Manishearth/rustfmt
Manish Goregaokar [Tue, 20 Dec 2016 14:42:21 +0000 (06:42 -0800)]
Merge pull request #1259 from Manishearth/rustfmt

Run rustfmt

7 years agorustfmt is installed into the cargo bin dir
Oliver Schneider [Tue, 20 Dec 2016 11:21:52 +0000 (12:21 +0100)]
rustfmt is installed into the cargo bin dir

7 years agofix subsequent travis runs
Oliver Schneider [Tue, 20 Dec 2016 09:43:59 +0000 (10:43 +0100)]
fix subsequent travis runs

7 years agoenforce rustfmt on travis
Oliver Schneider [Tue, 20 Dec 2016 09:42:22 +0000 (10:42 +0100)]
enforce rustfmt on travis

7 years agoremove needless rustfmt setting
Oliver Schneider [Tue, 20 Dec 2016 09:22:59 +0000 (10:22 +0100)]
remove needless rustfmt setting

7 years agorun rustfmt
Oliver Schneider [Tue, 20 Dec 2016 09:20:41 +0000 (10:20 +0100)]
run rustfmt

7 years agoFix a couple warnings
mcarton [Mon, 19 Dec 2016 19:22:38 +0000 (20:22 +0100)]
Fix a couple warnings

7 years agoMerge pull request #1345 from EpocSquadron/epocsquadron-documentation
Manish Goregaokar [Mon, 19 Dec 2016 11:36:42 +0000 (03:36 -0800)]
Merge pull request #1345 from EpocSquadron/epocsquadron-documentation

Clarify recco to install as a soft dependency

7 years agoMerge pull request #1355 from philipturnbull/deref-addrof
Manish Goregaokar [Mon, 19 Dec 2016 11:35:45 +0000 (03:35 -0800)]
Merge pull request #1355 from philipturnbull/deref-addrof

Lint usage of `*&` and `*&mut`

7 years agoMerge pull request #1318 from oli-obk/op_assign_false_positive
Oliver Schneider [Mon, 19 Dec 2016 11:31:08 +0000 (12:31 +0100)]
Merge pull request #1318 from oli-obk/op_assign_false_positive

don't lint on x = x + y inside an AddAssign impl

7 years agoupdate minimum required compiletest version
Oliver Schneider [Mon, 19 Dec 2016 10:13:23 +0000 (11:13 +0100)]
update minimum required compiletest version

7 years agodon't lint on x = x + y inside an AddAssign impl
Oliver Schneider [Mon, 19 Dec 2016 10:13:07 +0000 (11:13 +0100)]
don't lint on x = x + y inside an AddAssign impl

fixes #1302

7 years agoMerge pull request #1373 from Manishearth/rustup
Martin Carton [Sat, 17 Dec 2016 00:35:37 +0000 (01:35 +0100)]
Merge pull request #1373 from Manishearth/rustup

WIP: rustup

7 years agoBump to 0.0.104
mcarton [Sat, 17 Dec 2016 00:27:35 +0000 (01:27 +0100)]
Bump to 0.0.104

7 years agoUse inputs/output getters for rustc::ty::FnSig instead of the now non-existent fields.
Arnavion [Sun, 11 Dec 2016 07:57:19 +0000 (23:57 -0800)]
Use inputs/output getters for rustc::ty::FnSig instead of the now non-existent fields.

7 years agoupdate to the rust-PR that unblocks clippy
Oliver Schneider [Wed, 7 Dec 2016 12:13:40 +0000 (13:13 +0100)]
update to the rust-PR that unblocks clippy

7 years agoremove wrong rustc version so we don't accidentally forget to update
Oliver Schneider [Tue, 6 Dec 2016 10:33:50 +0000 (11:33 +0100)]
remove wrong rustc version so we don't accidentally forget to update

7 years agorustup to rustc 1.15.0-dev (3b248a184 2016-12-05)
Oliver Schneider [Tue, 6 Dec 2016 10:32:21 +0000 (11:32 +0100)]
rustup to rustc 1.15.0-dev (3b248a184 2016-12-05)

7 years agouncomment code that was commented out for testing
Oliver Schneider [Sun, 4 Dec 2016 18:31:46 +0000 (19:31 +0100)]
uncomment code that was commented out for testing

7 years agoFix dogfood
mcarton [Fri, 2 Dec 2016 21:33:16 +0000 (22:33 +0100)]
Fix dogfood

7 years agoFix copy lints
mcarton [Fri, 2 Dec 2016 21:23:24 +0000 (22:23 +0100)]
Fix copy lints

7 years agoRevert "down to for-loops not comparing as equal"
mcarton [Fri, 2 Dec 2016 19:54:05 +0000 (20:54 +0100)]
Revert "down to for-loops not comparing as equal"

This reverts commit cf1fa94be1e98dba2ce1755e1c86acef50daf599.

7 years agoDon't set RUST_BACKTRACE for tests
mcarton [Fri, 2 Dec 2016 19:33:37 +0000 (20:33 +0100)]
Don't set RUST_BACKTRACE for tests

It is slow but it can be useful and can be set/unset explicitly before
running tests if needed. There is no backtrace by default anyway.

7 years agoenum detection by style convention
Oliver Schneider [Fri, 2 Dec 2016 18:30:00 +0000 (19:30 +0100)]
enum detection by style convention

7 years agopermit more equalities
Oliver Schneider [Fri, 2 Dec 2016 18:23:30 +0000 (19:23 +0100)]
permit more equalities

7 years agodown to for-loops not comparing as equal
Oliver Schneider [Fri, 2 Dec 2016 18:19:52 +0000 (19:19 +0100)]
down to for-loops not comparing as equal

7 years ago`enum glob use` and `copies` left
Oliver Schneider [Fri, 2 Dec 2016 16:38:31 +0000 (17:38 +0100)]
`enum glob use` and `copies` left

7 years agoAllow `allow(deprecated)` attribute on `use` items
Wim Looman [Thu, 1 Dec 2016 21:36:35 +0000 (22:36 +0100)]
Allow `allow(deprecated)` attribute on `use` items

fixes #1372

7 years agoWIP compiles and doesn't crash (much) but tests are failing
Oliver Schneider [Thu, 1 Dec 2016 21:31:56 +0000 (22:31 +0100)]
WIP compiles and doesn't crash (much) but tests are failing

7 years agoMerge pull request #1369 from durka/no-service
Manish Goregaokar [Tue, 29 Nov 2016 00:03:36 +0000 (16:03 -0800)]
Merge pull request #1369 from durka/no-service

fix travis config for clippy.bashy.io

7 years agotravis: ping correct repo for clippy.bash.io
Alex Burka [Mon, 28 Nov 2016 23:59:23 +0000 (18:59 -0500)]
travis: ping correct repo for clippy.bash.io

7 years agodon't advertise clippy.bashy.io
Alex Burka [Mon, 28 Nov 2016 23:59:15 +0000 (18:59 -0500)]
don't advertise clippy.bashy.io

7 years agoMerge pull request #1367 from Manishearth/rustup
Oliver Schneider [Fri, 25 Nov 2016 18:33:53 +0000 (19:33 +0100)]
Merge pull request #1367 from Manishearth/rustup

rustup to rustc 1.15.0-nightly (d5814b03e 2016-11-23)

7 years agorustup to rustc 1.15.0-nightly (d5814b03e 2016-11-23)
Oliver Schneider [Fri, 25 Nov 2016 18:24:55 +0000 (19:24 +0100)]
rustup to rustc 1.15.0-nightly (d5814b03e 2016-11-23)

7 years agoConvert DEREF_ADDROF to EarlyLintPass
Phil Turnbull [Fri, 25 Nov 2016 14:54:07 +0000 (09:54 -0500)]
Convert DEREF_ADDROF to EarlyLintPass

7 years agoMake deref_addrof suggestions stricter
Phil Turnbull [Fri, 25 Nov 2016 14:53:49 +0000 (09:53 -0500)]
Make deref_addrof suggestions stricter

SUGGESTION matches a substring so 'aref' in the testcases can match
'let b = *aref', 'let b = **aref', 'let b = *&aref' etc, which are
all wrong.

7 years agoMerge pull request #1360 from Manishearth/rustup
Martin Carton [Thu, 24 Nov 2016 17:12:20 +0000 (18:12 +0100)]
Merge pull request #1360 from Manishearth/rustup

Rustup to *rustc 1.15.0-nightly (3bf2be9ce 2016-11-22)* and bump to 0.0.102

7 years agoMerge pull request #1363 from hdhoang/patch-2
Oliver Schneider [Thu, 24 Nov 2016 10:20:52 +0000 (11:20 +0100)]
Merge pull request #1363 from hdhoang/patch-2

useless_format: fix typo

7 years agoMerge pull request #1362 from hdhoang/patch-1
Oliver Schneider [Thu, 24 Nov 2016 10:19:57 +0000 (11:19 +0100)]
Merge pull request #1362 from hdhoang/patch-1

let_if_seq: fix rewrite example

7 years agouseless_format: fix typo
Hoàng Đức Hiếu [Thu, 24 Nov 2016 09:10:22 +0000 (16:10 +0700)]
useless_format: fix typo

7 years agolet_if_seq: fix rewrite example
Hoàng Đức Hiếu [Thu, 24 Nov 2016 09:09:09 +0000 (16:09 +0700)]
let_if_seq: fix rewrite example

7 years agoBump to 0.0.102
mcarton [Wed, 23 Nov 2016 21:45:00 +0000 (22:45 +0100)]
Bump to 0.0.102

7 years agoRustup to *rustc 1.15.0-nightly (3bf2be9ce 2016-11-22)*
mcarton [Wed, 23 Nov 2016 21:44:00 +0000 (22:44 +0100)]
Rustup to *rustc 1.15.0-nightly (3bf2be9ce 2016-11-22)*

7 years agoMerge pull request #1357 from Manishearth/rustup
Martin Carton [Wed, 23 Nov 2016 20:39:12 +0000 (21:39 +0100)]
Merge pull request #1357 from Manishearth/rustup

Rustup to *rustc 1.15.0-nightly (7b3eeea22 2016-11-21)* and bump to 0.0.101

7 years agoBump to 0.0.101
mcarton [Wed, 23 Nov 2016 20:25:44 +0000 (21:25 +0100)]
Bump to 0.0.101

7 years agoRustup to *rustc 1.15.0-nightly (7b3eeea22 2016-11-21)*
mcarton [Wed, 23 Nov 2016 20:19:03 +0000 (21:19 +0100)]
Rustup to *rustc 1.15.0-nightly (7b3eeea22 2016-11-21)*

7 years agoLint usage of `*&` and `*&mut`
Phil Turnbull [Tue, 22 Nov 2016 18:22:37 +0000 (13:22 -0500)]
Lint usage of `*&` and `*&mut`

fixes #1316

7 years agoMerge pull request #1349 from philipturnbull/extend-chars
Martin Carton [Tue, 22 Nov 2016 17:21:30 +0000 (18:21 +0100)]
Merge pull request #1349 from philipturnbull/extend-chars

Lint `.extend(s.chars())` (closes #792)

7 years agoRemove mention of `.push_str(s)` being faster
Phil Turnbull [Sun, 20 Nov 2016 16:22:22 +0000 (11:22 -0500)]
Remove mention of `.push_str(s)` being faster

For the `.push_str(str.chars())` case the compiler will inline `push_str` and
call `extend_from_slice` on the underlying vector, so this isn't actually
faster.

7 years agoSuggest `&s` instead of `s.as_str()`
Phil Turnbull [Sun, 20 Nov 2016 16:19:36 +0000 (11:19 -0500)]
Suggest `&s` instead of `s.as_str()`

7 years agoMerge pull request #1347 from sinkuu/conditional_returns
Oliver Schneider [Sun, 20 Nov 2016 08:21:25 +0000 (09:21 +0100)]
Merge pull request #1347 from sinkuu/conditional_returns

Allow explicit returns with cfg attributes

7 years agoFurther clarify recommended usage
Daniel S Poulin [Sun, 20 Nov 2016 03:16:36 +0000 (22:16 -0500)]
Further clarify recommended usage

Pushed the section on hard dependency installation to the bottom of the usage methods to further discourage its use. Also included a note in that section warning that it is not the recommended method. Lastly, changed what was said in the opening paragraph of the Usage section to reflect the multitude of options.

7 years agoFix #1346
sinkuu [Sun, 20 Nov 2016 01:15:40 +0000 (10:15 +0900)]
Fix #1346

7 years agoAllow explicit returns with cfg attributes
sinkuu [Sat, 19 Nov 2016 11:10:04 +0000 (20:10 +0900)]
Allow explicit returns with cfg attributes

7 years agoMerge pull request #1351 from Manishearth/rustup-2016-11-18
Martin Carton [Sat, 19 Nov 2016 23:19:38 +0000 (00:19 +0100)]
Merge pull request #1351 from Manishearth/rustup-2016-11-18

Rustup to *rustc 1.15.0-nightly (ac635aa95 2016-11-18)* and bump to 0.0.100

7 years agoBump to 0.0.100
mcarton [Sat, 19 Nov 2016 23:14:25 +0000 (00:14 +0100)]
Bump to 0.0.100

7 years agoRustup to *rustc 1.15.0-nightly (ac635aa95 2016-11-18)*
mcarton [Sat, 19 Nov 2016 23:13:08 +0000 (00:13 +0100)]
Rustup to *rustc 1.15.0-nightly (ac635aa95 2016-11-18)*

7 years agoAdd lint for `string.extend(string.chars())`
Phil Turnbull [Sat, 19 Nov 2016 15:36:23 +0000 (10:36 -0500)]
Add lint for `string.extend(string.chars())`

fixes #792

7 years agoAdd lint for `string.extend("str".chars())`
Phil Turnbull [Sat, 19 Nov 2016 15:21:40 +0000 (10:21 -0500)]
Add lint for `string.extend("str".chars())`

fixes #792

7 years agoFactor out lint_vec_extend
Phil Turnbull [Sun, 16 Oct 2016 19:13:09 +0000 (15:13 -0400)]
Factor out lint_vec_extend

7 years agoClarify recco to install as a soft dependency
Daniel S Poulin [Sat, 19 Nov 2016 03:46:12 +0000 (22:46 -0500)]
Clarify recco to install as a soft dependency

On IRC it was mentioned that clippy is not meant to be installed as a hard dependency.
As it was, the README placed the hard dependency instructions first and did not
mention the recommendation, misleading users into making it a hard dependency. A
quick survey of the dependent crates on crates.io reveals the reach of this issue.

7 years agoMerge pull request #1344 from Manishearth/rustup
Martin Carton [Fri, 18 Nov 2016 12:47:07 +0000 (13:47 +0100)]
Merge pull request #1344 from Manishearth/rustup

[WIP] Rustup to rustc 1.15.0-nightly (0ed951993 2016-11-14)

7 years agoRustup to rustc 1.15.0-nightly (0ed951993 2016-11-14)
mcarton [Fri, 18 Nov 2016 12:40:53 +0000 (13:40 +0100)]
Rustup to rustc 1.15.0-nightly (0ed951993 2016-11-14)

7 years agoCleanup
mcarton [Fri, 18 Nov 2016 12:40:15 +0000 (13:40 +0100)]
Cleanup

7 years agofix the inspector
Oliver Schneider [Fri, 18 Nov 2016 12:21:07 +0000 (13:21 +0100)]
fix the inspector

7 years agoHandle closure with single expression blocks
mcarton [Thu, 17 Nov 2016 18:44:18 +0000 (19:44 +0100)]
Handle closure with single expression blocks

7 years agoRustup to rustc 1.15.0-nightly (0ed951993 2016-11-14)
mcarton [Wed, 16 Nov 2016 20:57:56 +0000 (21:57 +0100)]
Rustup to rustc 1.15.0-nightly (0ed951993 2016-11-14)

7 years agoMerge pull request #1339 from dereckson/patch-1
Manish Goregaokar [Fri, 11 Nov 2016 05:20:13 +0000 (21:20 -0800)]
Merge pull request #1339 from dereckson/patch-1

Recognize quux as a metasyntactic variable

7 years agoRecognize quux as a metasyntactic variable
Sébastien Santoro [Fri, 11 Nov 2016 04:57:29 +0000 (05:57 +0100)]
Recognize quux as a metasyntactic variable

quux is another metasyntactic variable like foo and so
should be detected by the blacklisted names linter.

7 years agoMerge pull request #1337 from oli-obk/master
Martin Carton [Thu, 10 Nov 2016 17:51:08 +0000 (18:51 +0100)]
Merge pull request #1337 from oli-obk/master

fix ice in `len_zero` lint when type has no inherent impls at all

7 years agofix ice in `len_zero` lint when type has no inherent impls at all
Oliver 'ker' Schneider [Thu, 10 Nov 2016 16:06:39 +0000 (17:06 +0100)]
fix ice in `len_zero` lint when type has no inherent impls at all

fixes #1336

7 years agoMerge pull request #1328 from Machtan/master
Oliver Schneider [Wed, 9 Nov 2016 09:49:16 +0000 (10:49 +0100)]
Merge pull request #1328 from Machtan/master

 Add '--version' flag and allow version and help flags when called as 'cargo-clippy'

7 years agoRemove unnecessary #[allow]
Jakob Lautrup Nysom [Wed, 9 Nov 2016 09:44:55 +0000 (10:44 +0100)]
Remove unnecessary #[allow]

7 years agoMerge pull request #1312 from devonhollowood/get-unwrap
Oliver Schneider [Wed, 9 Nov 2016 08:49:20 +0000 (09:49 +0100)]
Merge pull request #1312 from devonhollowood/get-unwrap

Implement `get_unwrap` lint

7 years agoMerge pull request #1332 from debris/fixed_1331
Oliver Schneider [Wed, 9 Nov 2016 08:25:18 +0000 (09:25 +0100)]
Merge pull request #1332 from debris/fixed_1331

fixed #1331