From: Pierre-Emmanuel Patry Date: Mon, 9 Oct 2023 12:46:55 +0000 (+0200) Subject: gccrs: Fix type param bound parsing with opening scope X-Git-Tag: basepoints/gcc-15~2104 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=12650695701ff4bbcc64f2bf0e661480a20d5483;p=thirdparty%2Fgcc.git gccrs: 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 --- diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index 7f4708543cb6..07f95a61ec29 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