Skip to content

Commit dc744e8

Browse files
committed
fix oversight in ty_decode.
I thought this case would not come up.
1 parent cc8086a commit dc744e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rustc/metadata/tydecode.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ fn parse_bound_region(st: @pstate) -> ty::bound_region {
133133
's' { ty::br_self }
134134
'a' { ty::br_anon }
135135
'[' { ty::br_named(@parse_str(st, ']')) }
136+
'c' {
137+
let id = parse_int(st);
138+
assert next(st) == '|';
139+
ty::br_cap_avoid(id, @parse_bound_region(st))
140+
}
136141
}
137142
}
138143

0 commit comments

Comments
 (0)