bors
9217ef2018
Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis
...
Clean up type alias impl trait implementation
- Removes special case for top-level impl trait
- Removes associated opaque types
- Forbid lifetime elision in let position impl trait. This is consistent with the behavior for inferred types.
- Handle lifetimes in type alias impl trait more uniformly with other parameters
cc #69323
cc #63063
Closes #57188
Closes #62988
Closes #69136
Closes #73061
2020-06-15 04:10:24 +00:00
Iain Brandram-Adams
454ed47acf
Update comment in conf.rs
2020-06-14 12:46:56 +12:00
Iain Brandram-Adams
f663a21c8f
Remove bar
from blacklisted names
2020-06-14 01:24:36 +12:00
Matthew Jasper
af9b09235c
Remove ImplItemKind::OpaqueTy from clippy
2020-06-11 16:24:01 +01:00
Matthew Jasper
857ea16feb
Remove associated opaque types
...
They're unused now.
2020-06-11 16:24:01 +01:00
Aaron Hill
e2e2a0fa83
Clippy fixes
2020-06-10 17:30:12 -04:00
Aaron Hill
6b3ee8f600
Update Clippy for MethodCall changes
2020-06-10 17:30:11 -04:00
Eduardo Broto
2f74283fce
Add a comment linking to the issue
2020-06-10 00:14:02 +02:00
Eduardo Broto
a083b84b78
if_same_then_else: don't assume multiplication is always commutative
2020-06-09 23:49:21 +02:00
Lzu Tao
8db24840f7
Merge commit 'ff0993c5e9162ddaea78e83d0f0161e68bd4ea73' into clippy
2020-06-09 14:36:01 +00:00
bors
f947644f0d
Auto merge of #5680 - ebroto:3792_let_return, r=Manishearth
...
let_and_return: avoid "does not live long enough" errors
EDIT: Add #3324 to the list of fixes
<details>
<summary>Description of old impl</summary>
<br>
Avoid suggesting turning the RHS expression of the last statement into the block tail expression if a temporary borrows from a local that would be destroyed before.
This is my first incursion into MIR so there's probably room for improvement!
</details>
Avoid linting if the return type of some method or function called in the last statement has a lifetime parameter.
changelog: Fix false positive in [`let_and_return`]
Fixes #3792
Fixes #3324
2020-06-08 16:47:22 +00:00
flip1995
a9ca832b11
Fix rebase fallout
2020-06-07 21:37:55 +02:00
Mazdak Farrokhzad
78f158e80e
dogfood unnested_or_patterns
2020-06-07 21:16:03 +02:00
Mazdak Farrokhzad
7b6dc7b33d
add unnested_or_patterns
lint
2020-06-07 21:09:47 +02:00
Eduardo Broto
dac8a3c1ca
let_and_return: do not lint if last statement borrows
2020-06-07 20:53:38 +02:00
flip1995
1a8a69d012
Merge remote-tracking branch 'upstream/master' into rustup
2020-06-07 02:17:49 +02:00
Philipp Hansch
623faac84e
Cleanup: Use rustc's same_types
instead of our same_tys
2020-06-06 11:50:59 +02:00
Eduardo Broto
413713c884
Add error info when cargo metadata fails to run
2020-06-05 22:28:58 +02:00
Lzu Tao
fbf0b84b32
Make use of slice pattern
2020-06-02 21:42:33 +07:00
Tim Nielens
5faab874f9
new lint: vec_resize_to_zero
2020-05-30 17:52:10 +02:00
Yuki Okushi
9fd8e1088f
Return early to avoid ICE
2020-05-30 18:48:54 +09:00
flip1995
a0e9f9bd0d
Merge commit '7ea7cd165ad6705603852771bf82cc2fd6560db5' into clippyup2
2020-05-28 15:45:24 +02:00
bors
ee3088f27b
Auto merge of #5631 - ThibsG:ExtendUselessConversion, r=matthiaskrgr
...
Extend useless conversion
This PR extends `useless_conversion` lint with `TryFrom` and `TryInto`
fixes : #5344
changelog: Extend `useless_conversion` with `TryFrom` and `TryInto`
2020-05-27 13:06:59 +00:00
Eduardo Broto
a1824e187c
ptr_arg: honor allow
attr on arguments
2020-05-25 23:09:06 +02:00
ThibsG
705bfdcc46
Extend useless_conversion
lint with TryInto
2020-05-25 20:00:39 +02:00
ThibsG
4f8909fad9
Extend useless_conversion
lint with TryFrom
2020-05-25 20:00:39 +02:00
bors
ce86f907ef
Auto merge of #5632 - flip1995:rustup, r=phansch
...
Rustup
changelog: none
2020-05-22 13:00:38 +00:00
bors
1831385ff0
Auto merge of #5611 - rrbutani:master, r=flip1995
...
Add to the list of words clippy::doc_markdown ignores
"TypeScript" is the only one of these I actually ran into organically; I can remove the others if they're too much.
changelog: Add to the list of words `clippy::doc_markdown` ignores
2020-05-20 14:15:12 +00:00
Bastian Kauschke
091239ee60
introduce newtype'd Predicate<'tcx>
2020-05-20 15:44:34 +02:00
Bastian Kauschke
2722522fac
rename Predicate
to PredicateKind
, introduce alias
2020-05-20 15:38:03 +02:00
bors
cafa94662c
Auto merge of #5582 - vtmargaryan:match_wildcard_for_single_variants, r=flip1995
...
New lint: `match_wildcard_for_single_variants`
changelog: Added a new lint match_wildcard_for_single_variants to warn on enum matches where a wildcard is used to match a single variant
Closes #5556
2020-05-20 12:51:28 +00:00
flip1995
f28f1f15da
Fix dogfood fallout
2020-05-20 13:32:53 +02:00
Amanieu d'Antras
d25b25610b
Handle InlineAsm in clippy
2020-05-18 14:41:33 +01:00
Rahul Butani
1b3dc5f79b
Add to the list of words clippy::doc_markdown ignores
2020-05-17 22:21:02 -05:00
flip1995
f1d3086492
Merge commit 'e214ea82ad0a751563acf67e1cd9279cf302db3a' into clippyup
2020-05-17 17:36:26 +02:00
bors
6ae0643d1a
Auto merge of #5529 - alex-700:improve-option-and-then-some-lint, r=phansch
...
Improve `option_and_then_some` lint
fixed #5492
changelog: Improve and generalize `option_and_then_some` and rename it to `bind_instead_of_map`.
2020-05-17 10:58:56 +00:00
flip1995
cb0d40a7ec
Merge remote-tracking branch 'upstream/master' into rustup
2020-05-17 01:13:02 +02:00
Aleksei Latyshev
cb7f9679a6
simplify multispan_sugg interface
...
- add `multispan_sugg_with_applicability`
- not it gets `&str` instead of `String`, like in `diag.multispan_suggestion`
2020-05-17 00:09:37 +03:00
Dylan DPC
b0490cc80d
Rollup merge of #71948 - csmoe:issue-61076, r=oli-obk
...
Suggest to await future before ? operator
Closes https://github.com/rust-lang/rust/issues/71811
cc #61076
2020-05-16 02:37:21 +02:00
Vardan Margaryan
2620d2449d
Fix check for missing enum variants from match expressions
...
TupleStruct matches are checked for exhaustiveness
2020-05-16 00:06:52 +03:00
Vardan Margaryan
10313a2631
Revert "Fix cases of match_wildcard_for_single_variants lint when it is spanned on Option"
...
This reverts commit 494830797744c09d6de3b2b2452ab185d2204005.
2020-05-15 22:33:37 +03:00
csmoe
0a86335cd4
implement type_implments_trait query
2020-05-15 15:37:11 +08:00
Vardan Margaryan
4948307977
Fix cases of match_wildcard_for_single_variants lint when it is spanned on Option
2020-05-14 22:36:46 +03:00
flip1995
505280b108
Run cargo dev fmt
2020-05-11 21:31:01 +02:00
Camille GILLOT
8ab3224b3b
Fix clippy.
2020-05-11 21:26:39 +02:00
flip1995
d13d8987b0
Merge commit '43a1777b89cf6791f9e20878b4e5e3ae907867a5' into clippyup
2020-05-11 20:23:47 +02:00
Glenn Hope
ad92486d52
Add check for "test" in parent name. Include flag for disabling wildcard import exceptions
2020-05-09 11:09:38 -07:00
Camille GILLOT
31c84e5077
Fix clippy.
2020-05-08 13:57:01 +02:00
Eduardo Broto
3e4bc026e2
Apply suggestions from PR review
2020-05-07 22:40:28 +02:00
Eduardo Broto
3b58d66b22
Add the manual_async_fn lint
2020-05-07 21:42:40 +02:00