diff options
| author | Andrew Cann <shum@canndrew.org> | 2016-12-31 07:35:43 +0800 |
|---|---|---|
| committer | Andrew Cann <shum@canndrew.org> | 2017-01-03 15:54:23 +0800 |
| commit | e9ffc409bc7a8a8b11c326136209d720671a8dcd (patch) | |
| tree | 68e8c5addf1b050057b968a5fd693fa3eaf13df3 /src/librustc_const_eval | |
| parent | 699b25ff3a86213b806387c3806adc3af9858205 (diff) | |
Spelling. s/forrest/forest
Diffstat (limited to 'src/librustc_const_eval')
| -rw-r--r-- | src/librustc_const_eval/_match.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_const_eval/_match.rs b/src/librustc_const_eval/_match.rs index 36e9b1b4900..90e861c3f57 100644 --- a/src/librustc_const_eval/_match.rs +++ b/src/librustc_const_eval/_match.rs @@ -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)) |
