parent
f47ec2ad5b
commit
cc1cd83657
1 changed files with 8 additions and 4 deletions
|
@ -1184,8 +1184,10 @@ impl<'a> Parser<'a> {
|
||||||
match ate {
|
match ate {
|
||||||
Some(_) => {
|
Some(_) => {
|
||||||
// See doc comment for `unmatched_angle_bracket_count`.
|
// See doc comment for `unmatched_angle_bracket_count`.
|
||||||
self.unmatched_angle_bracket_count -= 1;
|
if self.unmatched_angle_bracket_count > 0 {
|
||||||
debug!("expect_gt: (decrement) count={:?}", self.unmatched_angle_bracket_count);
|
self.unmatched_angle_bracket_count -= 1;
|
||||||
|
debug!("expect_gt: (decrement) count={:?}", self.unmatched_angle_bracket_count);
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
|
@ -2248,8 +2250,10 @@ impl<'a> Parser<'a> {
|
||||||
|
|
||||||
// See doc comment for `unmatched_angle_bracket_count`.
|
// See doc comment for `unmatched_angle_bracket_count`.
|
||||||
self.expect(&token::Gt)?;
|
self.expect(&token::Gt)?;
|
||||||
self.unmatched_angle_bracket_count -= 1;
|
if self.unmatched_angle_bracket_count > 0 {
|
||||||
debug!("parse_qpath: (decrement) count={:?}", self.unmatched_angle_bracket_count);
|
self.unmatched_angle_bracket_count -= 1;
|
||||||
|
debug!("parse_qpath: (decrement) count={:?}", self.unmatched_angle_bracket_count);
|
||||||
|
}
|
||||||
|
|
||||||
self.expect(&token::ModSep)?;
|
self.expect(&token::ModSep)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue