]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove error state for GenericArg
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 7 Apr 2025 13:59:15 +0000 (15:59 +0200)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Thu, 24 Apr 2025 09:46:13 +0000 (09:46 +0000)
commit06b6c5559a895d13c609c2f933fad2ba5bbc0900
treee87e0e158b449dc507fb5fbe935d528a965fe64c
parenta7f51b8b4bf9708043ae35e7a8be8c77b29a11a7
Remove error state for GenericArg

gcc/rust/ChangeLog:

* ast/rust-ast-collector.cc (TokenCollector::visit): Remove error kind
and change function call.
* ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): Change call name.
* ast/rust-path.cc (ConstGenericParam::as_string): Likewise.
* ast/rust-path.h: Remove error kind.
* hir/rust-ast-lower-type.cc (ASTLowerGenericParam::visit): Change call
name.
* parse/rust-parse-impl.h (Parser::parse_generic_param): Use optional
on parsing failure.
(Parser::parse_generic_arg): Likewise.
(Parser::parse_path_generic_args): Likewise.
* parse/rust-parse.h: Likewise.
* resolve/rust-ast-resolve-type.h: Change call name.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/ast/rust-ast-collector.cc
gcc/rust/ast/rust-ast-visitor.cc
gcc/rust/ast/rust-path.cc
gcc/rust/ast/rust-path.h
gcc/rust/hir/rust-ast-lower-type.cc
gcc/rust/parse/rust-parse-impl.h
gcc/rust/parse/rust-parse.h
gcc/rust/resolve/rust-ast-resolve-type.h