Remove a match check
This commit is contained in:
parent
2b3c86cb02
commit
0ace896d1f
1 changed files with 8 additions and 3 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue