]> gcc.gnu.org Git - gcc.git/commit
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)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Tue, 5 Mar 2024 15:08:36 +0000 (15:08 +0000)
commit87f797f0e827e50eb75945593d9107431f9be2ce
tree5ac287a4a12e3d8661b3ddd03244a2d391329fad
parent0177e3cb1382d4eeefce0038b4791e7fb25bc2b9
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.063374 seconds and 5 git commands to generate.