Skip to content

Commit 341c96a

Browse files
committed
Auto merge of #4068 - matthiaskrgr:rustup_3, r=Manishearth
rustup #60586 cc #60623 changelog: none
2 parents 089a7be + 857c2c5 commit 341c96a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

clippy_lints/src/utils/author.rs

+1
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ fn desugaring_name(des: hir::MatchSource) -> String {
684684
"MatchSource::IfLetDesugar {{ contains_else_clause: {} }}",
685685
contains_else_clause
686686
),
687+
hir::MatchSource::AwaitDesugar => "MatchSource::AwaitDesugar".to_string(),
687688
}
688689
}
689690

clippy_lints/src/utils/sugg.rs

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ impl<'a> Sugg<'a> {
165165
| ast::ExprKind::Array(..)
166166
| ast::ExprKind::While(..)
167167
| ast::ExprKind::WhileLet(..)
168+
| ast::ExprKind::Await(..)
168169
| ast::ExprKind::Err => Sugg::NonParen(snippet),
169170
ast::ExprKind::Range(.., RangeLimits::HalfOpen) => Sugg::BinOp(AssocOp::DotDot, snippet),
170171
ast::ExprKind::Range(.., RangeLimits::Closed) => Sugg::BinOp(AssocOp::DotDotEq, snippet),

0 commit comments

Comments
 (0)