rust/clippy_utils/src
bors 3f17c5c388 Auto merge of #10924 - est31:manual_let_else_question_mark, r=Centri3,flip1995,Manishearth
Don't lint manual_let_else in cases where ? would work

Don't lint `manual_let_else` where the question mark operator `?` would be sufficient, that is, mostly in cases like:

```Rust
let v = if let Some(v) = ex { v } else { return None };
```

Also, this PR emits the `question_mark` lint for `let...else` patterns that could be written with `?` (also, only `return None` like cases).

```
changelog: [`manual_let_else`]: don't lint in cases where question_mark already lints
changelog: [`question_mark`]: lint for `let Some(...) = ex else { return None };`
```

Fixes  #8755
2023-07-03 14:18:32 +00:00
..
ast_utils Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
mir Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
ast_utils.rs Make clippy happy 2023-04-27 17:18:12 +00:00
attrs.rs Fix typos 2023-07-02 07:11:05 -05:00
check_proc_macro.rs Fix typos 2023-07-02 07:11:05 -05:00
comparisons.rs Fix typos 2023-07-02 07:11:05 -05:00
consts.rs Fix typos 2023-07-02 07:11:05 -05:00
diagnostics.rs Merge remote-tracking branch 'upstream/master' into rustup 2023-06-02 10:17:55 +02:00
eager_or_lazy.rs Fix typos 2023-07-02 07:11:05 -05:00
higher.rs Fix typos 2023-07-02 07:11:05 -05:00
hir_utils.rs Support hir::ExprKind::Become in clippy 2023-06-26 08:56:32 +00:00
lib.rs Auto merge of #10924 - est31:manual_let_else_question_mark, r=Centri3,flip1995,Manishearth 2023-07-03 14:18:32 +00:00
macros.rs Fix find_format_arg_expr when incremental compilation is enabled 2023-06-17 20:55:30 +00:00
msrvs.rs New lint manual_try_fold 2023-07-01 12:36:02 -05:00
numeric_literal.rs handle exponent without digits 2023-06-09 05:21:24 +02:00
paths.rs Auto merge of #106450 - albertlarsan68:fix-arc-ptr-eq, r=Amanieu 2023-06-21 05:13:39 +00:00
ptr.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
qualify_min_const_fn.rs Merge remote-tracking branch 'upstream/master' into rustup 2023-06-30 16:09:06 +02:00
source.rs Merge commit '30448e8cf9' into clippyup 2023-06-02 11:41:57 +02:00
str_utils.rs Merge commit '0eff589afc' into clippyup 2021-12-30 15:10:43 +01:00
sugg.rs Fix typos 2023-07-02 07:11:05 -05:00
sym_helper.rs Merge commit '928e72dd10' into clippyup 2021-02-25 11:25:22 +01:00
ty.rs Merge remote-tracking branch 'upstream/master' into rustup 2023-06-30 16:09:06 +02:00
usage.rs Reborrow mutable references in explicit_iter_loop 2023-06-09 21:40:03 -04:00
visitors.rs Support hir::ExprKind::Become in clippy 2023-06-26 08:56:32 +00:00