diff options
| author | Lindsey Kuper <lindsey@rockstargirl.org> | 2012-08-17 11:35:33 -0700 |
|---|---|---|
| committer | Lindsey Kuper <lindsey@rockstargirl.org> | 2012-08-17 14:32:34 -0700 |
| commit | 0ace896d1feb5d165e24bfaeba67e113eeb4ba9b (patch) | |
| tree | 5821bf32c5a435eab7085fc60dbd461f4e8712f5 /src | |
| parent | 2b3c86cb02803e569d4f5b6891d439c9daa0b90a (diff) | |
| download | rust-0ace896d1feb5d165e24bfaeba67e113eeb4ba9b.tar.gz rust-0ace896d1feb5d165e24bfaeba67e113eeb4ba9b.zip | |
Remove a `match check`
Diffstat (limited to 'src')
| -rw-r--r-- | src/rustc/middle/typeck/check/regionmanip.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/rustc/middle/typeck/check/regionmanip.rs b/src/rustc/middle/typeck/check/regionmanip.rs index 8cbc9e65d8e..5b09dd48d37 100644 --- a/src/rustc/middle/typeck/check/regionmanip.rs +++ b/src/rustc/middle/typeck/check/regionmanip.rs @@ -60,9 +60,14 @@ fn replace_bound_regions_in_fn_ty( // Glue updated self_ty back together with its original def_id. let new_self_info = match self_info { - some(s) => match check t_self { - some(t) => some({self_ty: t with s}) - // this 'none' case shouldn't happen + some(s) => { + match t_self { + some(t) => some({self_ty: t with s}), + none => { + tcx.sess.bug(~"unexpected t_self in \ + replace_bound_regions_in_fn_ty()"); + } + } }, none => none }; |
