mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Auto merge of #4068 - matthiaskrgr:rustup_3, r=Manishearth
rustup https://github.com/rust-lang/rust/pull/60586 cc https://github.com/rust-lang/rust/issues/60623 changelog: none
This commit is contained in:
commit
341c96afd3
@ -684,6 +684,7 @@ fn desugaring_name(des: hir::MatchSource) -> String {
|
||||
"MatchSource::IfLetDesugar {{ contains_else_clause: {} }}",
|
||||
contains_else_clause
|
||||
),
|
||||
hir::MatchSource::AwaitDesugar => "MatchSource::AwaitDesugar".to_string(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -165,6 +165,7 @@ impl<'a> Sugg<'a> {
|
||||
| ast::ExprKind::Array(..)
|
||||
| ast::ExprKind::While(..)
|
||||
| ast::ExprKind::WhileLet(..)
|
||||
| ast::ExprKind::Await(..)
|
||||
| ast::ExprKind::Err => Sugg::NonParen(snippet),
|
||||
ast::ExprKind::Range(.., RangeLimits::HalfOpen) => Sugg::BinOp(AssocOp::DotDot, snippet),
|
||||
ast::ExprKind::Range(.., RangeLimits::Closed) => Sugg::BinOp(AssocOp::DotDotEq, snippet),
|
||||
|
Loading…
Reference in New Issue
Block a user