Fix dogfood fallout

This commit is contained in:
flip1995 2020-04-01 20:24:46 +02:00
parent 7d58ba20b4
commit fcc56fcd1b
No known key found for this signature in database
GPG Key ID: 2CEFCDB27ED0BE79

View File

@ -922,7 +922,7 @@ fn get_indexed_assignments<'a, 'tcx>(
.chain(expr.as_ref().into_iter().map(|e| Some(get_assignment(cx, &*e, var))))
.filter_map(|op| op)
.collect::<Option<Vec<_>>>()
.unwrap_or_else(|| vec![])
.unwrap_or_default()
} else {
get_assignment(cx, body, var).into_iter().collect()
}