replace if-let and while-let with if let and while let

This commit is contained in:
Takayuki Maeda 2021-02-17 19:26:38 +09:00
parent ee88f46bb5
commit 0f04875d2e
18 changed files with 45 additions and 45 deletions

View file

@ -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)