]> git.ipfire.org Git - thirdparty/gcc.git/commit
Change optional to expected for parse_loop_label
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 3 Apr 2025 11:16:33 +0000 (13:16 +0200)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Mon, 7 Apr 2025 08:18:19 +0000 (08:18 +0000)
commit5ab8589e09ccaf7d36c9331425fba9413f40b26b
tree554fed3871f224590f8cf7c95af48538f32b6ecd
parenta179c05f228cace7bcaba8c550e0550993ff5a46
Change optional to expected for parse_loop_label

gcc/rust/ChangeLog:

* parse/rust-parse-impl.h (Parser::parse_loop_label): Change function
return type to expected.
(Parser::parse_labelled_loop_expr): Adapt call location to new return
type.
* parse/rust-parse.h (enum class): Update function prototype.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/parse/rust-parse-impl.h
gcc/rust/parse/rust-parse.h