Spelling. s/forrest/forest

This commit is contained in:
Andrew Cann 2016-12-31 07:35:43 +08:00
parent 699b25ff3a
commit e9ffc409bc
4 changed files with 65 additions and 65 deletions

View file

@ -394,10 +394,10 @@ fn all_constructors<'a, 'tcx: 'a>(cx: &mut MatchCheckCtxt<'a, 'tcx>,
ty::TyAdt(def, substs) if def.is_enum() && def.variants.len() != 1 => {
def.variants.iter().filter_map(|v| {
let mut visited = FxHashSet::default();
let forrest = v.uninhabited_from(&mut visited,
cx.tcx, substs,
AdtKind::Enum);
if forrest.contains(cx.tcx, cx.module) {
let forest = v.uninhabited_from(&mut visited,
cx.tcx, substs,
AdtKind::Enum);
if forest.contains(cx.tcx, cx.module) {
None
} else {
Some(Variant(v.did))