]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoAllow new lint in ui/eta.rs
Philipp Hansch [Mon, 9 Apr 2018 06:33:57 +0000 (08:33 +0200)]
Allow new lint in ui/eta.rs

6 years agoMove test to new UI test system
Philipp Hansch [Mon, 9 Apr 2018 06:20:46 +0000 (08:20 +0200)]
Move test to new UI test system

6 years agoRename lint to option_map_unit_fn
Philipp Hansch [Mon, 9 Apr 2018 06:19:40 +0000 (08:19 +0200)]
Rename lint to option_map_unit_fn

Rust does not have nil.

6 years agoUse declare_clippy_lint and 'complexity' category
Philipp Hansch [Mon, 9 Apr 2018 05:54:08 +0000 (07:54 +0200)]
Use declare_clippy_lint and 'complexity' category

6 years agoCleanup misc::check_nan
Philipp Hansch [Sun, 8 Apr 2018 08:41:51 +0000 (10:41 +0200)]
Cleanup misc::check_nan

This was a bit messed up after a bigger rebase.

6 years agoMake it compile again
Philipp Hansch [Sun, 8 Apr 2018 07:48:49 +0000 (09:48 +0200)]
Make it compile again

6 years agoHandle non-trivial nil closures
Phil Turnbull [Mon, 23 Jan 2017 01:57:17 +0000 (20:57 -0500)]
Handle non-trivial nil closures

`reduce_nil_closure` mixed together a) 'is this a nil closure?' and b) 'can it
be reduced to a simple expression?'. Split the logic into two functions so we
can still generate a basic warning when the closure can't be simplified.

6 years agoReturn Spans instead of Cow<&str>'s
Phil Turnbull [Sun, 22 Jan 2017 21:42:57 +0000 (16:42 -0500)]
Return Spans instead of Cow<&str>'s

6 years agoLint closures that return nil
Phil Turnbull [Sun, 22 Jan 2017 18:36:50 +0000 (13:36 -0500)]
Lint closures that return nil

6 years agoLint `Option.map(f)` where f never returns
Phil Turnbull [Sun, 22 Jan 2017 17:45:45 +0000 (12:45 -0500)]
Lint `Option.map(f)` where f never returns

6 years agoLint `Option.map(f)` where f returns nil
Phil Turnbull [Mon, 16 Jan 2017 20:40:50 +0000 (15:40 -0500)]
Lint `Option.map(f)` where f returns nil

6 years agoMerge pull request #2662 from mikerite/issue_2546
Oliver Schneider [Sun, 15 Apr 2018 09:57:57 +0000 (11:57 +0200)]
Merge pull request #2662 from mikerite/issue_2546

Fix useless_format false negative

6 years agoMerge pull request #2670 from mikerite/fix_compilation_20180415
Oliver Schneider [Sun, 15 Apr 2018 09:57:01 +0000 (11:57 +0200)]
Merge pull request #2670 from mikerite/fix_compilation_20180415

Fix compilation for nightly 2018-04-15

6 years agoFix clippy error
Michael Wright [Sun, 15 Apr 2018 03:20:30 +0000 (05:20 +0200)]
Fix clippy error

6 years agoFix compilation for nightly 2018-04-15
Michael Wright [Sun, 15 Apr 2018 02:48:14 +0000 (04:48 +0200)]
Fix compilation for nightly 2018-04-15

This only fixes compilation and the build. It's possible that the `author`
and `inspector` lints are broken but there are no failing tests.

Closes #2667

6 years agoMerge pull request #2669 from senden9/patch-1
Oliver Schneider [Sat, 14 Apr 2018 10:18:18 +0000 (12:18 +0200)]
Merge pull request #2669 from senden9/patch-1

Fix Markdown link syntax in lint doc

6 years agoFix Markdown link syntax in lint doc
Stefano Probst [Sat, 14 Apr 2018 09:35:52 +0000 (11:35 +0200)]
Fix Markdown link syntax in lint doc

Currently this link is wrong rendered. See https://rust-lang-nursery.github.io/rust-clippy/v0.0.193/index.html#iter_next_loop

6 years agoMerge pull request #2668 from phansch/run_remark_on_all_markdown_files
Philipp Hansch [Fri, 13 Apr 2018 19:09:07 +0000 (21:09 +0200)]
Merge pull request #2668 from phansch/run_remark_on_all_markdown_files

Run remark-lint on all markdown files in root

6 years agoRun remark-lint on all markdown files in root
Philipp Hansch [Fri, 13 Apr 2018 18:54:42 +0000 (20:54 +0200)]
Run remark-lint on all markdown files in root

6 years agoMerge pull request #2664 from phansch/move_unnecessary_fold_ui_tests
Philipp Hansch [Thu, 12 Apr 2018 20:32:45 +0000 (22:32 +0200)]
Merge pull request #2664 from phansch/move_unnecessary_fold_ui_tests

Move unnecessary_fold UI tests to separate file

6 years agoMove unnecessary_fold UI tests to separate file
Philipp Hansch [Thu, 12 Apr 2018 20:16:43 +0000 (22:16 +0200)]
Move unnecessary_fold UI tests to separate file

6 years agoFix clippy warnings
Michael Wright [Thu, 12 Apr 2018 06:50:42 +0000 (08:50 +0200)]
Fix clippy warnings

6 years agoFix useless_format false negative
Michael Wright [Thu, 12 Apr 2018 06:21:03 +0000 (08:21 +0200)]
Fix useless_format false negative

Closes #2546

6 years agoMerge pull request #2661 from devonhollowood/ptr-ptr-casts
Oliver Schneider [Wed, 11 Apr 2018 11:23:15 +0000 (13:23 +0200)]
Merge pull request #2661 from devonhollowood/ptr-ptr-casts

Replace `misaligned_transmute` lint

6 years agoDeprecate misaligned_transmute
Devon Hollowood [Wed, 11 Apr 2018 09:50:04 +0000 (02:50 -0700)]
Deprecate misaligned_transmute

6 years agoFix misaligned_transmute lint
Devon Hollowood [Wed, 11 Apr 2018 09:17:59 +0000 (02:17 -0700)]
Fix misaligned_transmute lint

This is done by adding two new lints: cast_ptr_alignment and
transmute_ptr_to_ptr. These will replace misaligned_transmute.

6 years agoMerge pull request #2660 from phansch/fix_travis
Oliver Schneider [Wed, 11 Apr 2018 07:06:24 +0000 (09:06 +0200)]
Merge pull request #2660 from phansch/fix_travis

Fix travis.yml

6 years agoFix travis.yml
Philipp Hansch [Wed, 11 Apr 2018 06:47:40 +0000 (08:47 +0200)]
Fix travis.yml

For some reason #2659 was an invalid .travis.yml and this reverts that
part of the commit that changes the .travis.yml.

It resulted in travis not starting jobs. There should be a travis build
again for this PR.

6 years agoMerge pull request #2659 from phansch/debug_deployment_issues
Philipp Hansch [Wed, 11 Apr 2018 06:40:42 +0000 (08:40 +0200)]
Merge pull request #2659 from phansch/debug_deployment_issues

Debug deployment script issues

6 years agoAdd set -x for debugging
Philipp Hansch [Wed, 11 Apr 2018 06:23:02 +0000 (08:23 +0200)]
Add set -x for debugging

6 years agoDebug deployment script issues
Philipp Hansch [Wed, 11 Apr 2018 06:07:21 +0000 (08:07 +0200)]
Debug deployment script issues

This prints some more information during the docs deployment.

6 years agoMerge pull request #2655 from rust-lang-nursery/oli-obk-patch-1
Oliver Schneider [Tue, 10 Apr 2018 17:44:43 +0000 (19:44 +0200)]
Merge pull request #2655 from rust-lang-nursery/oli-obk-patch-1

Explain nursery lints

6 years agoExplain nursery lints
Oliver Schneider [Tue, 10 Apr 2018 11:50:44 +0000 (13:50 +0200)]
Explain nursery lints

fixes #2652

6 years agoMerge pull request #2654 from killercup/feature/lint-groups-in-docs
Oliver Schneider [Tue, 10 Apr 2018 11:09:27 +0000 (13:09 +0200)]
Merge pull request #2654 from killercup/feature/lint-groups-in-docs

Show/Filter by lint groups in docs

6 years agoDocs: Reorganize layout a bit and show lint groups
Pascal Hertleif [Tue, 10 Apr 2018 10:24:00 +0000 (12:24 +0200)]
Docs: Reorganize layout a bit and show lint groups

6 years agoAdd lint groups to doc export
Pascal Hertleif [Tue, 10 Apr 2018 10:23:41 +0000 (12:23 +0200)]
Add lint groups to doc export

6 years agoVersion bump
Oliver Schneider [Sun, 8 Apr 2018 09:13:07 +0000 (11:13 +0200)]
Version bump

6 years agoTemporarily disable the needless_borrow lint
Oliver Schneider [Sun, 8 Apr 2018 08:55:42 +0000 (10:55 +0200)]
Temporarily disable the needless_borrow lint

6 years agoMerge pull request #2645 from TimNN/regex-bytes-utf8
Oliver Schneider [Sun, 8 Apr 2018 06:58:38 +0000 (08:58 +0200)]
Merge pull request #2645 from TimNN/regex-bytes-utf8

Allow invalid UTF-8 in bytes Regexes

6 years agoMerge pull request #2630 from estk/fix-2613
Oliver Schneider [Sun, 8 Apr 2018 06:57:24 +0000 (08:57 +0200)]
Merge pull request #2630 from estk/fix-2613

Add rules for write!() / writeln!() similar to those in print!() / println!()

6 years agoNew lints for write! / writeln! macros.
Evan Simmons [Thu, 5 Apr 2018 03:46:39 +0000 (20:46 -0700)]
New lints for write! / writeln! macros.

6 years agoallow invalid UTF-8 in bytes Regexes
Tim Neumann [Sat, 7 Apr 2018 20:18:51 +0000 (22:18 +0200)]
allow invalid UTF-8 in bytes Regexes

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