replace if-let and while-let with if let
and while let
This commit is contained in:
parent
ee88f46bb5
commit
0f04875d2e
18 changed files with 45 additions and 45 deletions
|
@ -45,7 +45,7 @@ impl NonConstExpr {
|
|||
return None;
|
||||
}
|
||||
|
||||
Self::Match(IfLetGuardDesugar) => bug!("if-let guard outside a `match` expression"),
|
||||
Self::Match(IfLetGuardDesugar) => bug!("`if let` guard outside a `match` expression"),
|
||||
|
||||
// All other expressions are allowed.
|
||||
Self::Loop(Loop | While | WhileLet)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue