]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoMerge pull request #2644 from phansch/fix_nonminimal_bool_false_positive
Oliver Schneider [Sat, 7 Apr 2018 11:17:04 +0000 (13:17 +0200)]
Merge pull request #2644 from phansch/fix_nonminimal_bool_false_positive

Fix nonminimal_bool false positive

6 years agoFix nonminimal_bool false positive
Philipp Hansch [Sat, 7 Apr 2018 10:52:18 +0000 (12:52 +0200)]
Fix nonminimal_bool false positive

It was checking any is_ok, is_err, is_some, is_none method for negation
but it should only perform the check for the built-in types, not custom
types.

6 years agoMerge pull request #2643 from phansch/split_up_match_bool_ui_tests
Oliver Schneider [Sat, 7 Apr 2018 08:40:40 +0000 (10:40 +0200)]
Merge pull request #2643 from phansch/split_up_match_bool_ui_tests

Split up match_bool UI tests

6 years agoSplit up match_bool UI tests
Philipp Hansch [Sat, 7 Apr 2018 08:23:27 +0000 (10:23 +0200)]
Split up match_bool UI tests

6 years agoMerge pull request #2641 from rcoh/patch-2
Oliver Schneider [Sat, 7 Apr 2018 07:42:54 +0000 (09:42 +0200)]
Merge pull request #2641 from rcoh/patch-2

Update hash_xor_eq docs to match behavior

6 years agoMerge pull request #2640 from mikerite/fix_compilation_20180406
Oliver Schneider [Sat, 7 Apr 2018 07:42:26 +0000 (09:42 +0200)]
Merge pull request #2640 from mikerite/fix_compilation_20180406

Fix compilation for nightly 2018-04-06

6 years agoFix docs to match behavior
Russell Cohen [Sat, 7 Apr 2018 05:44:25 +0000 (22:44 -0700)]
Fix docs to match behavior

6 years agoFix compilation for nightly 2018-04-06
Michael Wright [Sat, 7 Apr 2018 05:22:23 +0000 (07:22 +0200)]
Fix compilation for nightly 2018-04-06

Breakages for introduced by rust pull request
'AST: Give spans to all identifies' - rust-lang/rust/pull#49154

Closes #2639

6 years agoMerge pull request #2633 from mikerite/ref_cow_tests
Oliver Schneider [Fri, 6 Apr 2018 10:15:33 +0000 (12:15 +0200)]
Merge pull request #2633 from mikerite/ref_cow_tests

Move ref cow tests

6 years agoMerge pull request #2635 from phansch/split_up_some_match_ui_tests
Oliver Schneider [Fri, 6 Apr 2018 10:13:38 +0000 (12:13 +0200)]
Merge pull request #2635 from phansch/split_up_some_match_ui_tests

Split up some single_match UI tests

6 years agoSplit up some single_match UI tests
Philipp Hansch [Thu, 5 Apr 2018 19:18:38 +0000 (21:18 +0200)]
Split up some single_match UI tests

This moves only the single_match tests over to the new file.

6 years agoMove ref cow tests
Michael Wright [Thu, 5 Apr 2018 15:59:35 +0000 (17:59 +0200)]
Move ref cow tests

This commit moves the ref cow tests from needless_borrow.rs to ptr_arg.rs
where all the other PTR_ARG tests are.

6 years agoMerge pull request #2632 from phansch/fix_useless_format_false_positive
Oliver Schneider [Thu, 5 Apr 2018 07:59:12 +0000 (09:59 +0200)]
Merge pull request #2632 from phansch/fix_useless_format_false_positive

Fix useless_format false positive with macros

6 years agoFix useless_format false positive with macros
Philipp Hansch [Thu, 5 Apr 2018 05:52:26 +0000 (07:52 +0200)]
Fix useless_format false positive with macros

Clippy was issuing a warning when `format!` was used inside a macro.
That's a problem because macros have different syntax and can be outside
the control of the user.

This skips the `useless_format` check if the `format!` call is inside a
macro.

6 years agoargh
Manish Goregaokar [Thu, 5 Apr 2018 02:15:21 +0000 (19:15 -0700)]
argh

6 years agoMerge pull request #2629 from memoryleak47/typo
Manish Goregaokar [Thu, 5 Apr 2018 02:14:29 +0000 (19:14 -0700)]
Merge pull request #2629 from memoryleak47/typo

typo

6 years agotypo
memoryleak47 [Thu, 5 Apr 2018 02:13:14 +0000 (04:13 +0200)]
typo

6 years agoFix driver dogfood bug
Manish Goregaokar [Thu, 5 Apr 2018 01:56:21 +0000 (18:56 -0700)]
Fix driver dogfood bug

6 years agoBump version to 0.0.192
Manish Goregaokar [Thu, 5 Apr 2018 01:00:21 +0000 (18:00 -0700)]
Bump version to 0.0.192

6 years agoUpdate changelog
Manish Goregaokar [Thu, 5 Apr 2018 00:59:54 +0000 (17:59 -0700)]
Update changelog

6 years agoRemove uses of ExprKind::Inplace
Manish Goregaokar [Thu, 5 Apr 2018 00:56:44 +0000 (17:56 -0700)]
Remove uses of ExprKind::Inplace

6 years agoMerge pull request #2628 from TimNN/patch-2
Manish Goregaokar [Wed, 4 Apr 2018 17:57:11 +0000 (10:57 -0700)]
Merge pull request #2628 from TimNN/patch-2

Add missing `clippy_` prefix to lint groups in Readme

6 years agoAdd missing `clippy_` prefix to lint groups in Readme
Tim Neumann [Wed, 4 Apr 2018 17:49:55 +0000 (19:49 +0200)]
Add missing `clippy_` prefix to lint groups in Readme

6 years agoMerge pull request #2625 from mikerite/clippy_warning
Manish Goregaokar [Wed, 4 Apr 2018 05:48:11 +0000 (22:48 -0700)]
Merge pull request #2625 from mikerite/clippy_warning

Fix clippy warning

6 years agofix other instance of internals docs
Manish Goregaokar [Wed, 4 Apr 2018 05:47:27 +0000 (22:47 -0700)]
fix other instance of internals docs

6 years agoFix clippy warning
Michael Wright [Wed, 4 Apr 2018 05:08:35 +0000 (07:08 +0200)]
Fix clippy warning

6 years agonew internals docs
Manish Goregaokar [Wed, 4 Apr 2018 02:05:33 +0000 (19:05 -0700)]
new internals docs

6 years agoMerge pull request #2622 from flip1995/imm_while_fields
Oliver Schneider [Tue, 3 Apr 2018 20:30:14 +0000 (22:30 +0200)]
Merge pull request #2622 from flip1995/imm_while_fields

Don't trigger while_immutable_condition for mutable fields

6 years agoDon't trigger while_immutable_condition for mutable fields of tuples/structs
flip1995 [Tue, 3 Apr 2018 14:41:30 +0000 (16:41 +0200)]
Don't trigger while_immutable_condition for mutable fields of tuples/structs

6 years agoMerge pull request #2616 from mikerite/reenable_win_dogfood
Oliver Schneider [Tue, 3 Apr 2018 06:49:29 +0000 (08:49 +0200)]
Merge pull request #2616 from mikerite/reenable_win_dogfood

Re-enable dogfood test on Windows

6 years agoMerge pull request #2618 from rcoh/patch-1
Oliver Schneider [Tue, 3 Apr 2018 06:49:19 +0000 (08:49 +0200)]
Merge pull request #2618 from rcoh/patch-1

Move `set -e` to before the deploy

6 years agoMove `set -e` to before the deploy
Russell Cohen [Tue, 3 Apr 2018 06:11:47 +0000 (23:11 -0700)]
Move `set -e` to before the deploy

I _think_ this might be why the deploy script crashing isn't causing the release to fail (see #2600)

6 years agoRe-enable dogfood test on Windows
Michael Wright [Tue, 3 Apr 2018 04:22:42 +0000 (06:22 +0200)]
Re-enable dogfood test on Windows

This should work now that dogfood uses a separate output directory.

6 years agoMerge pull request #2608 from mrecachinas/feature/print-string-literal
Oliver Schneider [Mon, 2 Apr 2018 21:34:17 +0000 (23:34 +0200)]
Merge pull request #2608 from mrecachinas/feature/print-string-literal

Check for literals as println! args

6 years agoRevert adding env! to tests
Michael Recachinas [Mon, 2 Apr 2018 20:31:41 +0000 (21:31 +0100)]
Revert adding env! to tests

6 years agoAdd edge case with env! arg to test and known problems
Michael Recachinas [Mon, 2 Apr 2018 19:32:46 +0000 (20:32 +0100)]
Add edge case with env! arg to test and known problems

6 years agoMerge pull request #2612 from phansch/document_how_to_use_the_author_lint
Oliver Schneider [Mon, 2 Apr 2018 15:05:11 +0000 (17:05 +0200)]
Merge pull request #2612 from phansch/document_how_to_use_the_author_lint

Document the author lint

6 years agoDocument the author lint
Philipp Hansch [Mon, 2 Apr 2018 12:38:28 +0000 (14:38 +0200)]
Document the author lint

6 years agoMerge pull request #2611 from phansch/improve_readme
Oliver Schneider [Mon, 2 Apr 2018 10:12:02 +0000 (12:12 +0200)]
Merge pull request #2611 from phansch/improve_readme

Readme: Explain nightly install and clippy update

6 years agoMerge pull request #2605 from mikerite/dogfood_target_dir
Oliver Schneider [Mon, 2 Apr 2018 10:10:43 +0000 (12:10 +0200)]
Merge pull request #2605 from mikerite/dogfood_target_dir

Make dogfood test output to seperate directory

6 years agoReadme: Explain nightly install and clippy update
Philipp Hansch [Mon, 2 Apr 2018 09:13:02 +0000 (11:13 +0200)]
Readme: Explain nightly install and clippy update

6 years agoSupport non-unicode paths for dogfood test
Michael Wright [Mon, 2 Apr 2018 07:28:08 +0000 (09:28 +0200)]
Support non-unicode paths for dogfood test

6 years agoFix clippy warning
Michael Wright [Mon, 2 Apr 2018 05:35:13 +0000 (07:35 +0200)]
Fix clippy warning

6 years agoMerge branch 'master' into dogfood_target_dir
Michael Wright [Mon, 2 Apr 2018 05:28:10 +0000 (07:28 +0200)]
Merge branch 'master' into dogfood_target_dir

6 years agoFix clippy warning
Michael Wright [Mon, 2 Apr 2018 04:57:14 +0000 (06:57 +0200)]
Fix clippy warning

Fix too_many_arguments on `check_general_case` by allowing it. I can't
see a sensible way of grouping the parameters.

6 years agoFix clippy warning
Michael Wright [Mon, 2 Apr 2018 04:42:30 +0000 (06:42 +0200)]
Fix clippy warning

Fix cyclomatic_complexity warning on `check_expr` by allowing it. This
is preferable to increasing the threshold every time the method changes.

6 years agoFix clippy warning
Michael Wright [Mon, 2 Apr 2018 04:34:11 +0000 (06:34 +0200)]
Fix clippy warning

Fix `option_option` warning on `to_const_range` by taking the entire range
as an parameter instead of the start and end.

6 years agoFix clippy warning
Michael Wright [Mon, 2 Apr 2018 04:22:10 +0000 (06:22 +0200)]
Fix clippy warning

Allow `many_single_char_names` on `SpanlessHash::hash_expr`. Each
variable has a small scope and the method is readable.

6 years agoChange declare_lint! to declare_clippy_lint!
Michael Recachinas [Sun, 1 Apr 2018 23:25:57 +0000 (00:25 +0100)]
Change declare_lint! to declare_clippy_lint!

6 years agoAdd #![allow(print_literal)] to other test/ui/print_*.rs tests
Michael Recachinas [Sun, 1 Apr 2018 23:24:25 +0000 (00:24 +0100)]
Add #![allow(print_literal)] to other test/ui/print_*.rs tests

6 years agoAdd implementation and tests for literal checking in print/println format args
Michael Recachinas [Sun, 1 Apr 2018 18:28:07 +0000 (19:28 +0100)]
Add implementation and tests for literal checking in print/println format args

6 years agoMerge pull request #2606 from phansch/improve_contributing_instructions
Martin Carton [Sun, 1 Apr 2018 14:32:44 +0000 (16:32 +0200)]
Merge pull request #2606 from phansch/improve_contributing_instructions

Improve CONTRIBUTING.md

6 years agoImprove CONTRIBUTING.md
Philipp Hansch [Sun, 1 Apr 2018 13:31:25 +0000 (15:31 +0200)]
Improve CONTRIBUTING.md

* Incremental compilation is on by default
* Restructured the label overview to go from easy to more difficult labels.

6 years agoFix clippy warnings from last commit
Michael Wright [Sun, 1 Apr 2018 08:17:48 +0000 (10:17 +0200)]
Fix clippy warnings from last commit

6 years agoMake dogfood test output to seperate directory
Michael Wright [Sun, 1 Apr 2018 07:28:53 +0000 (09:28 +0200)]
Make dogfood test output to seperate directory

This commit makes `cargo clippy` output the build artifacts to a
separate directory if the `CLIPPY_DOGFOOD` env var is set. This should
prevent dogfood builds from interfering with regular builds.

This should help with issue #2595.

6 years agoMerge pull request #2601 from flip1995/export
Oliver Schneider [Sat, 31 Mar 2018 18:55:33 +0000 (20:55 +0200)]
Merge pull request #2601 from flip1995/export

Fix lintlib script

6 years agoFix lintlib script
flip1995 [Sat, 31 Mar 2018 15:53:24 +0000 (17:53 +0200)]
Fix lintlib script

6 years agoMerge pull request #2590 from phansch/fix_another_false_positive
Oliver Schneider [Fri, 30 Mar 2018 11:13:45 +0000 (13:13 +0200)]
Merge pull request #2590 from phansch/fix_another_false_positive

Fix false positive in empty_line_after_outer_attr

6 years agoHandle nested block comments
Philipp Hansch [Fri, 30 Mar 2018 10:36:30 +0000 (12:36 +0200)]
Handle nested block comments

6 years agoMove empty_line_after_outer_attribute to nursery
Philipp Hansch [Fri, 30 Mar 2018 09:28:37 +0000 (11:28 +0200)]
Move empty_line_after_outer_attribute to nursery

From the clippy side it's difficult to detect empty lines between
an attributes and the following item because empty lines and comments
are not part of the AST. The parsing currently works for basic cases
but is not perfect and can cause false positives.

Maybe libsyntax 2.0 will fix some of the problems around attributes but
comments will probably be never part of the AST so we would still have
to do some manual parsing.

6 years agoFix false positive in empty_line_after_outer_attr
Philipp Hansch [Thu, 29 Mar 2018 19:14:53 +0000 (21:14 +0200)]
Fix false positive in empty_line_after_outer_attr

Before, when you had a block comment between an attribute and the
following item like this:

```rust
\#[crate_type = "lib"]
/*

*/
pub struct Rust;
```

It would cause a false positive on the lint, because there is an empty
line inside the block comment.

This makes sure that basic block comments are detected and removed from
the snippet that was created before.

6 years agoMerge pull request #2593 from rust-lang-nursery/rustup
Manish Goregaokar [Fri, 30 Mar 2018 08:46:20 +0000 (10:46 +0200)]
Merge pull request #2593 from rust-lang-nursery/rustup

Rustup to rustc 1.26.0-nightly (ae544ee1c 2018-03-29)

6 years agoBump to 0.191
Manish Goregaokar [Fri, 30 Mar 2018 08:38:42 +0000 (10:38 +0200)]
Bump to 0.191

6 years agoUpdate changelog for 0.191
Manish Goregaokar [Fri, 30 Mar 2018 08:38:35 +0000 (10:38 +0200)]
Update changelog for 0.191

6 years agoRustup to rustc 1.26.0-nightly (ae544ee1c 2018-03-29)
Manish Goregaokar [Fri, 30 Mar 2018 08:35:51 +0000 (10:35 +0200)]
Rustup to rustc 1.26.0-nightly (ae544ee1c 2018-03-29)

6 years agoMerge pull request #2589 from rust-lang-nursery/rangearg
Manish Goregaokar [Thu, 29 Mar 2018 14:21:45 +0000 (16:21 +0200)]
Merge pull request #2589 from rust-lang-nursery/rangearg

Move RangeArgument

6 years agoMerge pull request #2579 from rust-lang-nursery/lint_audit_mcve
Oliver Schneider [Thu, 29 Mar 2018 12:34:21 +0000 (14:34 +0200)]
Merge pull request #2579 from rust-lang-nursery/lint_audit_mcve

lint audit: Implementation + move one lint

6 years agoAddress review comments
Oliver Schneider [Thu, 29 Mar 2018 11:41:53 +0000 (13:41 +0200)]
Address review comments

6 years agoMove RangeArgument
Manish Goregaokar [Thu, 29 Mar 2018 11:02:12 +0000 (13:02 +0200)]
Move RangeArgument

6 years agoDocument lint groups
Oliver Schneider [Thu, 29 Mar 2018 11:04:52 +0000 (13:04 +0200)]
Document lint groups

6 years agoMerge pull request #2585 from bjgill/use-check-manifest-handling
Oliver Schneider [Thu, 29 Mar 2018 05:19:00 +0000 (07:19 +0200)]
Merge pull request #2585 from bjgill/use-check-manifest-handling

Use cargo check's manifest handling

6 years agoDelete all code for handling manifest path
Benjamin Gill [Wed, 28 Mar 2018 22:17:48 +0000 (23:17 +0100)]
Delete all code for handling manifest path

Now that we're using cargo check, we can stop needing to find out the
manifest path ourselves. Instead, we can delegate to cargo check, which
is perfectly capable of working out for itself what needs to be built.

This fixes #1707 and #2518.

Note that this PR will change the output. We will no longer output `bin:
foo` before each crate. This a bit unfortunate. However, given that
we're now going to be building in parallel (which is *much* faster), I
think this is acceptable - we'll be no worse than cargo itself.

6 years agoUpdate test suite
Oliver Schneider [Wed, 28 Mar 2018 21:49:32 +0000 (23:49 +0200)]
Update test suite

6 years agoCategorize all the lints!
Oliver Schneider [Wed, 28 Mar 2018 13:24:26 +0000 (15:24 +0200)]
Categorize all the lints!

6 years agoMerge pull request #2582 from rust-lang-nursery/clippy_aint_no_compiler
Oliver Schneider [Wed, 28 Mar 2018 10:04:18 +0000 (12:04 +0200)]
Merge pull request #2582 from rust-lang-nursery/clippy_aint_no_compiler

Use cargo check instead of cargo rustc

6 years agoUse cargo check instead of cargo rustc
Oliver Schneider [Wed, 28 Mar 2018 09:50:17 +0000 (11:50 +0200)]
Use cargo check instead of cargo rustc

6 years agoImplementation + move one lint
Oliver Schneider [Tue, 27 Mar 2018 15:13:55 +0000 (17:13 +0200)]
Implementation + move one lint

6 years agoUndo current_dir -> CARGO_MANIFEST_DIR move
Oliver Schneider [Tue, 27 Mar 2018 11:00:02 +0000 (13:00 +0200)]
Undo current_dir -> CARGO_MANIFEST_DIR move

6 years agoVersion bump
Oliver Schneider [Tue, 27 Mar 2018 10:14:46 +0000 (12:14 +0200)]
Version bump

6 years agoMerge pull request #2572 from flip1995/immut_while
Oliver Schneider [Tue, 27 Mar 2018 05:07:27 +0000 (07:07 +0200)]
Merge pull request #2572 from flip1995/immut_while

Fix check of immutable condition in closure

6 years agoMerge pull request #2578 from mikerite/fix_issue_2397_pr_2
Oliver Schneider [Tue, 27 Mar 2018 05:07:01 +0000 (07:07 +0200)]
Merge pull request #2578 from mikerite/fix_issue_2397_pr_2

Fix enum_glob_use false positives

6 years agoFix enum_glob_use false positives
Michael Wright [Mon, 26 Mar 2018 05:48:32 +0000 (07:48 +0200)]
Fix enum_glob_use false positives

Closes #2397.

This checks the def of the `ItemUse` path instead of checking the
capitalization of the path segements. It was noted that this def would
sometimes be `Def::Mod` instead of `Def::Enum` but it seems correct now.

6 years agoSkip the mutation in while body case for closures
flip1995 [Mon, 26 Mar 2018 10:32:21 +0000 (12:32 +0200)]
Skip the mutation in while body case for closures

6 years agoFix check of immutable condition in closure
flip1995 [Sun, 25 Mar 2018 15:23:31 +0000 (17:23 +0200)]
Fix check of immutable condition in closure

6 years agoMerge pull request #2576 from kimsnj/infinite_loop
Oliver Schneider [Mon, 26 Mar 2018 22:06:16 +0000 (00:06 +0200)]
Merge pull request #2576 from kimsnj/infinite_loop

while_immutable_condition: fix handling of self

6 years agowhile_immutable_condition: limit suggestion span to condition
Karim Snj [Mon, 26 Mar 2018 21:24:57 +0000 (23:24 +0200)]
while_immutable_condition: limit suggestion span to condition

6 years agowhile_immutable_condition: fix handling of self
Karim Snj [Mon, 26 Mar 2018 18:37:34 +0000 (20:37 +0200)]
while_immutable_condition: fix handling of self

6 years agoMerge pull request #2577 from phansch/false_positive_empty_line_after_outer_attr_with...
Oliver Schneider [Mon, 26 Mar 2018 20:50:48 +0000 (22:50 +0200)]
Merge pull request #2577 from phansch/false_positive_empty_line_after_outer_attr_with_enum

Fix false positive in empty_line_after_outer_attribute

6 years agoFix false positive in empty_line_after_outer_attribute
Philipp Hansch [Mon, 26 Mar 2018 19:57:42 +0000 (21:57 +0200)]
Fix false positive in empty_line_after_outer_attribute

`empty_line_after_outer_attribute` produced a false positive warning when
deriving `Copy` and/or `Clone` for an item.

It looks like the second point in [this comment][that_comment] is related,
as the attribute that causes the false positive has a path of
`rustc_copy_clone_marker`.

Fixes #2475

[that_comment]: https://github.com/rust-lang/rust/issues/35900#issuecomment-245978831

6 years agoMerge pull request #2575 from rust-lang-nursery/oli-obk-patch-1
Oliver Schneider [Mon, 26 Mar 2018 05:22:32 +0000 (07:22 +0200)]
Merge pull request #2575 from rust-lang-nursery/oli-obk-patch-1

Update needless_lifetimes_impl_trait.rs

6 years agoUpdate needless_lifetimes_impl_trait.rs
Oliver Schneider [Mon, 26 Mar 2018 05:05:46 +0000 (07:05 +0200)]
Update needless_lifetimes_impl_trait.rs

6 years agoMerge pull request #2574 from mark-i-m/i128
Oliver Schneider [Mon, 26 Mar 2018 05:04:42 +0000 (07:04 +0200)]
Merge pull request #2574 from mark-i-m/i128

i128 is stabilizing

6 years agowhitespace
Mark Mansi [Mon, 26 Mar 2018 02:26:10 +0000 (21:26 -0500)]
whitespace

6 years agoattempt fix stderr
Mark Mansi [Mon, 26 Mar 2018 02:17:38 +0000 (21:17 -0500)]
attempt fix stderr

6 years agomake it pass for now
Mark Mansi [Mon, 26 Mar 2018 02:04:05 +0000 (21:04 -0500)]
make it pass for now

6 years agoi128 is stable
Mark Mansi [Mon, 26 Mar 2018 01:35:23 +0000 (20:35 -0500)]
i128 is stable

6 years agoi128 is stable
Mark Mansi [Mon, 26 Mar 2018 01:34:44 +0000 (20:34 -0500)]
i128 is stable

6 years agoMerge pull request #2570 from CYBAI/update-readme
Oliver Schneider [Sun, 25 Mar 2018 21:11:12 +0000 (23:11 +0200)]
Merge pull request #2570 from CYBAI/update-readme

Update configuration for leading dot filename

6 years agoUpdate configuration for leading dot filename
CYBAI [Sun, 25 Mar 2018 08:57:15 +0000 (16:57 +0800)]
Update configuration for leading dot filename

6 years agoMerge pull request #2569 from rust-lang-nursery/oli-obk-patch-1
Oliver Schneider [Sun, 25 Mar 2018 08:41:39 +0000 (10:41 +0200)]
Merge pull request #2569 from rust-lang-nursery/oli-obk-patch-1

Undo a temporary fix for a cargo bug