Skip to content

Commit

Permalink
Fix type param bound parsing with opening scope
Browse files Browse the repository at this point in the history
The function parsing type param bounds had a problem with scope
resolution opening token.

gcc/rust/ChangeLog:

	* parse/rust-parse-impl.h (Parser::parse_type_param_bound): Add missing
	case for lifetime switch.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
  • Loading branch information
P-E-P committed Oct 9, 2023
1 parent 99c913b commit a8efbd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gcc/rust/parse/rust-parse-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3886,6 +3886,7 @@ Parser<ManagedTokenSource>::parse_type_param_bound ()
case SELF_ALIAS:
case CRATE:
case DOLLAR_SIGN:
case SCOPE_RESOLUTION:
return parse_trait_bound ();
default:
// don't error - assume this is fine TODO
Expand Down

0 comments on commit a8efbd8

Please sign in to comment.