parse_generic_bounds_common: dedent

This commit is contained in:
Mazdak Farrokhzad 2019-12-08 09:42:32 +01:00
parent a11252ae26
commit e61cb44f2f

View File

@ -376,7 +376,10 @@ impl<'a> Parser<'a> {
|| self.check_keyword(kw::For)
|| self.check(&token::OpenDelim(token::Paren));
if is_bound_start {
if !is_bound_start {
break;
}
let lo = self.token.span;
let has_parens = self.eat(&token::OpenDelim(token::Paren));
let inner_lo = self.token.span;
@ -410,9 +413,6 @@ impl<'a> Parser<'a> {
bounds.push(GenericBound::Trait(poly_trait, modifier));
}
}
} else {
break
}
if !allow_plus || !self.eat_plus() {
break