From a87e147ed5dcfaecbdfd4edd23373d77a1397bc7 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Mon, 9 Oct 2023 14:46:55 +0200 Subject: 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 --- gcc/rust/parse/rust-parse-impl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc') diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index 91eb14b..c2f35e2 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -3886,6 +3886,7 @@ Parser::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 -- cgit v1.1