]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Fix type param bound parsing with opening scope
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 9 Oct 2023 12:46:55 +0000 (14:46 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:09:12 +0000 (19:09 +0100)
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>
gcc/rust/parse/rust-parse-impl.h

index 7f4708543cb6f88f85d71c73f8d8bff5e717fd93..07f95a61ec294291a587e2fb8aa1dcb4faed2548 100644 (file)
@@ -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