mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
parse_generic_bounds_common: dedent
This commit is contained in:
parent
a11252ae26
commit
e61cb44f2f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user