aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast.cc
diff options
context:
space:
mode:
author0xn4utilus <gyanendrabanjare8@gmail.com>2024-02-26 04:39:43 +0530
committerArthur Cohen <arthur.cohen@embecosm.com>2024-08-01 13:12:15 +0200
commit293ac1ba6157c060bc053288b7ed0ae03622fe07 (patch)
tree4317c90240846542373b09099cbf73a525a7dd09 /gcc/rust/ast/rust-ast.cc
parentbbc1dfcc57f2042163e558428b855dca38e24e88 (diff)
downloadgcc-293ac1ba6157c060bc053288b7ed0ae03622fe07.zip
gcc-293ac1ba6157c060bc053288b7ed0ae03622fe07.tar.gz
gcc-293ac1ba6157c060bc053288b7ed0ae03622fe07.tar.bz2
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>
Diffstat (limited to 'gcc/rust/ast/rust-ast.cc')
0 files changed, 0 insertions, 0 deletions