diff options
| author | bors <bors@rust-lang.org> | 2023-08-24 19:10:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-24 19:10:31 +0000 |
| commit | 080b587854a73f2a8cbaecff1884860a78e2ff37 (patch) | |
| tree | 11c90a4fe04d148c92dad0b278179d81f0564bdd /clippy_utils/src/check_proc_macro.rs | |
| parent | 202c84639406b204a81f5d4d4d5d33a313b0663b (diff) | |
| parent | 9334e5d5c0226a48d04c263ed54af556208b9fe7 (diff) | |
| download | rust-080b587854a73f2a8cbaecff1884860a78e2ff37.tar.gz rust-080b587854a73f2a8cbaecff1884860a78e2ff37.zip | |
Auto merge of #11398 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
Diffstat (limited to 'clippy_utils/src/check_proc_macro.rs')
| -rw-r--r-- | clippy_utils/src/check_proc_macro.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/check_proc_macro.rs b/clippy_utils/src/check_proc_macro.rs index 60fab1ec41a..6be8b8bb916 100644 --- a/clippy_utils/src/check_proc_macro.rs +++ b/clippy_utils/src/check_proc_macro.rs @@ -149,7 +149,7 @@ fn expr_search_pat(tcx: TyCtxt<'_>, e: &Expr<'_>) -> (Pat, Pat) { (Pat::Str("for"), Pat::Str("}")) }, ExprKind::Match(_, _, MatchSource::Normal) => (Pat::Str("match"), Pat::Str("}")), - ExprKind::Match(e, _, MatchSource::TryDesugar) => (expr_search_pat(tcx, e).0, Pat::Str("?")), + ExprKind::Match(e, _, MatchSource::TryDesugar(_)) => (expr_search_pat(tcx, e).0, Pat::Str("?")), ExprKind::Match(e, _, MatchSource::AwaitDesugar) | ExprKind::Yield(e, YieldSource::Await { .. }) => { (expr_search_pat(tcx, e).0, Pat::Str("await")) }, |
