diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-10-09 14:46:55 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-10-16 14:40:06 +0000 |
commit | a87e147ed5dcfaecbdfd4edd23373d77a1397bc7 (patch) | |
tree | e5074009dcd54d8169f3bb707bca648d3f35e34c | |
parent | 08396ed5c25851b9a8b340711e4c2a012501f20c (diff) |
Fix type param bound parsing with opening scope
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 <pierre-emmanuel.patry@embecosm.com>
-rw-r--r-- | gcc/rust/parse/rust-parse-impl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index 91eb14be3cd..c2f35e21076 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -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 |