mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 15:03:25 +03:00
fix oversight in ty_decode.
I thought this case would not come up.
This commit is contained in:
@@ -133,6 +133,11 @@ fn parse_bound_region(st: @pstate) -> ty::bound_region {
|
||||
's' { ty::br_self }
|
||||
'a' { ty::br_anon }
|
||||
'[' { ty::br_named(@parse_str(st, ']')) }
|
||||
'c' {
|
||||
let id = parse_int(st);
|
||||
assert next(st) == '|';
|
||||
ty::br_cap_avoid(id, @parse_bound_region(st))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user