]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoMerge pull request #2390 from topecongiro/rustup
Manish Goregaokar [Mon, 22 Jan 2018 05:01:44 +0000 (10:31 +0530)]
Merge pull request #2390 from topecongiro/rustup

Rustup to rustc 1.25.0-nightly (97520ccb1 2018-01-21)

6 years agoRustup to rustc 1.25.0-nightly (97520ccb1 2018-01-21)
Seiichi Uchida [Mon, 22 Jan 2018 04:23:57 +0000 (13:23 +0900)]
Rustup to rustc 1.25.0-nightly (97520ccb1 2018-01-21)

6 years agoMerge pull request #2385 from rust-lang-nursery/small-doc-fix
Martin Carton [Sat, 20 Jan 2018 23:07:13 +0000 (00:07 +0100)]
Merge pull request #2385 from rust-lang-nursery/small-doc-fix

Small documentation formatting fix

6 years agoSmall documentation formatting fix
mcarton [Sat, 20 Jan 2018 22:32:02 +0000 (23:32 +0100)]
Small documentation formatting fix

6 years agoMerge pull request #2350 from theotherphil/fold_any
Oliver Schneider [Fri, 19 Jan 2018 12:31:00 +0000 (13:31 +0100)]
Merge pull request #2350 from theotherphil/fold_any

Lint for using hand-writing a fold with the same behaviour as any

6 years agoMerge pull request #2363 from rust-lang-nursery/appveyor
Oliver Schneider [Fri, 19 Jan 2018 12:25:17 +0000 (13:25 +0100)]
Merge pull request #2363 from rust-lang-nursery/appveyor

Fix appveyor

6 years agoUpdate error count
Oliver Schneider [Fri, 19 Jan 2018 12:18:44 +0000 (13:18 +0100)]
Update error count

6 years agoDon't run cargo clippy on appveyor
Oliver Schneider [Fri, 19 Jan 2018 12:12:57 +0000 (13:12 +0100)]
Don't run cargo clippy on appveyor

6 years agoDon't run 32 bit checks on windows
Oliver Schneider [Wed, 17 Jan 2018 07:53:13 +0000 (08:53 +0100)]
Don't run 32 bit checks on windows

6 years agoReadd the .exe extension on windows
Oliver Schneider [Wed, 17 Jan 2018 07:52:41 +0000 (08:52 +0100)]
Readd the .exe extension on windows

6 years agoDisable gnu builds on appveyor, rustc plugins are broken there
Oliver Schneider [Tue, 16 Jan 2018 15:36:58 +0000 (16:36 +0100)]
Disable gnu builds on appveyor, rustc plugins are broken there

6 years agoDon't run dogfood on windows or in the rustc test suite
Oliver Schneider [Tue, 16 Jan 2018 14:26:32 +0000 (15:26 +0100)]
Don't run dogfood on windows or in the rustc test suite

6 years agoMerge branch 'master' of github.com:Manishearth/rust-clippy into fold_any
Oliver Schneider [Fri, 19 Jan 2018 11:10:24 +0000 (12:10 +0100)]
Merge branch 'master' of github.com:Manishearth/rust-clippy into fold_any

6 years agoMerge pull request #2364 from flip1995/precedence
Oliver Schneider [Fri, 19 Jan 2018 11:07:00 +0000 (12:07 +0100)]
Merge pull request #2364 from flip1995/precedence

Add macro check to precedence lint

6 years agoMerge pull request #2382 from rust-lang-nursery/oli-obk-patch-1
Oliver Schneider [Fri, 19 Jan 2018 08:43:25 +0000 (09:43 +0100)]
Merge pull request #2382 from rust-lang-nursery/oli-obk-patch-1

Disable osx builder on travis

6 years agoDisable osx builder on travis
Oliver Schneider [Fri, 19 Jan 2018 08:16:33 +0000 (09:16 +0100)]
Disable osx builder on travis

6 years agoMerge pull request #2367 from etaoins/inline-fn-without-body-lint
Oliver Schneider [Fri, 19 Jan 2018 08:14:46 +0000 (09:14 +0100)]
Merge pull request #2367 from etaoins/inline-fn-without-body-lint

Lint for trait methods without bodies

6 years agoMerge pull request #2381 from HMPerson1/remove_is_unit_expr
Oliver Schneider [Fri, 19 Jan 2018 08:14:04 +0000 (09:14 +0100)]
Merge pull request #2381 from HMPerson1/remove_is_unit_expr

Replace `is_unit_expr`

6 years agoMerge pull request #2299 from mikerite/option_option_pr
Oliver Schneider [Fri, 19 Jan 2018 07:25:17 +0000 (08:25 +0100)]
Merge pull request #2299 from mikerite/option_option_pr

Implemented option_option lint

6 years agoAdded further tests
Michael Wright [Fri, 19 Jan 2018 06:10:09 +0000 (08:10 +0200)]
Added further tests

6 years agoMerge branch 'master' into option_option_pr
Michael Wright [Fri, 19 Jan 2018 05:56:46 +0000 (07:56 +0200)]
Merge branch 'master' into option_option_pr

6 years agoUse `unit_expr`
HMPerson1 [Thu, 18 Jan 2018 22:33:09 +0000 (17:33 -0500)]
Use `unit_expr`

6 years agoAdd `is_unit_expr` to deprecated lints list
HMPerson1 [Thu, 18 Jan 2018 22:29:14 +0000 (17:29 -0500)]
Add `is_unit_expr` to deprecated lints list

6 years agoUpdate compiletest
Oliver Schneider [Thu, 18 Jan 2018 22:05:29 +0000 (23:05 +0100)]
Update compiletest

6 years agoReplace `is_unit_expr`
HMPerson1 [Thu, 18 Jan 2018 22:02:18 +0000 (17:02 -0500)]
Replace `is_unit_expr`

6 years agoDon't run dogfood tests in the rustc test suite
Oliver Schneider [Thu, 18 Jan 2018 21:02:58 +0000 (22:02 +0100)]
Don't run dogfood tests in the rustc test suite

6 years agoMerge pull request #2375 from rust-lang-nursery/needless-range
Oliver Schneider [Thu, 18 Jan 2018 13:46:36 +0000 (14:46 +0100)]
Merge pull request #2375 from rust-lang-nursery/needless-range

Various needless_pass_by_value false positive fixes

6 years agoOnly suggest implementing Copy if it can actually be done
Oliver Schneider [Thu, 18 Jan 2018 13:27:47 +0000 (14:27 +0100)]
Only suggest implementing Copy if it can actually be done

6 years agoSuggest removing inline attributes
Ryan Cumming [Wed, 17 Jan 2018 19:08:03 +0000 (06:08 +1100)]
Suggest removing inline attributes

This adds a `suggest_remove_item` helper that will remove an item and
all trailing whitespace. This should handle both attributes on the same
line as the function and on a separate line; the function takes the
position of the original attribute.

6 years agoLint for trait methods without bodies
Ryan Cumming [Wed, 17 Jan 2018 09:41:24 +0000 (20:41 +1100)]
Lint for trait methods without bodies

As discussed in rust-lang/rust#47475 the #[inline] attribute is
currently allowed on trait methods without bodies (i.e. without a
default implementation). This is misleading as it could be interpreted
as affecting the implementations of the trait method. Add a lint for any
use of #[inline] on a trait method without a body.

Fixes rust-lang/rust#47475

6 years agoneedless_pass_by_value: Whitelist RangeArgument (fixes #2357)
Manish Goregaokar [Thu, 18 Jan 2018 08:49:19 +0000 (14:19 +0530)]
needless_pass_by_value: Whitelist RangeArgument (fixes #2357)

6 years agoneedless_pass_by_value: Add suggestion for implementing Copy (fixes #2222)
Manish Goregaokar [Thu, 18 Jan 2018 08:45:41 +0000 (14:15 +0530)]
needless_pass_by_value: Add suggestion for implementing Copy (fixes #2222)

6 years agoneedless_pass_by_value: Ignore for extern funcs (fixes #1844)
Manish Goregaokar [Thu, 18 Jan 2018 08:30:52 +0000 (14:00 +0530)]
needless_pass_by_value: Ignore for extern funcs (fixes #1844)

6 years agoMerge pull request #2370 from Vlad-Shcherbina/patch-1
Oliver Schneider [Thu, 18 Jan 2018 08:10:39 +0000 (09:10 +0100)]
Merge pull request #2370 from Vlad-Shcherbina/patch-1

Document map_clone known problems #498

6 years agoRename variable
Michael Wright [Thu, 18 Jan 2018 05:52:24 +0000 (07:52 +0200)]
Rename variable

Rename `vec` to `ty` in `match_type_parameter`. This variable is a type
and not a vector. Previously it would only refer to `Vec<_>` so the name used
to make sense.

6 years agoFixed tests
Michael Wright [Thu, 18 Jan 2018 05:48:03 +0000 (07:48 +0200)]
Fixed tests

6 years agoMerge branch 'master' into option_option_pr
Michael Wright [Thu, 18 Jan 2018 05:21:48 +0000 (07:21 +0200)]
Merge branch 'master' into option_option_pr

6 years agoFix typos
Phil Ellison [Wed, 17 Jan 2018 21:54:09 +0000 (21:54 +0000)]
Fix typos

6 years agoAdd some reviewer comments
Phil Ellison [Wed, 17 Jan 2018 21:06:16 +0000 (21:06 +0000)]
Add some reviewer comments

6 years agoRename lint, improve documentation
Phil Ellison [Wed, 17 Jan 2018 20:21:29 +0000 (20:21 +0000)]
Rename lint, improve documentation

6 years agoFix bug. Don't expect lint when acc is on rhs
Phil Ellison [Wed, 17 Jan 2018 20:11:40 +0000 (20:11 +0000)]
Fix bug. Don't expect lint when acc is on rhs

6 years agoLint on folds implementing .all, .sum and .product
Phil Ellison [Wed, 17 Jan 2018 19:12:44 +0000 (19:12 +0000)]
Lint on folds implementing .all, .sum and .product

6 years agoDocument map_clone known problems #498
Vlad-Shcherbina [Wed, 17 Jan 2018 18:40:47 +0000 (21:40 +0300)]
Document map_clone known problems #498

6 years agoMerge pull request #2309 from rust-lang-nursery/rustc-monitor
Oliver Schneider [Wed, 17 Jan 2018 14:38:22 +0000 (15:38 +0100)]
Merge pull request #2309 from rust-lang-nursery/rustc-monitor

Use rustc_driver::run

6 years agoUpdate changed ui tests
Oliver Schneider [Tue, 16 Jan 2018 16:06:27 +0000 (17:06 +0100)]
Update changed ui tests

6 years agoUse rustc_driver::run (fixes #2303)
Manish Goregaokar [Thu, 28 Dec 2017 12:04:11 +0000 (17:34 +0530)]
Use rustc_driver::run (fixes #2303)

This internally uses monitor() which catches panics and stuff

6 years agoMerge pull request #2298 from goodmanjonathan/else_if_without_else
Oliver Schneider [Wed, 17 Jan 2018 08:35:58 +0000 (09:35 +0100)]
Merge pull request #2298 from goodmanjonathan/else_if_without_else

add new lint else_if_without_else

6 years agoMade requested changes
Michael Wright [Wed, 17 Jan 2018 05:24:33 +0000 (07:24 +0200)]
Made requested changes

6 years agoMerge branch 'master' into option_option_pr
Michael Wright [Wed, 17 Jan 2018 04:52:00 +0000 (06:52 +0200)]
Merge branch 'master' into option_option_pr

6 years agoFix error span to play nicely with rustfix
Phil Ellison [Tue, 16 Jan 2018 21:20:55 +0000 (21:20 +0000)]
Fix error span to play nicely with rustfix

6 years agoMerge pull request #2366 from rust-lang-nursery/const-static-fix
Oliver Schneider [Tue, 16 Jan 2018 15:41:12 +0000 (16:41 +0100)]
Merge pull request #2366 from rust-lang-nursery/const-static-fix

Show wider and more accurate suggestion for const_static_lifetime

6 years agoShow wider and more accurate suggestion for const_static_lifetime
Manish Goregaokar [Tue, 16 Jan 2018 15:16:43 +0000 (20:46 +0530)]
Show wider and more accurate suggestion for const_static_lifetime

fixes #2365

6 years agoAdd macro check to precedence lint
flip1995 [Tue, 16 Jan 2018 14:52:16 +0000 (15:52 +0100)]
Add macro check to precedence lint

6 years agoMerge pull request #2355 from alusch/clone_on_ref_ptr_restriction
Oliver Schneider [Tue, 16 Jan 2018 09:40:12 +0000 (10:40 +0100)]
Merge pull request #2355 from alusch/clone_on_ref_ptr_restriction

Fix #2048: Move `clone_on_ref_ptr` to the restriction lints

6 years agoUpdate changed test output from rustc
Oliver Schneider [Tue, 16 Jan 2018 07:52:14 +0000 (08:52 +0100)]
Update changed test output from rustc

6 years agoRustup
Oliver Schneider [Mon, 15 Jan 2018 11:07:38 +0000 (12:07 +0100)]
Rustup

6 years agoadd new lint else_if_without_else
Jonathan Goodman [Sat, 16 Dec 2017 20:37:44 +0000 (14:37 -0600)]
add new lint else_if_without_else

6 years agoAdds the missing turbofish
Adam Lusch [Mon, 15 Jan 2018 04:19:55 +0000 (20:19 -0800)]
Adds the missing turbofish

6 years agoUpdate UI test expected output
Adam Lusch [Mon, 15 Jan 2018 04:10:36 +0000 (20:10 -0800)]
Update UI test expected output

6 years agoMoves `clone_on_ref_ptr` to be a restriction lint
Adam Lusch [Mon, 15 Jan 2018 03:58:09 +0000 (19:58 -0800)]
Moves `clone_on_ref_ptr` to be a restriction lint

Also updates the suggestion to include the full type (e.g. `Arc<Foo>::clone(&rc)`)
and adds a case using trait objects to the UI tests.

6 years agoCheck that we're calling Iterator::fold
Phil Ellison [Sun, 14 Jan 2018 20:04:34 +0000 (20:04 +0000)]
Check that we're calling Iterator::fold

6 years agoAddress some review comments
Phil Ellison [Sun, 14 Jan 2018 18:18:09 +0000 (18:18 +0000)]
Address some review comments

6 years agoFix name
Phil Ellison [Sun, 14 Jan 2018 15:30:06 +0000 (15:30 +0000)]
Fix name

6 years agoMerge pull request #2349 from rust-lang-nursery/no-main-doc
Oliver Schneider [Sun, 14 Jan 2018 12:16:54 +0000 (13:16 +0100)]
Merge pull request #2349 from rust-lang-nursery/no-main-doc

Don't warn about missing docs for main()

6 years agoAdd description
Phil Ellison [Sun, 14 Jan 2018 10:07:41 +0000 (10:07 +0000)]
Add description

6 years agoMove get_arg_name into utils
Phil Ellison [Sun, 14 Jan 2018 10:05:01 +0000 (10:05 +0000)]
Move get_arg_name into utils

6 years agoTidy using if_chain and snippet function. Actually check that the initial fold value...
Phil Ellison [Sun, 14 Jan 2018 09:30:08 +0000 (09:30 +0000)]
Tidy using if_chain and snippet function. Actually check that the initial fold value is false. Remove some unwraps

6 years agoFirst pass at linting for .any expressed as a .fold
Phil Ellison [Sun, 14 Jan 2018 08:27:53 +0000 (08:27 +0000)]
First pass at linting for .any expressed as a .fold

6 years agoDon't warn about missing docs for main()
Manish Goregaokar [Sun, 14 Jan 2018 06:05:07 +0000 (11:35 +0530)]
Don't warn about missing docs for main()

Fixes #2348

6 years agoMerge pull request #2347 from kimsnj/extrem_comp
Oliver Schneider [Sat, 13 Jan 2018 11:27:36 +0000 (12:27 +0100)]
Merge pull request #2347 from kimsnj/extrem_comp

Fix #1159: avoid comparing fixed and target sized types in lint

6 years agoFix #1159: avoid comparing fixed and target sized types in lint
kimsnj [Fri, 12 Jan 2018 17:24:24 +0000 (18:24 +0100)]
Fix #1159: avoid comparing fixed and target sized types in lint

6 years agoMerge pull request #2344 from HMPerson1/svar_to_cfn
Oliver Schneider [Fri, 12 Jan 2018 13:59:06 +0000 (14:59 +0100)]
Merge pull request #2344 from HMPerson1/svar_to_cfn

Add lint to replace `const`s with `const fn`s

6 years agoMerge pull request #2296 from DarrenTsung/test_types
Oliver Schneider [Fri, 12 Jan 2018 13:55:39 +0000 (14:55 +0100)]
Merge pull request #2296 from DarrenTsung/test_types

Start regression tests for types.rs

6 years agoNightly only
Manish Goregaokar [Fri, 12 Jan 2018 10:33:13 +0000 (16:03 +0530)]
Nightly only

6 years agoAdd lint to replace `const`s with `const fn`s
HMPerson1 [Wed, 10 Jan 2018 04:42:07 +0000 (23:42 -0500)]
Add lint to replace `const`s with `const fn`s

6 years agoDon't suggest changing explicit Clone impls if they have generics
Oliver Schneider [Thu, 11 Jan 2018 09:28:42 +0000 (10:28 +0100)]
Don't suggest changing explicit Clone impls if they have generics

6 years agoVersion bump
Oliver Schneider [Wed, 10 Jan 2018 08:50:58 +0000 (09:50 +0100)]
Version bump

6 years agoFix an ICE in HashMap generalization suggestions
Oliver Schneider [Tue, 9 Jan 2018 13:57:06 +0000 (14:57 +0100)]
Fix an ICE in HashMap generalization suggestions

6 years agoMerge pull request #2316 from tspiteri/doc-names
Oliver Schneider [Tue, 9 Jan 2018 08:10:18 +0000 (09:10 +0100)]
Merge pull request #2316 from tspiteri/doc-names

Add "NaNs" and "GitLab" to `doc-valid-idents`

6 years agoVersion bump
Oliver Schneider [Mon, 8 Jan 2018 10:42:29 +0000 (11:42 +0100)]
Version bump

6 years agoMerge pull request #2328 from phansch/master
Oliver Schneider [Mon, 8 Jan 2018 10:06:28 +0000 (11:06 +0100)]
Merge pull request #2328 from phansch/master

Split up casting UI tests

6 years agoMerge pull request #2334 from Rantanen/ast-fix
Oliver Schneider [Mon, 8 Jan 2018 09:56:07 +0000 (10:56 +0100)]
Merge pull request #2334 from Rantanen/ast-fix

Implement nightly libsyntax changes to fix the build

6 years agoMerge pull request #2339 from phansch/add_some_lint_examples
Manish Goregaokar [Mon, 8 Jan 2018 09:39:33 +0000 (15:09 +0530)]
Merge pull request #2339 from phansch/add_some_lint_examples

Add 'positive' examples for some lints

6 years agoAdd 'positive' examples for some lints
Philipp Hansch [Mon, 8 Jan 2018 09:17:05 +0000 (10:17 +0100)]
Add 'positive' examples for some lints

This allows to see at a quick glance what the improved code could look
like for these lints.

6 years agoMerge pull request #2337 from phansch/update_readme
Martin Carton [Sun, 7 Jan 2018 13:12:34 +0000 (14:12 +0100)]
Merge pull request #2337 from phansch/update_readme

Add link to lints in README configuration section

6 years agoAdd link to lints in README configuration section
Philipp Hansch [Sun, 7 Jan 2018 11:50:42 +0000 (12:50 +0100)]
Add link to lints in README configuration section

The wiki has been deprecated.

6 years agoImplement nightly libsyntax changes
Mikko Rantanen [Sun, 7 Jan 2018 03:58:53 +0000 (05:58 +0200)]
Implement nightly libsyntax changes

6 years agoSplit up casting UI tests
Philipp Hansch [Fri, 5 Jan 2018 23:23:28 +0000 (00:23 +0100)]
Split up casting UI tests

Part of #2038

6 years agoMerge pull request #2326 from mikerite/fix_travis_macos
Oliver Schneider [Sat, 6 Jan 2018 09:59:08 +0000 (10:59 +0100)]
Merge pull request #2326 from mikerite/fix_travis_macos

Fix Travis CI build

6 years agoFix build
Michael Wright [Sat, 6 Jan 2018 06:31:39 +0000 (08:31 +0200)]
Fix build

Added comment

6 years agoMake style consistent
Michael Wright [Sat, 6 Jan 2018 06:14:52 +0000 (08:14 +0200)]
Make style consistent

6 years agoFix build
Michael Wright [Thu, 4 Jan 2018 19:17:04 +0000 (21:17 +0200)]
Fix build

Adding gpg key import.

6 years agoFix build
Michael Wright [Thu, 4 Jan 2018 18:39:17 +0000 (20:39 +0200)]
Fix build

Trying the work-around suggested at
https://github.com/travis-ci/travis-ci/issues/6307 to fix the Travis CI
MacOS build.

6 years agoMerge pull request #2324 from killercup/feature/2319-suggest-empty-println
Manish Goregaokar [Thu, 4 Jan 2018 12:08:54 +0000 (12:08 +0000)]
Merge pull request #2324 from killercup/feature/2319-suggest-empty-println

Add auto-fixable `println!()` suggestion

6 years agoAdd auto-fixable `println!()` suggestion
Pascal Hertleif [Thu, 4 Jan 2018 11:37:47 +0000 (12:37 +0100)]
Add auto-fixable `println!()` suggestion

Fixes #2319

6 years agoAdd "NaNs" and "GitLab" to `doc-valid-idents`
Trevor Spiteri [Tue, 2 Jan 2018 12:51:35 +0000 (13:51 +0100)]
Add "NaNs" and "GitLab" to `doc-valid-idents`

6 years agoMerge pull request #2312 from zmt00/master
llogiq [Mon, 1 Jan 2018 22:51:04 +0000 (22:51 +0000)]
Merge pull request #2312 from zmt00/master

Fix typos in README, documentation

6 years agoFix typos in README, documentation
zmt00 [Mon, 1 Jan 2018 21:55:40 +0000 (13:55 -0800)]
Fix typos in README, documentation

6 years agoMerge pull request #2307 from clarcharr/master
Oliver Schneider [Wed, 27 Dec 2017 22:28:04 +0000 (23:28 +0100)]
Merge pull request #2307 from clarcharr/master

Rearrange README.md.

6 years agoRearrange README.md.
Clar Charr [Wed, 27 Dec 2017 16:06:40 +0000 (11:06 -0500)]
Rearrange README.md.

This suggests `cargo clippy` first, which is probably the best method at this point. It also describes how to enable clippy only when testing.