Merge branch 'master' into while_loop_test_split
This commit is contained in:
commit
983edde284
2 changed files with 2 additions and 0 deletions
|
@ -684,6 +684,7 @@ fn desugaring_name(des: hir::MatchSource) -> String {
|
||||||
"MatchSource::IfLetDesugar {{ contains_else_clause: {} }}",
|
"MatchSource::IfLetDesugar {{ contains_else_clause: {} }}",
|
||||||
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::Array(..)
|
||||||
| ast::ExprKind::While(..)
|
| ast::ExprKind::While(..)
|
||||||
| ast::ExprKind::WhileLet(..)
|
| ast::ExprKind::WhileLet(..)
|
||||||
|
| ast::ExprKind::Await(..)
|
||||||
| ast::ExprKind::Err => Sugg::NonParen(snippet),
|
| ast::ExprKind::Err => Sugg::NonParen(snippet),
|
||||||
ast::ExprKind::Range(.., RangeLimits::HalfOpen) => Sugg::BinOp(AssocOp::DotDot, snippet),
|
ast::ExprKind::Range(.., RangeLimits::HalfOpen) => Sugg::BinOp(AssocOp::DotDot, snippet),
|
||||||
ast::ExprKind::Range(.., RangeLimits::Closed) => Sugg::BinOp(AssocOp::DotDotEq, snippet),
|
ast::ExprKind::Range(.., RangeLimits::Closed) => Sugg::BinOp(AssocOp::DotDotEq, snippet),
|
||||||
|
|
Loading…
Reference in a new issue