]>
git.lizzy.rs Git - rust.git/log
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
Oliver Schneider [Fri, 19 Jan 2018 08:16:33 +0000 (09:16 +0100)]
Disable osx builder on travis
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
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`
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
Michael Wright [Fri, 19 Jan 2018 06:10:09 +0000 (08:10 +0200)]
Added further tests
Michael Wright [Fri, 19 Jan 2018 05:56:46 +0000 (07:56 +0200)]
Merge branch 'master' into option_option_pr
HMPerson1 [Thu, 18 Jan 2018 22:33:09 +0000 (17:33 -0500)]
Use `unit_expr`
HMPerson1 [Thu, 18 Jan 2018 22:29:14 +0000 (17:29 -0500)]
Add `is_unit_expr` to deprecated lints list
Oliver Schneider [Thu, 18 Jan 2018 22:05:29 +0000 (23:05 +0100)]
Update compiletest
HMPerson1 [Thu, 18 Jan 2018 22:02:18 +0000 (17:02 -0500)]
Replace `is_unit_expr`
Oliver Schneider [Thu, 18 Jan 2018 21:02:58 +0000 (22:02 +0100)]
Don't run dogfood tests in the rustc test suite
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
Oliver Schneider [Thu, 18 Jan 2018 13:27:47 +0000 (14:27 +0100)]
Only suggest implementing Copy if it can actually be done
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.
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
Manish Goregaokar [Thu, 18 Jan 2018 08:49:19 +0000 (14:19 +0530)]
needless_pass_by_value: Whitelist RangeArgument (fixes #2357)
Manish Goregaokar [Thu, 18 Jan 2018 08:45:41 +0000 (14:15 +0530)]
needless_pass_by_value: Add suggestion for implementing Copy (fixes #2222)
Manish Goregaokar [Thu, 18 Jan 2018 08:30:52 +0000 (14:00 +0530)]
needless_pass_by_value: Ignore for extern funcs (fixes #1844)
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
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.
Michael Wright [Thu, 18 Jan 2018 05:48:03 +0000 (07:48 +0200)]
Fixed tests
Michael Wright [Thu, 18 Jan 2018 05:21:48 +0000 (07:21 +0200)]
Merge branch 'master' into option_option_pr
Vlad-Shcherbina [Wed, 17 Jan 2018 18:40:47 +0000 (21:40 +0300)]
Document map_clone known problems #498
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
Oliver Schneider [Tue, 16 Jan 2018 16:06:27 +0000 (17:06 +0100)]
Update changed ui tests
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
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
Michael Wright [Wed, 17 Jan 2018 05:24:33 +0000 (07:24 +0200)]
Made requested changes
Michael Wright [Wed, 17 Jan 2018 04:52:00 +0000 (06:52 +0200)]
Merge branch 'master' into option_option_pr
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
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
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
Oliver Schneider [Tue, 16 Jan 2018 07:52:14 +0000 (08:52 +0100)]
Update changed test output from rustc
Oliver Schneider [Mon, 15 Jan 2018 11:07:38 +0000 (12:07 +0100)]
Rustup
Jonathan Goodman [Sat, 16 Dec 2017 20:37:44 +0000 (14:37 -0600)]
add new lint else_if_without_else
Adam Lusch [Mon, 15 Jan 2018 04:19:55 +0000 (20:19 -0800)]
Adds the missing turbofish
Adam Lusch [Mon, 15 Jan 2018 04:10:36 +0000 (20:10 -0800)]
Update UI test expected output
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.
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()
Manish Goregaokar [Sun, 14 Jan 2018 06:05:07 +0000 (11:35 +0530)]
Don't warn about missing docs for main()
Fixes #2348
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
kimsnj [Fri, 12 Jan 2018 17:24:24 +0000 (18:24 +0100)]
Fix #1159: avoid comparing fixed and target sized types in lint
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
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
Manish Goregaokar [Fri, 12 Jan 2018 10:33:13 +0000 (16:03 +0530)]
Nightly only
HMPerson1 [Wed, 10 Jan 2018 04:42:07 +0000 (23:42 -0500)]
Add lint to replace `const`s with `const fn`s
Oliver Schneider [Thu, 11 Jan 2018 09:28:42 +0000 (10:28 +0100)]
Don't suggest changing explicit Clone impls if they have generics
Oliver Schneider [Wed, 10 Jan 2018 08:50:58 +0000 (09:50 +0100)]
Version bump
Oliver Schneider [Tue, 9 Jan 2018 13:57:06 +0000 (14:57 +0100)]
Fix an ICE in HashMap generalization suggestions
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`
Oliver Schneider [Mon, 8 Jan 2018 10:42:29 +0000 (11:42 +0100)]
Version bump
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
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
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
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.
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
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.
Mikko Rantanen [Sun, 7 Jan 2018 03:58:53 +0000 (05:58 +0200)]
Implement nightly libsyntax changes
Philipp Hansch [Fri, 5 Jan 2018 23:23:28 +0000 (00:23 +0100)]
Split up casting UI tests
Part of #2038
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
Michael Wright [Sat, 6 Jan 2018 06:31:39 +0000 (08:31 +0200)]
Fix build
Added comment
Michael Wright [Sat, 6 Jan 2018 06:14:52 +0000 (08:14 +0200)]
Make style consistent
Michael Wright [Thu, 4 Jan 2018 19:17:04 +0000 (21:17 +0200)]
Fix build
Adding gpg key import.
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.
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
Pascal Hertleif [Thu, 4 Jan 2018 11:37:47 +0000 (12:37 +0100)]
Add auto-fixable `println!()` suggestion
Fixes #2319
Trevor Spiteri [Tue, 2 Jan 2018 12:51:35 +0000 (13:51 +0100)]
Add "NaNs" and "GitLab" to `doc-valid-idents`
llogiq [Mon, 1 Jan 2018 22:51:04 +0000 (22:51 +0000)]
Merge pull request #2312 from zmt00/master
Fix typos in README, documentation
zmt00 [Mon, 1 Jan 2018 21:55:40 +0000 (13:55 -0800)]
Fix typos in README, documentation
Oliver Schneider [Wed, 27 Dec 2017 22:28:04 +0000 (23:28 +0100)]
Merge pull request #2307 from clarcharr/master
Rearrange 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.
Michael Wright [Tue, 26 Dec 2017 05:25:13 +0000 (07:25 +0200)]
Implemented option_option lint
Darren Tsung [Sat, 23 Dec 2017 18:15:11 +0000 (10:15 -0800)]
Start regression tests for types.rs
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
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
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
Darren Tsung [Fri, 22 Dec 2017 18:37:44 +0000 (10:37 -0800)]
Create failing test for equal inside macro
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)
Manish Goregaokar [Fri, 22 Dec 2017 04:56:20 +0000 (20:56 -0800)]
Bump to 0.0.177
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
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
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.
Darren Tsung [Thu, 21 Dec 2017 23:24:18 +0000 (15:24 -0800)]
Add +nightly to command for running cargo build.
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.
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
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)
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
Wilco Kusee [Wed, 20 Dec 2017 09:39:48 +0000 (10:39 +0100)]
Also suggest as_mut for match_as_ref
Wilco Kusee [Tue, 19 Dec 2017 22:22:16 +0000 (23:22 +0100)]
Lint for matching option as ref
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
Oliver Schneider [Fri, 15 Dec 2017 09:02:39 +0000 (10:02 +0100)]
Rustup and lazy_static version mismatch fix
fixes #2274
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
Cyril Plisko [Thu, 14 Dec 2017 22:33:23 +0000 (00:33 +0200)]
Fix crates.io site name
letheed [Mon, 11 Dec 2017 15:16:44 +0000 (16:16 +0100)]
Disable cast_lossless on const items
Oliver Schneider [Thu, 7 Dec 2017 10:20:48 +0000 (11:20 +0100)]
Update ui tests to latest rustc changes
Oliver Schneider [Thu, 7 Dec 2017 07:09:46 +0000 (08:09 +0100)]
Try fixing const_with_static_lifetime docs
Oliver Schneider [Sat, 2 Dec 2017 12:02:02 +0000 (13:02 +0100)]
Version bump
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)
Seiichi Uchida [Sat, 2 Dec 2017 09:23:32 +0000 (18:23 +0900)]
Rustup to rustc 1.24.0-nightly (
bb42071f6 2017-12-01)