File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -880,11 +880,11 @@ impl<'a> Parser<'a> {
880880 false
881881 }
882882 }
883-
883+
884884 /// Expect and consume a `+`. if `+=` is seen, replace it with a `=`
885885 /// and continue. If a `+` is not seen, return false.
886886 ///
887- /// This is using when token splitting += into +.
887+ /// This is using when token splitting += into +.
888888 /// See issue 47856 for an example of when this may occur.
889889 fn eat_plus ( & mut self ) -> bool {
890890 self . expected_tokens . push ( TokenType :: Token ( token:: BinOp ( token:: Plus ) ) ) ;
@@ -901,8 +901,8 @@ impl<'a> Parser<'a> {
901901 _ => false ,
902902 }
903903 }
904-
905-
904+
905+
906906 /// Checks to see if the next token is either `+` or `+=`.
907907 /// Otherwise returns false.
908908 fn check_plus ( & mut self ) -> bool {
@@ -1679,7 +1679,7 @@ impl<'a> Parser<'a> {
16791679 let poly_trait_ref = PolyTraitRef :: new ( generic_params, path, lo. to ( self . prev_span ) ) ;
16801680 let mut bounds = vec ! [ TraitTyParamBound ( poly_trait_ref, TraitBoundModifier :: None ) ] ;
16811681 if parse_plus {
1682- self . eat_plus ( ) ; // `+` or `+=` gets split and `+` is discarded
1682+ self . eat_plus ( ) ; // `+`, or `+=` gets split and `+` is discarded
16831683 bounds. append ( & mut self . parse_ty_param_bounds ( ) ?) ;
16841684 }
16851685 Ok ( TyKind :: TraitObject ( bounds, TraitObjectSyntax :: None ) )
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ impl Token {
224224 _ => false ,
225225 }
226226 }
227-
227+
228228 pub fn is_like_plus ( & self ) -> bool {
229229 match * self {
230230 BinOp ( Plus ) | BinOpEq ( Plus ) => true ,
You can’t perform that action at this time.
0 commit comments