Skip to content

Commit 0ace896

Browse files
committed
Remove a match check
1 parent 2b3c86c commit 0ace896

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/rustc/middle/typeck/check/regionmanip.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,14 @@ fn replace_bound_regions_in_fn_ty(
6060

6161
// Glue updated self_ty back together with its original def_id.
6262
let new_self_info = match self_info {
63-
some(s) => match check t_self {
64-
some(t) => some({self_ty: t with s})
65-
// this 'none' case shouldn't happen
63+
some(s) => {
64+
match t_self {
65+
some(t) => some({self_ty: t with s}),
66+
none => {
67+
tcx.sess.bug(~"unexpected t_self in \
68+
replace_bound_regions_in_fn_ty()");
69+
}
70+
}
6671
},
6772
none => none
6873
};

0 commit comments

Comments
 (0)