Tidy fixes.
This commit is contained in:
parent
7a9ffa7307
commit
a5dc83d970
2 changed files with 6 additions and 6 deletions
|
@ -1679,7 +1679,7 @@ impl<'a> Parser<'a> {
|
|||
let poly_trait_ref = PolyTraitRef::new(generic_params, path, lo.to(self.prev_span));
|
||||
let mut bounds = vec![TraitTyParamBound(poly_trait_ref, TraitBoundModifier::None)];
|
||||
if parse_plus {
|
||||
self.eat_plus(); // `+` or `+=` gets split and `+` is discarded
|
||||
self.eat_plus(); // `+`, or `+=` gets split and `+` is discarded
|
||||
bounds.append(&mut self.parse_ty_param_bounds()?);
|
||||
}
|
||||
Ok(TyKind::TraitObject(bounds, TraitObjectSyntax::None))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue