]> git.lizzy.rs Git - rust.git/log
rust.git
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 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 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 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 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 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 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.

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