]> gcc.gnu.org Git - gcc.git/commit
gccrs: Update resolver to use `AST::Function` instead of `AST::ExternalFunctionItem`
author0xn4utilus <gyanendrabanjare8@gmail.com>
Sun, 25 Feb 2024 23:09:43 +0000 (04:39 +0530)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 1 Aug 2024 11:12:15 +0000 (13:12 +0200)
commit293ac1ba6157c060bc053288b7ed0ae03622fe07
tree4317c90240846542373b09099cbf73a525a7dd09
parentbbc1dfcc57f2042163e558428b855dca38e24e88
gccrs: Update resolver to use `AST::Function` instead of `AST::ExternalFunctionItem`

gcc/rust/ChangeLog:

* checks/errors/rust-feature-gate.cc (FeatureGate::visit):
Check if function is_external or not.
* hir/rust-ast-lower-extern.h: Use AST::Function
instead of AST::ExternalFunctionItem.
* parse/rust-parse-impl.h (Parser::parse_external_item):
Likewise.
(Parser::parse_pattern): Fix clang format.
* resolve/rust-ast-resolve-implitem.h: Likewise.
* resolve/rust-ast-resolve-item.cc (ResolveExternItem::visit):
Likewise.
* resolve/rust-ast-resolve-item.h: Likewise.
* resolve/rust-default-resolver.cc (DefaultResolver::visit):
Check if param has_pattern before using get_pattern.

Signed-off-by: 0xn4utilus <gyanendrabanjare8@gmail.com>
gcc/rust/checks/errors/rust-feature-gate.cc
gcc/rust/hir/rust-ast-lower-extern.h
gcc/rust/parse/rust-parse-impl.h
gcc/rust/resolve/rust-ast-resolve-implitem.h
gcc/rust/resolve/rust-ast-resolve-item.cc
gcc/rust/resolve/rust-ast-resolve-item.h
gcc/rust/resolve/rust-default-resolver.cc
This page took 0.056099 seconds and 5 git commands to generate.