From a8efbd87f01b4fd1c84572ca64f20c40b8bc8baa Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Mon, 9 Oct 2023 14:46:55 +0200 Subject: [PATCH] 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(+) diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index 91eb14be3cd3..c2f35e210765 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