]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoAdd `rustfmt::skip` to `double_parens` tests
Michael Wright [Thu, 28 Feb 2019 06:02:45 +0000 (08:02 +0200)]
Add `rustfmt::skip` to `double_parens` tests

5 years agoAuto merge of #3666 - detrumi:map-or-on-non-copy, r=flip1995
bors [Wed, 27 Feb 2019 08:28:48 +0000 (08:28 +0000)]
Auto merge of #3666 - detrumi:map-or-on-non-copy, r=flip1995

Only suggest map_or for copy types

Fixes #2686

5 years agoAuto merge of #3826 - mikerite:rustfmt-outer-attr-tests, r=phansch
bors [Wed, 27 Feb 2019 06:49:09 +0000 (06:49 +0000)]
Auto merge of #3826 - mikerite:rustfmt-outer-attr-tests, r=phansch

Add `rustfmt::skip` to outer attr format tests

5 years agoAuto merge of #3827 - phansch:rustup, r=Manishearth
bors [Wed, 27 Feb 2019 06:28:08 +0000 (06:28 +0000)]
Auto merge of #3827 - phansch:rustup, r=Manishearth

Rustup rust-lang/rust#58321

Fixes the build after https://github.com/rust-lang/rust/issues/58321

5 years agoRustup https://github.com/rust-lang/rust/pull/58321
Philipp Hansch [Wed, 27 Feb 2019 06:20:49 +0000 (07:20 +0100)]
Rustup https://github.com/rust-lang/rust/pull/58321

5 years agoAdd `rustfmt::skip` to outer attr format tests
Michael Wright [Wed, 27 Feb 2019 05:41:07 +0000 (07:41 +0200)]
Add `rustfmt::skip` to outer attr format tests

5 years agoAuto merge of #3821 - g-bartoszek:redundant_closure-different-borrow-levels, r=oli-obk
bors [Tue, 26 Feb 2019 17:30:48 +0000 (17:30 +0000)]
Auto merge of #3821 - g-bartoszek:redundant_closure-different-borrow-levels, r=oli-obk

do not trigger redundant_closure when there is a difference in borrow…

… level between closure parameter and "self", fixes  #3802

5 years agoAuto merge of #3818 - phansch:update_changelog, r=oli-obk
bors [Tue, 26 Feb 2019 16:40:12 +0000 (16:40 +0000)]
Auto merge of #3818 - phansch:update_changelog, r=oli-obk

Update changelog for Rust 1.33

None

5 years agoFix false negative
Wilco Kusee [Tue, 5 Feb 2019 15:59:23 +0000 (16:59 +0100)]
Fix false negative

5 years agoAttempt to fix false negative
Wilco Kusee [Mon, 21 Jan 2019 17:29:35 +0000 (18:29 +0100)]
Attempt to fix false negative

5 years agoMove lint_map_unwrap_or to its own file
Wilco Kusee [Sat, 19 Jan 2019 11:53:21 +0000 (12:53 +0100)]
Move lint_map_unwrap_or to its own file

5 years agoOnly suggest map_or for copy types
Wilco Kusee [Wed, 16 Jan 2019 15:55:53 +0000 (16:55 +0100)]
Only suggest map_or for copy types

5 years agoAuto merge of #3817 - rust-lang:fix-bool_comparison-on-non-bool, r=oli-obk
bors [Tue, 26 Feb 2019 15:51:40 +0000 (15:51 +0000)]
Auto merge of #3817 - rust-lang:fix-bool_comparison-on-non-bool, r=oli-obk

Fix `bool_comparison` with non-`bool` expressions

Fixes #3703.
It just moves around the type check that was already there for some comparison to all of them, because if one type isn't `bool`, none of those comparison can be simplified.

5 years agodo not trigger redundant_closure when there is a difference in borrow level between...
Grzegorz [Tue, 26 Feb 2019 11:12:27 +0000 (12:12 +0100)]
do not trigger redundant_closure when there is a difference in borrow level between closure parameter and "self"

5 years agoAuto merge of #3814 - ljedrz:HirIdification_lockstep_upgrade, r=phansch
bors [Tue, 26 Feb 2019 10:43:50 +0000 (10:43 +0000)]
Auto merge of #3814 - ljedrz:HirIdification_lockstep_upgrade, r=phansch

HirIdify some lints

Unblocks https://github.com/rust-lang/rust/pull/58561 (a part of [rust-lang/rust#57578](https://github.com/rust-lang/rust/pull/57578)). Can we branch it like with https://github.com/rust-lang/rust-clippy/pull/3790? I can rebase on a different commit if need be.

Haven't had time to run tests yet, so I'd wait for Travis 🙈.

5 years agofix line format
ljedrz [Tue, 26 Feb 2019 10:21:07 +0000 (11:21 +0100)]
fix line format

5 years agoAuto merge of #3819 - mikerite:rustfmt-formatting-tests, r=phansch
bors [Tue, 26 Feb 2019 07:21:01 +0000 (07:21 +0000)]
Auto merge of #3819 - mikerite:rustfmt-formatting-tests, r=phansch

Add [rustfmt::skip] to formatting lint tests

5 years agoAuto merge of #3820 - mikerite:remove-feature-try-from, r=Manishearth
bors [Tue, 26 Feb 2019 06:52:34 +0000 (06:52 +0000)]
Auto merge of #3820 - mikerite:remove-feature-try-from, r=Manishearth

Remove `#[feature(try_from)]`

`try_from` is now stable.

5 years agoRemove `#[feature(try_from)]`
Michael Wright [Tue, 26 Feb 2019 06:43:47 +0000 (08:43 +0200)]
Remove `#[feature(try_from)]`

`try_from` is now stable.

5 years agoAdd [rustfmt::skip] to formatting lint tests
Michael Wright [Tue, 26 Feb 2019 05:49:46 +0000 (07:49 +0200)]
Add [rustfmt::skip] to formatting lint tests

5 years agoUpdate changelog for Rust 1.33
Philipp Hansch [Mon, 25 Feb 2019 21:53:02 +0000 (22:53 +0100)]
Update changelog for Rust 1.33

5 years agoFix `bool_comparison` with non-`bool` expressions
mcarton [Mon, 25 Feb 2019 20:48:20 +0000 (21:48 +0100)]
Fix `bool_comparison` with non-`bool` expressions

5 years agoAuto merge of #3808 - mikerite:useless-format-suggestions, r=oli-obk
bors [Mon, 25 Feb 2019 16:21:26 +0000 (16:21 +0000)]
Auto merge of #3808 - mikerite:useless-format-suggestions, r=oli-obk

Fix `useless_format` suggestions

5 years agoAuto merge of #3816 - g-bartoszek:redundant_closure_for_macros, r=Manishearth
bors [Mon, 25 Feb 2019 13:46:31 +0000 (13:46 +0000)]
Auto merge of #3816 - g-bartoszek:redundant_closure_for_macros, r=Manishearth

do not trigger redundant_closure for external macros

fixes #3791

5 years agoredundant_closure does not trigger for external macros
Grzegorz [Mon, 25 Feb 2019 12:40:28 +0000 (13:40 +0100)]
redundant_closure does not trigger for external macros

5 years agoAuto merge of #3772 - flip1995:ice-3719, r=Manishearth
bors [Mon, 25 Feb 2019 12:30:35 +0000 (12:30 +0000)]
Auto merge of #3772 - flip1995:ice-3719, r=Manishearth

Fix ICE #3719+#3718 in lint match_ref_pats

Fixes #3719
This conveniently also fixes #3718

The ICE occurs when the match expression was a macro call, where the macro was defined in another file. Since we don't have the ability to reproduce this behavior with our UI tests (AFAIK), I couldn't add a test reproducing this ICE.. However, I added a test which is related to the ICE, to show the new behavior of the lint.

I tested it with the mscheme repo locally and the ICE didn't happen anymore.

r? @matthiaskrgr

5 years agoAuto merge of #3805 - martinsp:ice-3747, r=Manishearth
bors [Mon, 25 Feb 2019 12:08:43 +0000 (12:08 +0000)]
Auto merge of #3805 - martinsp:ice-3747, r=Manishearth

Fix ICE #3747

I'm not sure if this was the correct approach.

I don't know if I put tests/ui/crashses/ice-3747.rs in correct place because the test always passed when I ran it with `cargo test`, even without the fix applied.

If I run that test with `env CLIPPY_TESTS=true cargo run --bin clippy-driver -- -L ./target/debug tests/ui/crashes/ice-3747.rs` then the test correctly fails without the fix applied

fixes #3747

5 years agofix: replace wrong id
ljedrz [Mon, 25 Feb 2019 10:06:46 +0000 (11:06 +0100)]
fix: replace wrong id

5 years agoAuto merge of #3815 - phansch:make_private, r=Manishearth
bors [Mon, 25 Feb 2019 06:31:27 +0000 (06:31 +0000)]
Auto merge of #3815 - phansch:make_private, r=Manishearth

Make DiagnosticWrapper private

It's doesn't have to be public anywhere outside of clippy_lints as far as I can tell.

5 years agoMake DiagnosticWrapper private
Philipp Hansch [Mon, 25 Feb 2019 06:14:44 +0000 (07:14 +0100)]
Make DiagnosticWrapper private

It's doesn't have to be public anywhere outside of clippy_lints

5 years agoHirIdify some lints
ljedrz [Sun, 24 Feb 2019 18:43:15 +0000 (19:43 +0100)]
HirIdify some lints

5 years agoAuto merge of #3811 - rust-lang:test-for-2526, r=mcarton
bors [Sun, 24 Feb 2019 17:25:58 +0000 (17:25 +0000)]
Auto merge of #3811 - rust-lang:test-for-2526, r=mcarton

Add a test for #2526

Closes #2526, which seems to have been fixed at some point, but I couldn't find a test for it.

5 years agoAdd a test for #2526
mcarton [Sun, 24 Feb 2019 14:59:58 +0000 (15:59 +0100)]
Add a test for #2526

5 years agoAuto merge of #3810 - phansch:refactor/extract_module, r=flip1995
bors [Sun, 24 Feb 2019 15:35:01 +0000 (15:35 +0000)]
Auto merge of #3810 - phansch:refactor/extract_module, r=flip1995

Extract diagnostics module and document some functions

This moves the lint building functions from `utils/mod.rs` to their own
`utils/diagnostics.rs` file. Also adds documentation for three of them.

5 years agoAuto merge of #3790 - ljedrz:HirIdify_intravisit, r=phansch
bors [Sun, 24 Feb 2019 14:32:55 +0000 (14:32 +0000)]
Auto merge of #3790 - ljedrz:HirIdify_intravisit, r=phansch

partially HirIdify lints

Enables https://github.com/rust-lang/rust/pull/58232 (a part of https://github.com/rust-lang/rust/pull/57578).

5 years agofix formatting
ljedrz [Sun, 24 Feb 2019 14:16:16 +0000 (15:16 +0100)]
fix formatting

5 years agoExtract diagnostics module and document some functions
Philipp Hansch [Sun, 24 Feb 2019 13:11:05 +0000 (14:11 +0100)]
Extract diagnostics module and document some functions

This moves the lint building functions from `utils/mod.rs` to their own
`utils/diagnostics.rs` file. Also adds documentation for three of them.

5 years agoDocument some `span_lint_*` util functions
Philipp Hansch [Sun, 24 Feb 2019 08:49:17 +0000 (09:49 +0100)]
Document some `span_lint_*` util functions

5 years agoFix `useless_format` suggestions
Michael Wright [Sun, 24 Feb 2019 05:30:08 +0000 (07:30 +0200)]
Fix `useless_format` suggestions

5 years agoFix ICE #3747
Martins Polakovs [Sat, 23 Feb 2019 17:29:30 +0000 (19:29 +0200)]
Fix ICE #3747

[Martins Polakovs, John Firebaugh]

5 years agoAuto merge of #3798 - eyko:patch-1, r=flip1995
bors [Sat, 23 Feb 2019 14:50:39 +0000 (14:50 +0000)]
Auto merge of #3798 - eyko:patch-1, r=flip1995

Fix broken link in README

I noticed the link to the lint list had a typo, so this PR is just that:

```diff
- [lint list]](https://rust-lang.github.io/rust-clippy/master/index.html)
+ [lint list](https://rust-lang.github.io/rust-clippy/master/index.html)
```

5 years agoAuto merge of #3801 - Wilfred:patch-1, r=Manishearth
bors [Sat, 23 Feb 2019 00:23:56 +0000 (00:23 +0000)]
Auto merge of #3801 - Wilfred:patch-1, r=Manishearth

Fix broken markdown in README.md

5 years agoFix broken markdown in README.md
Wilfred Hughes [Sat, 23 Feb 2019 00:20:57 +0000 (00:20 +0000)]
Fix broken markdown in README.md

5 years agoFix broken link in README
Vincent Martínez [Fri, 22 Feb 2019 15:17:53 +0000 (15:17 +0000)]
Fix broken link in README

5 years agoAuto merge of #3796 - rust-lang:clarify-readme, r=oli-obk
bors [Fri, 22 Feb 2019 09:18:21 +0000 (09:18 +0000)]
Auto merge of #3796 - rust-lang:clarify-readme, r=oli-obk

Clarify lint groups in readme

I'm explicitly avoiding mention of the deprecated/restriction lint groups, those exist more for testing purposes and are not really something people should be using.

r? @oli-obk @phansch

fixes #2964

5 years agoClarify lint groups in readme
Manish Goregaokar [Fri, 22 Feb 2019 07:56:49 +0000 (13:26 +0530)]
Clarify lint groups in readme

5 years agoAuto merge of #3795 - mikerite:test-rustfmt, r=phansch
bors [Fri, 22 Feb 2019 06:54:25 +0000 (06:54 +0000)]
Auto merge of #3795 - mikerite:test-rustfmt, r=phansch

Allow rustfmt to run on more tests

5 years agorustfmt tests/ui/methods.rs
Michael Wright [Fri, 22 Feb 2019 06:05:21 +0000 (08:05 +0200)]
rustfmt tests/ui/methods.rs

5 years agoAdd `#[rustfmt::skip]` to methods tests
Michael Wright [Fri, 22 Feb 2019 05:49:17 +0000 (07:49 +0200)]
Add `#[rustfmt::skip]` to methods tests

Many people run rustfmt automatically on save. Format-dependent tests
should be marked with `#[rustfmt::skip]` to prevent accidental
reformatting from this. As a bonus the rest of the code can the formatted.

5 years agoAuto merge of #3789 - bzzzzzz:needless_range_loop_bugfix, r=oli-obk
bors [Thu, 21 Feb 2019 09:36:13 +0000 (09:36 +0000)]
Auto merge of #3789 - bzzzzzz:needless_range_loop_bugfix, r=oli-obk

Make needless_range_loop not applicable to structures without iter method

Fixes https://github.com/rust-lang/rust-clippy/issues/3788

Now we will start lint indexed structure only if it has known iter or iter_mut method implemented.

5 years agoFixed formatting and typo
bzzzz [Wed, 20 Feb 2019 18:12:24 +0000 (10:12 -0800)]
Fixed formatting and typo

5 years agoAuto merge of #3781 - uniphil:write_with_newline_false_positive, r=oli-obk
bors [Wed, 20 Feb 2019 16:37:32 +0000 (16:37 +0000)]
Auto merge of #3781 - uniphil:write_with_newline_false_positive, r=oli-obk

Don't check [print/write]_with_newline on raw strings

Some tests for #3778 and some maybe-not-the-greatest code that passes those tests!

I didn't run `fmt` because a) it doesn't seem to install on nightly for me, and b) on stable it wanted to apply formatting to over 90 files. Happy to make any tweaks though!

I suspect this contribution may require more than just tweaks. I'm still sort of new to rust so it may not be idiomatic, and the specific approach I took feels a little heavy-handed and brittle. I'm happy to make changes with some guidance, or equally happy if this gives a starting place for someone else to do it better :)

5 years agopartially HirIdify lints
ljedrz [Wed, 20 Feb 2019 10:11:11 +0000 (11:11 +0100)]
partially HirIdify lints

5 years agoAuto merge of #3779 - mikerite:fix-3704, r=phansch
bors [Wed, 20 Feb 2019 09:21:18 +0000 (09:21 +0000)]
Auto merge of #3779 - mikerite:fix-3704, r=phansch

Improve `iter_cloned_collect` suggestions

Fixes #3704

5 years agoMake needless_range_loop not applicable to structures without iter method
bzzzz [Wed, 20 Feb 2019 08:10:25 +0000 (00:10 -0800)]
Make needless_range_loop not applicable to structures without iter method

5 years agoFormat again
Michael Wright [Wed, 20 Feb 2019 04:06:00 +0000 (06:06 +0200)]
Format again

5 years agoDocument the new `Sugg` functions
flip1995 [Sat, 16 Feb 2019 21:52:20 +0000 (22:52 +0100)]
Document the new `Sugg` functions

5 years agoAdd test related to the ICE
flip1995 [Sat, 16 Feb 2019 18:37:58 +0000 (19:37 +0100)]
Add test related to the ICE

This test doesn't reproduce the ICE since it only happens, when the macro is defined in another file.
Currently we can't add tests with multiple files AFAIK

Also using the auxiliary folder didn't help

5 years agoFix ice-3719
flip1995 [Sat, 16 Feb 2019 18:35:15 +0000 (19:35 +0100)]
Fix ice-3719

5 years agoImplement Sugg::hir_with_macro_callsite
flip1995 [Sat, 16 Feb 2019 18:34:51 +0000 (19:34 +0100)]
Implement Sugg::hir_with_macro_callsite

5 years agoAuto merge of #3776 - notriddle:drop-bounds, r=oli-obk
bors [Tue, 19 Feb 2019 09:46:29 +0000 (09:46 +0000)]
Auto merge of #3776 - notriddle:drop-bounds, r=oli-obk

Add a lint to warn on `T: Drop` bounds

**What it does:** Checks for generics with `std::ops::Drop` as bounds.

**Why is this bad?** `Drop` bounds do not really accomplish anything.
A type may have compiler-generated drop glue without implementing the
`Drop` trait itself. The `Drop` trait also only has one method,
`Drop::drop`, and that function is by fiat not callable in user code.
So there is really no use case for using `Drop` in trait bounds.

**Known problems:** None.

**Example:**
```rust
fn foo<T: Drop>() {}
```

Fixes #3773

5 years agoAuto merge of #3786 - rust-lang:rustup, r=Manishearth
bors [Tue, 19 Feb 2019 07:35:44 +0000 (07:35 +0000)]
Auto merge of #3786 - rust-lang:rustup, r=Manishearth

Rustup to rustc master (32471f7ea 2019-02-19)

None

5 years agoRustup to rustc 1.34.0-nightly (32471f7ea 2019-02-19)
Manish Goregaokar [Tue, 19 Feb 2019 07:34:43 +0000 (13:04 +0530)]
Rustup to rustc 1.34.0-nightly (32471f7ea 2019-02-19)

5 years agoFormat again
Michael Wright [Tue, 19 Feb 2019 04:39:22 +0000 (06:39 +0200)]
Format again

5 years agoAdd more descriptive details
Michael Howell [Tue, 19 Feb 2019 02:37:08 +0000 (19:37 -0700)]
Add more descriptive details

5 years agoFix formatting
Michael Howell [Tue, 19 Feb 2019 02:36:58 +0000 (19:36 -0700)]
Fix formatting

5 years agoCheck {print,write}_with_newline for literal newline
phil [Mon, 18 Feb 2019 16:39:23 +0000 (11:39 -0500)]
Check {print,write}_with_newline for literal newline

Both regular strings and raw strings can contain literal newlines. This commit
extends the lint to also warn about terminating strings with these.

Behaviour handling for raw strings is also moved into `check_newlines` by
passing in the `is_raw` boolean from `check_tts` as
[suggested](https://github.com/rust-lang/rust-clippy/pull/3781#pullrequestreview-204663732)

5 years agoAuto merge of #3729 - illicitonion:match_enum_wildcard, r=flip1995
bors [Mon, 18 Feb 2019 23:59:32 +0000 (23:59 +0000)]
Auto merge of #3729 - illicitonion:match_enum_wildcard, r=flip1995

wildcard_enum_match_arm gives suggestions

And is also more robust

5 years agoFix Binding for rustc update
Daniel Wagner-Hall [Mon, 18 Feb 2019 23:16:53 +0000 (23:16 +0000)]
Fix Binding for rustc update

5 years agoRestore tests
Daniel Wagner-Hall [Mon, 18 Feb 2019 22:55:16 +0000 (22:55 +0000)]
Restore tests

Also, fix existing test

5 years agowildcard_enum_match_arm gives suggestions
Daniel Wagner-Hall [Thu, 31 Jan 2019 22:01:23 +0000 (22:01 +0000)]
wildcard_enum_match_arm gives suggestions

And is also more robust

5 years agoAuto merge of #3783 - Enet4:patch-1, r=Manishearth
bors [Mon, 18 Feb 2019 20:05:54 +0000 (20:05 +0000)]
Auto merge of #3783 - Enet4:patch-1, r=Manishearth

Update why transmute_int_to_float is bad

As suggested in #3550, this PR changes the reason why using `transmute` from an integer to a float is not recommended. Effectively, `from_bits` uses `transmute` underneath, but the former is preferred.

5 years agoDon't fail for raw string ending in \n
phil [Mon, 18 Feb 2019 05:53:30 +0000 (00:53 -0500)]
Don't fail for raw string ending in \n

Pass tests for #3778, {print,write}_with_newline false positive

This change guards the lint from checking newlines with a sort of complicated
check to see if it's a raw string. Raw strings shouldn't be newline-checked,
since r"\n" is literally \-n, not a newline. I think it's ok not to check for
_literal_ newlines at the end of raw strings, but maybe that's debatable.

I... don't think this code is that great. I wanted to write the check after
`check_tts`, but that was too late -- raw string type info is lost (or I
couldn't find it). Putting it inside `check_tts` feels heavy-duty and the check
itself feels like a brittle reach possibly into places it shouldn't.

Maybe someone can fix this up :)

5 years agoAdd failing test for #3778 write_with_newline
phil [Mon, 18 Feb 2019 03:32:58 +0000 (22:32 -0500)]
Add failing test for #3778 write_with_newline

Literal `\n` characters (not a newline) in a `r"raw"` string should not
fail the lint.

This affects both write_with_newline and print_with_newline, so it is added in
both places.

I also copied a missing test case from write_with_newline over to
print_with_newline and added a note that one of those tests is supposed to
fail.

5 years agoFormat `transmute_from_int_to_float` docs
Eduardo Pinho [Mon, 18 Feb 2019 15:09:34 +0000 (15:09 +0000)]
Format `transmute_from_int_to_float` docs

5 years agoUpdate why transmute_int_to_float is bad
Eduardo Pinho [Mon, 18 Feb 2019 14:14:54 +0000 (14:14 +0000)]
Update why transmute_int_to_float is bad

Fix #3550

5 years agoAuto merge of #3777 - timotree3:patch-1, r=Manishearth
bors [Mon, 18 Feb 2019 11:40:29 +0000 (11:40 +0000)]
Auto merge of #3777 - timotree3:patch-1, r=Manishearth

Fix typo in documentation for float_cmp_const lint

5 years agoFormat
Michael Wright [Mon, 18 Feb 2019 06:32:53 +0000 (08:32 +0200)]
Format

5 years agoUpdate README and CHANGELOG
Michael Howell [Sun, 17 Feb 2019 20:32:24 +0000 (13:32 -0700)]
Update README and CHANGELOG

5 years agoAdd a lint to warn on `T: Drop` bounds
Michael Howell [Sun, 17 Feb 2019 04:28:16 +0000 (21:28 -0700)]
Add a lint to warn on `T: Drop` bounds

**What it does:** Checks for generics with `std::ops::Drop` as bounds.

**Why is this bad?** `Drop` bounds do not really accomplish anything.
A type may have compiler-generated drop glue without implementing the
`Drop` trait itself. The `Drop` trait also only has one method,
`Drop::drop`, and that function is by fiat not callable in user code.
So there is really no use case for using `Drop` in trait bounds.

**Known problems:** None.

**Example:**
```rust
fn foo<T: Drop>() {}
```

5 years agoImprove `iter_cloned_collect` suggestions
Michael Wright [Mon, 18 Feb 2019 05:30:50 +0000 (07:30 +0200)]
Improve `iter_cloned_collect` suggestions

Fixes #3704

5 years agoAdd failing test for #3778 write_with_newline
phil [Mon, 18 Feb 2019 03:32:58 +0000 (22:32 -0500)]
Add failing test for #3778 write_with_newline

Literal `\n` characters (not a newline) in a `r"raw"` string should not
fail the lint.

5 years agoAdd a semicolon as suggested
Timo [Mon, 18 Feb 2019 03:14:38 +0000 (22:14 -0500)]
Add a semicolon as suggested

5 years agoFix typo in documentation for float_cmp_const lint
Timo [Mon, 18 Feb 2019 02:06:29 +0000 (21:06 -0500)]
Fix typo in documentation for float_cmp_const lint

5 years agoAuto merge of #3775 - flip1995:ice-3717, r=phansch
bors [Sun, 17 Feb 2019 07:03:15 +0000 (07:03 +0000)]
Auto merge of #3775 - flip1995:ice-3717, r=phansch

Fix ICE #3717 in lint implicit_hasher

Fixes #3717

This fixes the ICE. We lose some information in a very specific case though. But less information if better than an ICE. For an example see the test file.

Does anyone know, if there's another way to get the `ty::Ty` of a `hir::Expr`?

5 years agoAdd test for ICE #3717 fix
flip1995 [Sat, 16 Feb 2019 21:41:06 +0000 (22:41 +0100)]
Add test for ICE #3717 fix

5 years agoFix ICE #3717
flip1995 [Sat, 16 Feb 2019 21:40:44 +0000 (22:40 +0100)]
Fix ICE #3717

Restore the old `TypeckTables` in visit_body after walking the body

5 years agoAuto merge of #3774 - notriddle:patch-1, r=flip1995
bors [Sat, 16 Feb 2019 22:01:48 +0000 (22:01 +0000)]
Auto merge of #3774 - notriddle:patch-1, r=flip1995

Use normal HTML label semantics for filter

The improvement is that you can click on the label and it'll select the form field.

5 years agoUse normal HTML label semantics for filter
Michael Howell [Sat, 16 Feb 2019 20:16:50 +0000 (13:16 -0700)]
Use normal HTML label semantics for filter

I legitimately don't understand why you did it with ARIA instead.

5 years agoAuto merge of #3762 - mikerite:fix-build-20190214, r=flip1995
bors [Thu, 14 Feb 2019 13:17:48 +0000 (13:17 +0000)]
Auto merge of #3762 - mikerite:fix-build-20190214, r=flip1995

Fix breakage due to rust-lang/rust#58167

5 years agoFix breakage from rust-lang/rust#58296
flip1995 [Thu, 14 Feb 2019 13:01:43 +0000 (14:01 +0100)]
Fix breakage from rust-lang/rust#58296

5 years agoFix breakage due to rust-lang/rust#58167
Michael Wright [Thu, 14 Feb 2019 06:55:50 +0000 (08:55 +0200)]
Fix breakage due to rust-lang/rust#58167

5 years agoAuto merge of #3760 - rust-lang:rustup, r=flip1995
bors [Wed, 13 Feb 2019 21:10:06 +0000 (21:10 +0000)]
Auto merge of #3760 - rust-lang:rustup, r=flip1995

Rustup

cc rust-lang/rust#58137

5 years agoRustup
flip1995 [Wed, 13 Feb 2019 21:06:19 +0000 (22:06 +0100)]
Rustup

cc rust-lang/rust#58137

5 years agoAuto merge of #3756 - g-bartoszek:redundant-closure-for-methods, r=oli-obk
bors [Tue, 12 Feb 2019 13:31:44 +0000 (13:31 +0000)]
Auto merge of #3756 - g-bartoszek:redundant-closure-for-methods, r=oli-obk

Redundant closure for methods

fixes  #3469

5 years agoAuto merge of #3757 - mikerite:fix-2542, r=oli-obk
bors [Tue, 12 Feb 2019 10:27:18 +0000 (10:27 +0000)]
Auto merge of #3757 - mikerite:fix-2542, r=oli-obk

Fix `needless_range_loop` bad suggestion

Detect if the index variable is used inside a closure.

Fixes #2542

5 years agoAuto merge of #3758 - phansch:document_macro, r=flip1995
bors [Mon, 11 Feb 2019 23:52:52 +0000 (23:52 +0000)]
Auto merge of #3758 - phansch:document_macro, r=flip1995

Document `declare_clippy_lint` macro

Split up from my work on updating CONTRIBUTING.md, which is slowly
making progress.

cc #2666

5 years agoUpdate comment regarding crate level cfg_attr
Philipp Hansch [Mon, 11 Feb 2019 21:32:54 +0000 (22:32 +0100)]
Update comment regarding crate level cfg_attr

5 years agoDocument some more core functions
Philipp Hansch [Mon, 11 Feb 2019 06:59:57 +0000 (07:59 +0100)]
Document some more core functions

5 years agoDocument `declare_clippy_lint` macro
Philipp Hansch [Mon, 11 Feb 2019 06:35:28 +0000 (07:35 +0100)]
Document `declare_clippy_lint` macro

Split up from my work on updating CONTRIBUTING.md, which is slowly
making progress.

cc #2666