Implement lowering of if-let guards to MIR

This commit is contained in:
LeSeulArtichaut 2020-11-13 18:27:27 +01:00
parent 3be53bc45a
commit 402f55f33f

View File

@ -730,6 +730,7 @@ fn desugaring_name(des: hir::MatchSource) -> String {
"MatchSource::IfLetDesugar {{ contains_else_clause: {} }}",
contains_else_clause
),
hir::MatchSource::IfLetGuardDesugar => "MatchSource::IfLetGuardDesugar".to_string(),
hir::MatchSource::IfDesugar { contains_else_clause } => format!(
"MatchSource::IfDesugar {{ contains_else_clause: {} }}",
contains_else_clause