]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoMerge pull request #2747 from rust-lang-nursery/author
Oliver Schneider [Sat, 12 May 2018 09:12:23 +0000 (11:12 +0200)]
Merge pull request #2747 from rust-lang-nursery/author

Patterns, locals and matches for author lint

6 years agoMerge pull request #2748 from phansch/explain_how_to_fix_nightly_build_failures
Philipp Hansch [Sat, 12 May 2018 09:01:56 +0000 (11:01 +0200)]
Merge pull request #2748 from phansch/explain_how_to_fix_nightly_build_failures

Explain how to debug and fix nightly build failures

6 years agoExplain how to debug and fix nightly build failures
Philipp Hansch [Sat, 12 May 2018 08:33:35 +0000 (10:33 +0200)]
Explain how to debug and fix nightly build failures

6 years agoPatterns, locals and matches for author lint
Oliver Schneider [Fri, 11 May 2018 17:05:34 +0000 (19:05 +0200)]
Patterns, locals and matches for author lint

6 years agoMerge pull request #2744 from waywardmonkeys/update-regex
Oliver Schneider [Fri, 11 May 2018 11:22:50 +0000 (13:22 +0200)]
Merge pull request #2744 from waywardmonkeys/update-regex

Update to regex 1 (and regex-syntax 0.6).

6 years agoUpdate to regex 1 (and regex-syntax 0.6).
Bruce Mitchener [Fri, 11 May 2018 09:32:05 +0000 (16:32 +0700)]
Update to regex 1 (and regex-syntax 0.6).

6 years agoMerge pull request #2743 from phansch/rustup20180510
Oliver Schneider [Fri, 11 May 2018 08:08:42 +0000 (10:08 +0200)]
Merge pull request #2743 from phansch/rustup20180510

Rustup to 2018-05-11

6 years agoVersion bump
Oliver Schneider [Fri, 11 May 2018 07:56:57 +0000 (09:56 +0200)]
Version bump

6 years agoReintroduce the lost (im)mutability checks
Oliver Schneider [Fri, 11 May 2018 07:50:29 +0000 (09:50 +0200)]
Reintroduce the lost (im)mutability checks

6 years agoRustup to 2018-05-11
Philipp Hansch [Fri, 11 May 2018 06:37:48 +0000 (08:37 +0200)]
Rustup to 2018-05-11

6 years agoMerge pull request #2735 from rust-lang-nursery/ice_melting
Philipp Hansch [Wed, 9 May 2018 19:56:34 +0000 (21:56 +0200)]
Merge pull request #2735 from rust-lang-nursery/ice_melting

Check that we don't treat any type but a range type as a range

6 years agoMerge pull request #2739 from gnzlbg/patch-1
Philipp Hansch [Wed, 9 May 2018 16:42:42 +0000 (18:42 +0200)]
Merge pull request #2739 from gnzlbg/patch-1

Remove removed rustfmt options

6 years agoRemove removed rustfmt options
gnzlbg [Wed, 9 May 2018 13:31:52 +0000 (15:31 +0200)]
Remove removed rustfmt options

Closes #2738

6 years agoMerge pull request #2737 from flip1995/escaped_squigglies
Oliver Schneider [Wed, 9 May 2018 11:47:41 +0000 (13:47 +0200)]
Merge pull request #2737 from flip1995/escaped_squigglies

panic_params: don't lint escaped squigglies

6 years agopanic_params: don't lint escaped squigglies
flip1995 [Sun, 6 May 2018 15:26:47 +0000 (17:26 +0200)]
panic_params: don't lint escaped squigglies

6 years agoCheck that we don't treat any type but a range type as a range
Oliver Schneider [Tue, 8 May 2018 15:16:01 +0000 (17:16 +0200)]
Check that we don't treat any type but a range type as a range

6 years agoMerge pull request #2733 from phansch/build_script
Oliver Schneider [Mon, 7 May 2018 20:40:31 +0000 (22:40 +0200)]
Merge pull request #2733 from phansch/build_script

Add rustc version check to build script

6 years agoAdd rustc version check to build script
Philipp Hansch [Mon, 7 May 2018 19:01:23 +0000 (21:01 +0200)]
Add rustc version check to build script

6 years agoMerge pull request #2730 from NiekGr/len_zero_use_of_one
Oliver Schneider [Mon, 7 May 2018 09:49:25 +0000 (11:49 +0200)]
Merge pull request #2730 from NiekGr/len_zero_use_of_one

Update len_zero to handle comparisions with one

6 years agoVersion bump
Oliver Schneider [Mon, 7 May 2018 08:00:58 +0000 (10:00 +0200)]
Version bump

6 years agoUpdate len_zero to handle comparisions with one
NiekGr [Sat, 5 May 2018 13:01:51 +0000 (15:01 +0200)]
Update len_zero to handle comparisions with one

I have added test cases for comparisons with zero and one.
While implementing handling of one, incorrect handlings of zero
were also fixed.

fixes rust-lang-nursery/rust-clippy/#2554

6 years agoMerge pull request #2729 from mikerite/fix_compilation_20180505
Oliver Schneider [Sun, 6 May 2018 13:41:24 +0000 (15:41 +0200)]
Merge pull request #2729 from mikerite/fix_compilation_20180505

Fixes compilation for rust nightly 2018-05-05

6 years agoFixes compilation for rust nightly 2018-05-05
Michael Wright [Sun, 6 May 2018 12:05:41 +0000 (14:05 +0200)]
Fixes compilation for rust nightly 2018-05-05

Closes #2725

6 years agoMerge pull request #2720 from estk/fix-dot-zero
Oliver Schneider [Sat, 5 May 2018 17:52:59 +0000 (19:52 +0200)]
Merge pull request #2720 from estk/fix-dot-zero

Fix 1x...xx.0 false positive.

6 years agoFix 1x..x.0 false positive, pretty suggestion
Evan Simmons [Wed, 2 May 2018 18:40:52 +0000 (11:40 -0700)]
Fix 1x..x.0 false positive, pretty suggestion

6 years agoMerge pull request #2724 from Caemor/patch-1
Philipp Hansch [Fri, 4 May 2018 16:43:27 +0000 (18:43 +0200)]
Merge pull request #2724 from Caemor/patch-1

Link with https instead of http

6 years agoMerge pull request #2726 from rust-lang-nursery/rustup
Oliver Schneider [Fri, 4 May 2018 14:29:57 +0000 (16:29 +0200)]
Merge pull request #2726 from rust-lang-nursery/rustup

Version bump

6 years agoVersion bump
Oliver Schneider [Fri, 4 May 2018 13:54:56 +0000 (15:54 +0200)]
Version bump

6 years agoMerge pull request #2713 from alexreg/nightly-fix
Oliver Schneider [Fri, 4 May 2018 13:06:59 +0000 (15:06 +0200)]
Merge pull request #2713 from alexreg/nightly-fix

Fixed build for latest rust master

6 years agoLink with https instead of http
Chris [Fri, 4 May 2018 12:23:53 +0000 (14:23 +0200)]
Link with https instead of http

The old link caused a mixed content warning on crates.io. This should be fixed now.

6 years agoSatisfy dogfood
Oliver Schneider [Fri, 4 May 2018 10:59:45 +0000 (12:59 +0200)]
Satisfy dogfood

6 years agoUpdate inline_fn_without_body.rs
Oliver Schneider [Fri, 4 May 2018 08:17:30 +0000 (10:17 +0200)]
Update inline_fn_without_body.rs

6 years agoFixed build for latest nightly (again)
Alexander Regueiro [Thu, 3 May 2018 22:28:02 +0000 (23:28 +0100)]
Fixed build for latest nightly (again)

6 years agoRustup field -> method transition of ..=
Oliver Schneider [Thu, 3 May 2018 13:52:44 +0000 (15:52 +0200)]
Rustup field -> method transition of ..=

6 years agoremove unused crate import
Oliver Schneider [Thu, 3 May 2018 08:56:02 +0000 (10:56 +0200)]
remove unused crate import

6 years agoMerge pull request #2714 from imp/2709_simplify_some_internal_code
Oliver Schneider [Tue, 1 May 2018 20:14:42 +0000 (22:14 +0200)]
Merge pull request #2714 from imp/2709_simplify_some_internal_code

Simplify some internal code

6 years agoMerge pull request #2711 from phansch/fix_2707
Oliver Schneider [Tue, 1 May 2018 19:28:48 +0000 (21:28 +0200)]
Merge pull request #2711 from phansch/fix_2707

Prevent crash when macro was in different file

6 years agoSimplify some internal code
Cyril Plisko [Tue, 1 May 2018 17:33:32 +0000 (20:33 +0300)]
Simplify some internal code

Addresses #2709

6 years agoPrevent crash when macro is in different file
Philipp Hansch [Tue, 1 May 2018 13:01:28 +0000 (15:01 +0200)]
Prevent crash when macro is in different file

This was caused by a macro in a different file.
The `target.span` was be in the file of the macro definition and the
`item.span` in the file of the calling code.

6 years agoFixed build for latest nightly
Alexander Regueiro [Tue, 1 May 2018 16:10:25 +0000 (17:10 +0100)]
Fixed build for latest nightly

6 years agoMerge pull request #2672 from ysimonson/multiple-crate-versions
Oliver Schneider [Tue, 1 May 2018 14:48:53 +0000 (16:48 +0200)]
Merge pull request #2672 from ysimonson/multiple-crate-versions

Lint for multiple versions of dependencies

6 years agoMerge pull request #2701 from nathan/patch-1
Oliver Schneider [Tue, 1 May 2018 14:47:53 +0000 (16:47 +0200)]
Merge pull request #2701 from nathan/patch-1

Add third variant to {pub_,}enum_variant_names examples

6 years agoLint for multiple versions of dependencies
Yusuf Simonson [Sun, 29 Apr 2018 23:20:39 +0000 (06:20 +0700)]
Lint for multiple versions of dependencies

6 years agoMerge pull request #2703 from phansch/rustup20180427
Oliver Schneider [Sat, 28 Apr 2018 11:10:59 +0000 (13:10 +0200)]
Merge pull request #2703 from phansch/rustup20180427

Rustup to latest nightly

6 years agoRustup to latest nightly
Philipp Hansch [Sat, 28 Apr 2018 10:56:31 +0000 (12:56 +0200)]
Rustup to latest nightly

Due to https://github.com/rust-lang/rust/pull/48995 and
https://github.com/rust-lang/rust/pull/49894

6 years agoAdd third variant to {pub_,}enum_variant_names examples
Nathan [Fri, 27 Apr 2018 22:45:14 +0000 (18:45 -0400)]
Add third variant to {pub_,}enum_variant_names examples

The default value for `enum-variant-name-threshold` is 3, so the old examples (which only have two enum variants) don't actually trigger the lint by default.

6 years agoMerge pull request #2696 from nathan/patch-1
Oliver Schneider [Fri, 27 Apr 2018 21:43:57 +0000 (23:43 +0200)]
Merge pull request #2696 from nathan/patch-1

Fix rustfmt-induced missing line comments in examples

6 years agoMerge pull request #2697 from phansch/add_contributing_toc
Oliver Schneider [Fri, 27 Apr 2018 21:38:29 +0000 (23:38 +0200)]
Merge pull request #2697 from phansch/add_contributing_toc

Add TOC to contribution instructions

6 years agoAdd TOC to contribution instructions
Philipp Hansch [Fri, 27 Apr 2018 06:52:16 +0000 (08:52 +0200)]
Add TOC to contribution instructions

Also changed some headings and re-ordered the paragraphs in the testing
guide.

(I used [vim-markdown-toc](https://github.com/mzlogin/vim-markdown-toc) to
generate it automatically.)

6 years agoMerge pull request #2699 from mati865/rustup
Oliver Schneider [Fri, 27 Apr 2018 20:09:52 +0000 (22:09 +0200)]
Merge pull request #2699 from mati865/rustup

rustup

6 years agorustup
Mateusz Mikuła [Fri, 27 Apr 2018 12:00:43 +0000 (14:00 +0200)]
rustup

6 years agoRemove extraneous `'s in {wrong,crosspointer}_transmute examples
Nathan [Fri, 27 Apr 2018 06:43:16 +0000 (02:43 -0400)]
Remove extraneous `'s in {wrong,crosspointer}_transmute examples

6 years agoFix missing line comments in {drop,forget}_copy examples
Nathan [Fri, 27 Apr 2018 06:40:19 +0000 (02:40 -0400)]
Fix missing line comments in {drop,forget}_copy examples

6 years agoFix missing line comment in drop_ref example
Nathan [Fri, 27 Apr 2018 06:39:14 +0000 (02:39 -0400)]
Fix missing line comment in drop_ref example

6 years agoFix missing line comment in crosspointer_transmute example
Nathan [Fri, 27 Apr 2018 06:37:40 +0000 (02:37 -0400)]
Fix missing line comment in crosspointer_transmute example

6 years agoFix missing line comment in doc_markdown example
Nathan [Fri, 27 Apr 2018 06:31:36 +0000 (02:31 -0400)]
Fix missing line comment in doc_markdown example

rustfmt [wrapped the line](https://github.com/rust-lang-nursery/rust-clippy/commit/b25b6b3355efa33c797f4a37afb2f516531ad581#diff-561823671726302d969756ded53a13a7L22), so we need a second `///`

6 years agoMerge pull request #2673 from estk/excessive_precision
Oliver Schneider [Wed, 25 Apr 2018 16:37:42 +0000 (18:37 +0200)]
Merge pull request #2673 from estk/excessive_precision

Excessive precision

6 years agoMerge pull request #2679 from devonhollowood/cast-alignment-cvoid
Oliver Schneider [Wed, 25 Apr 2018 07:32:31 +0000 (09:32 +0200)]
Merge pull request #2679 from devonhollowood/cast-alignment-cvoid

Make cast_ptr_alignment ignore c_void

6 years agoMerge pull request #2687 from phansch/explain_how_lints_work
Oliver Schneider [Wed, 25 Apr 2018 07:32:06 +0000 (09:32 +0200)]
Merge pull request #2687 from phansch/explain_how_lints_work

Explain how Clippy and lints work

6 years agoNew excessive precision lint for floats
Evan Simmons [Fri, 13 Apr 2018 00:42:57 +0000 (17:42 -0700)]
New excessive precision lint for floats

6 years agoMention util/update_lints.py
Philipp Hansch [Tue, 24 Apr 2018 19:04:43 +0000 (21:04 +0200)]
Mention util/update_lints.py

6 years agoMake cast_ptr_alignment ignore c_void
Devon Hollowood [Wed, 18 Apr 2018 00:13:19 +0000 (17:13 -0700)]
Make cast_ptr_alignment ignore c_void

6 years agoMerge pull request #2684 from 17cupsofcoffee/infallible-destructuring-match
Oliver Schneider [Tue, 24 Apr 2018 17:08:27 +0000 (19:08 +0200)]
Merge pull request #2684 from 17cupsofcoffee/infallible-destructuring-match

Lint for destructuring tuple structs/variants with an infallible single-armed match

6 years agoImplement lint for destructuring tuple structs with a let and a match (closes #2671)
Joe Clay [Thu, 19 Apr 2018 19:34:31 +0000 (20:34 +0100)]
Implement lint for destructuring tuple structs with a let and a match (closes #2671)

6 years agoMerge pull request #2694 from humanenginuity/master
Oliver Schneider [Tue, 24 Apr 2018 08:00:15 +0000 (10:00 +0200)]
Merge pull request #2694 from humanenginuity/master

Fix for https://github.com/rust-lang-nursery/rust-clippy/issues/2693

6 years agoMerge pull request #1 from humanenginuity/fix-strictly-aligned-types-cast-messages
Brad Gibson [Mon, 23 Apr 2018 18:03:27 +0000 (11:03 -0700)]
Merge pull request #1 from humanenginuity/fix-strictly-aligned-types-cast-messages

Corrected messaging to warn against less- to more-strictly aligned

6 years agoCorrected messaging to warn against less- to more-strictly align types, rather than...
Brad Gibson [Mon, 23 Apr 2018 17:59:53 +0000 (10:59 -0700)]
Corrected messaging to warn against less- to more-strictly align types, rather than the other way around.  No logic changes required.

6 years agoMerge pull request #2690 from mrecachinas/feature/print-string-literal
Oliver Schneider [Mon, 23 Apr 2018 08:36:48 +0000 (10:36 +0200)]
Merge pull request #2690 from mrecachinas/feature/print-string-literal

Fix alignment/precision/width false positives for print/write_literal

6 years agoUpdate stderrs for print and write_literal
Michael Recachinas [Sat, 21 Apr 2018 18:50:49 +0000 (19:50 +0100)]
Update stderrs for print and write_literal

6 years agoAdd smaller check_unformatted to write.rs and fix precision,width,align false positive
Michael Recachinas [Sat, 21 Apr 2018 18:24:55 +0000 (19:24 +0100)]
Add smaller check_unformatted to write.rs and fix precision,width,align false positive

6 years agoAdd more tests to print_ and write_literal
Michael Recachinas [Sat, 21 Apr 2018 18:23:59 +0000 (19:23 +0100)]
Add more tests to print_ and write_literal

Also, move precision, width, and debug fmt tests to 'should pass'

6 years agoExplain how Clippy works
Philipp Hansch [Sat, 21 Apr 2018 09:42:28 +0000 (11:42 +0200)]
Explain how Clippy works

6 years agoVersion bump
Oliver Schneider [Thu, 19 Apr 2018 06:30:07 +0000 (08:30 +0200)]
Version bump

6 years agoMerge pull request #2681 from phansch/fix_latest_nightly_breakage
Oliver Schneider [Thu, 19 Apr 2018 06:28:10 +0000 (08:28 +0200)]
Merge pull request #2681 from phansch/fix_latest_nightly_breakage

Fix latest nightly breakage

6 years agoMerge pull request #2683 from rust-lang-nursery/rustup
Oliver Schneider [Thu, 19 Apr 2018 04:46:41 +0000 (06:46 +0200)]
Merge pull request #2683 from rust-lang-nursery/rustup

Rustup

6 years agoFix latest nightly breakage
Philipp Hansch [Wed, 18 Apr 2018 18:25:43 +0000 (20:25 +0200)]
Fix latest nightly breakage

I'm not sure if there are better ways to use the RwLock API, though. But
it seems to work.

6 years agoMerge pull request #2675 from phansch/mention_irc_in_contributing_md
Philipp Hansch [Tue, 17 Apr 2018 20:26:01 +0000 (22:26 +0200)]
Merge pull request #2675 from phansch/mention_irc_in_contributing_md

Add intro and mention IRC in CONTRIBUTING.md

6 years agoRustup
Oliver Schneider [Tue, 17 Apr 2018 08:52:25 +0000 (10:52 +0200)]
Rustup

6 years agoAdd intro and mention IRC in CONTRIBUTING.md
Philipp Hansch [Tue, 17 Apr 2018 06:33:22 +0000 (08:33 +0200)]
Add intro and mention IRC in CONTRIBUTING.md

This is partly taken from the [rustfmt CONTRIBUTING.md][contrib].

[contrib]: https://github.com/rust-lang-nursery/rustfmt/blob/master/Contributing.md

6 years agoMerge pull request #1467 from philipturnbull/option_map_nil_fn
Oliver Schneider [Sun, 15 Apr 2018 14:14:25 +0000 (16:14 +0200)]
Merge pull request #1467 from philipturnbull/option_map_nil_fn

Lint `Option.map(f)` where f returns unit

6 years agoRefactor out enum and address nits
Philipp Hansch [Sun, 15 Apr 2018 13:37:11 +0000 (15:37 +0200)]
Refactor out enum and address nits

6 years agoVersion bump
Oliver Schneider [Sun, 15 Apr 2018 13:01:48 +0000 (15:01 +0200)]
Version bump

6 years agoMerge pull request #2650 from thekidxp/fixEmptyPrintln
Oliver Schneider [Sun, 15 Apr 2018 12:30:45 +0000 (14:30 +0200)]
Merge pull request #2650 from thekidxp/fixEmptyPrintln

fixEmptyPrintln

6 years agofixing error message for empty println macro
MSI\Stew's Laptop [Mon, 9 Apr 2018 04:07:47 +0000 (00:07 -0400)]
fixing error message for empty println macro

6 years agoAlso lint Result.map for unit returns
Philipp Hansch [Sun, 15 Apr 2018 11:00:12 +0000 (13:00 +0200)]
Also lint Result.map for unit returns

6 years agoRename option_map_unit_fn to map_unit_fn
Philipp Hansch [Sun, 15 Apr 2018 10:30:38 +0000 (12:30 +0200)]
Rename option_map_unit_fn to map_unit_fn

6 years agoGenerate let binding variable name for some cases
Philipp Hansch [Sun, 15 Apr 2018 09:37:35 +0000 (11:37 +0200)]
Generate let binding variable name for some cases

Given a map call like `x.field.map ...` the suggestion will contain:
`if let Some(x_field) ...`

Given a map call like `x.map ...` the suggestion will contain:
`if let Some(_x) ...`

Otherwise it will suggest: `if let Some(_) ...`

6 years agoUse approximate_suggestion for non-reducible closures
Philipp Hansch [Sun, 15 Apr 2018 09:35:20 +0000 (11:35 +0200)]
Use approximate_suggestion for non-reducible closures

6 years agoRemove further semicolon reduction
Philipp Hansch [Tue, 10 Apr 2018 20:13:58 +0000 (22:13 +0200)]
Remove further semicolon reduction

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