We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
match check
1 parent 2b3c86c commit 0ace896Copy full SHA for 0ace896
src/rustc/middle/typeck/check/regionmanip.rs
@@ -60,9 +60,14 @@ fn replace_bound_regions_in_fn_ty(
60
61
// Glue updated self_ty back together with its original def_id.
62
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
+ some(s) => {
+ match t_self {
+ 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
71
},
72
none => none
73
};
0 commit comments