Serial
51cd5a8667
Add --type
flag to dev new_lint
2022-07-25 22:35:28 -04:00
Serial
8dfea74367
Remove extra newlines in [significant_drop_in_scrutinee
] docs
2022-07-20 21:35:11 -04:00
bors
aa0706bf20
Auto merge of #9178 - alex-semenyuk:match_like_matches_macro_fix, r=Jarcho
...
match_like_matches_macro does not trigger when one arm contains conta…
Close #9163
changelog: none
2022-07-15 13:57:46 +00:00
Philipp Krones
f074034590
Merge remote-tracking branch 'upstream/master' into rustup
2022-07-15 09:49:15 +02:00
alex-semenyuk
2894df3409
match_like_matches_macro does not trigger when one arm contains contains a block with only a bool literal
2022-07-15 09:15:31 +03:00
bors
0930ac91b9
Fix typos
...
changelog: none
2022-07-13 14:48:32 +00:00
Ding Xiang Fei
af3ba22313
move else block into the Local
struct
2022-07-11 23:20:37 +02:00
Ding Xiang Fei
9225ebd786
lower let-else in MIR instead
2022-07-11 23:20:36 +02:00
Jason Newcomb
95b78799c3
Ignore the IntoIterator::into_iter
call from for loops in significant_drop_in_scrutinee
2022-07-09 08:15:13 -04:00
Josh Triplett
b7230d4f44
Dogfood fixes to use bool::then_some
2022-07-06 02:03:56 -07:00
Philipp Krones
09f5df5087
Merge commit '0cb0f7636851f9fcc57085cf80197a2ef6db098f' into clippyup
2022-06-30 10:50:09 +02:00
bors
ff3964af1b
Auto merge of #9068 - tamaroning:fix-typo-2022-6-30, r=giraffate,xFrednet
...
fix typo in Clippy Lints page
https://rust-lang.github.io/rust-clippy/master/#significant_drop_in_scrutinee
changelog: none
2022-06-30 06:18:19 +00:00
tamaron
5d75a9bd4c
fix
2022-06-30 11:59:23 +09:00
Jason Newcomb
58434ae385
Extract util functions from redundant_pattern_match
2022-06-29 13:42:59 -04:00
bors
90227c10f7
Auto merge of #8981 - PrestonFrom:more_details_for_significant_drop_lint, r=flip1995
...
Add details about how significant drop in match scrutinees can cause deadlocks
Adds more details about how a significant drop in a match scrutinee can cause a deadlock and include link to documentation.
changelog: Add more details to significant drop lint to explicitly show how temporaries in match scrutinees can cause deadlocks.
2022-06-29 13:23:21 +00:00
Jason Newcomb
5e2a2d3ac9
Fix dogfood
2022-06-28 13:02:08 -04:00
Jason Newcomb
20ea26234a
Lint field accesses in explicit_auto_deref
2022-06-28 12:48:26 -04:00
Jason Newcomb
8a74d33570
Add explicit_auto_deref
lint
2022-06-28 12:48:24 -04:00
Preston From
7bc40967a4
Run cargo dev fmt
2022-06-27 23:01:47 -06:00
Preston From
3cfd1e5233
Make messages more accurate, check lint enabled
2022-06-27 22:52:22 -06:00
bors
8789f4e88a
Auto merge of #8985 - botahamec:single-match-option, r=llogiq
...
Lint `[single_match]` on `Option` matches
fixes #8928
changelog: did some cleanup of the logic for ``[`single_match`]`` and ``[`single_match_else`]`` which fixes the bug where `Option` matches were not linted unless a wildcard was used for one of the arms.
2022-06-25 16:48:34 +00:00
Preston From
1f707db0bf
Update messages for clarity when linting
2022-06-22 22:34:49 -06:00
Preston From
2476100c85
Add details about significant drop in match scrutinees causing deadlocks
...
Adds more details about how a significant drop in a match scrutinee can
cause a deadlock and include link to documentation. Emits messages
indicating temporaries with significant drops in arms of matches and
message about possible deadlocks/unexpected behavior.
changelog: Add more details to significant drop lint to explicitly show
how temporaries in match scrutinees can cause deadlocks/unexpected
behavior.
2022-06-20 23:59:15 -06:00
flip1995
f8f9d01c2a
Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup
2022-06-16 17:39:06 +02:00
flip1995
c5c8f6122f
Merge remote-tracking branch 'upstream/master' into rustup
2022-06-16 16:04:06 +02:00
Yuki Okushi
bd071bf5b2
Rollup merge of #98110 - cjgillot:closure-brace, r=Aaron1011
...
Make `ExprKind::Closure` a struct variant.
Simple refactor since we both need it to introduce additional fields in `ExprKind::Closure`.
r? ``@Aaron1011``
2022-06-15 19:37:14 +09:00
b-naber
3f4ad95826
fix clippy test failures
2022-06-14 16:08:11 +02:00
b-naber
90a41050ba
implement valtrees as the type-system representation for constant values
2022-06-14 16:07:11 +02:00
Takayuki Maeda
f2d9acfc01
remove unnecessary to_string
and String::new
2022-06-13 15:48:40 +09:00
Camille GILLOT
7b84a97c3e
Make ExprKind::Closure
a struct variant.
2022-06-12 00:16:27 +02:00
Micha White
ded2bb5464
Slight documentation change
2022-06-10 13:12:03 -04:00
Micha White
f3dc7ae370
Fixed up the documentation for a couple functions
2022-06-10 13:12:03 -04:00
Micha White
b0c20302b7
Some refactoring
2022-06-10 13:12:02 -04:00
Micha White
b46f1c4a7f
Don't trigger if a binding is in the else pattern
2022-06-10 13:12:02 -04:00
Micha White
2967127de2
Refactored the candidate type checking
2022-06-10 13:12:02 -04:00
Micha White
6d6c63ee23
Lint single_match with Options, Results, and Cows
2022-06-10 13:11:50 -04:00
Matthias Krüger
c1dcfd175e
Rollup merge of #97794 - eltociear:patch-13, r=matthiaskrgr
...
Fix typo in redundant_pattern_match.rs
alway -> always
2022-06-07 01:13:48 +02:00
Ikko Ashimine
62d43d2f82
Fix typo in redundant_pattern_match.rs
...
alway -> always
2022-06-06 21:16:31 +09:00
Serial
9aeed6b9bf
Improve lint doc consistency
2022-06-05 16:03:18 -04:00
Philipp Krones
f067783461
Merge commit 'd9ddce8a223cb9916389c039777b6966ea448dc8' into clippyup
2022-06-04 13:34:07 +02:00
Jason Newcomb
68c411ff94
Move ManualMap
into Matches
lint pass
2022-06-03 19:09:50 -04:00
Jason Newcomb
67cb5ec29f
Move TryErr
into Matches
lint pass
2022-06-03 19:09:49 -04:00
Jason Newcomb
dbc7753fb2
Merge SignificantDropInScrutinee
into Matches
lint pass
2022-06-03 19:09:49 -04:00
Jason Newcomb
8c8a52eeeb
Move MatchStrCaseMismatch
into Matches
lint pass
2022-06-03 19:09:49 -04:00
Jason Newcomb
3d8d734150
Move MatchOnVecItems
into Matches
lint pass
2022-06-03 19:09:49 -04:00
Jason Newcomb
b337f9e62e
Merge ManualUnwrapOr
into Matches
lint pass
2022-06-03 19:09:49 -04:00
Jason Newcomb
81e44502ac
Merge CollapsibleMatch
into Matches
lint pass
2022-06-03 12:14:24 -04:00
lyj
c5410150eb
needless_deref
2022-05-30 01:46:15 +00:00
xFrednet
4587b6628d
Merge 'rust-clippy/master' into clippyup
2022-05-21 13:24:00 +02:00
xFrednet
4e6cf0036e
Merge remote-tracking branch 'upstream/master' into rustup
2022-05-20 20:47:31 +02:00