aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2024-10-10 00:46:01 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-19 15:32:16 +0100
commitb05e174a34799f5a24235ff5d553387963c41da4 (patch)
tree2f7a8cbfb5935172381e7b1a7054cc0790f570c6 /gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h
parente71b4d671a71588c0fd7d6833bbec539e82562e3 (diff)
downloadgcc-b05e174a34799f5a24235ff5d553387963c41da4.zip
gcc-b05e174a34799f5a24235ff5d553387963c41da4.tar.gz
gcc-b05e174a34799f5a24235ff5d553387963c41da4.tar.bz2
gccrs: Handle TypeAlias during toplevel resolution 2.0
gcc/rust/ChangeLog: * resolve/rust-toplevel-name-resolver-2.0.cc (TopLevel::visit): Handle TypeAlias. * resolve/rust-toplevel-name-resolver-2.0.h (TopLevel::visit): Likewise. gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: Remove type-alias1.rs. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h')
-rw-r--r--gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h
index 09b2261..cc301ed 100644
--- a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h
+++ b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h
@@ -161,6 +161,7 @@ private:
void visit (AST::Enum &enum_item) override;
void visit (AST::Union &union_item) override;
void visit (AST::ConstantItem &const_item) override;
+ void visit (AST::TypeAlias &type_item) override;
void visit (AST::ExternCrate &crate) override;
void visit (AST::TypeParam &type_param) override;