aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2024-09-23 17:44:19 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-19 15:32:11 +0100
commit88524c5314967f013f1596cdd935da4d9dc27500 (patch)
tree4cc8028c1e7106f766cb98848f043cfd41250eb8 /gcc
parent70228a4ba99cdb5a152dceb10aa754bc0acb4aea (diff)
downloadgcc-88524c5314967f013f1596cdd935da4d9dc27500.zip
gcc-88524c5314967f013f1596cdd935da4d9dc27500.tar.gz
gcc-88524c5314967f013f1596cdd935da4d9dc27500.tar.bz2
gccrs: Remove some overloaded methods from DefaultResolver.
gcc/rust/ChangeLog: * resolve/rust-default-resolver.cc (DefaultResolver::visit): Remove some empty overloads which DefaultASTVisitor::visit should be able to handle. * resolve/rust-default-resolver.h (DefaultResolver::visit): Likewise. gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: Remove entries. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/resolve/rust-default-resolver.cc84
-rw-r--r--gcc/rust/resolve/rust-default-resolver.h21
-rw-r--r--gcc/testsuite/rust/compile/nr2/exclude16
3 files changed, 0 insertions, 121 deletions
diff --git a/gcc/rust/resolve/rust-default-resolver.cc b/gcc/rust/resolve/rust-default-resolver.cc
index 6de694f..89e7e39 100644
--- a/gcc/rust/resolve/rust-default-resolver.cc
+++ b/gcc/rust/resolve/rust-default-resolver.cc
@@ -549,70 +549,6 @@ DefaultResolver::visit (AST::MetaListNameValueStr &)
{}
void
-DefaultResolver::visit (AST::RangePatternBoundPath &)
-{}
-
-void
-DefaultResolver::visit (AST::RangePatternBoundQualPath &)
-{}
-
-void
-DefaultResolver::visit (AST::RangePattern &)
-{}
-
-void
-DefaultResolver::visit (AST::ReferencePattern &)
-{}
-
-void
-DefaultResolver::visit (AST::StructPatternFieldTuplePat &)
-{}
-
-void
-DefaultResolver::visit (AST::StructPatternFieldIdentPat &)
-{}
-
-void
-DefaultResolver::visit (AST::StructPatternFieldIdent &)
-{}
-
-void
-DefaultResolver::visit (AST::StructPattern &)
-{}
-
-void
-DefaultResolver::visit (AST::TupleStructItemsNoRange &)
-{}
-
-void
-DefaultResolver::visit (AST::TupleStructItemsRange &)
-{}
-
-void
-DefaultResolver::visit (AST::TupleStructPattern &)
-{}
-
-void
-DefaultResolver::visit (AST::TuplePatternItemsMultiple &)
-{}
-
-void
-DefaultResolver::visit (AST::TuplePatternItemsRanged &)
-{}
-
-void
-DefaultResolver::visit (AST::TuplePattern &)
-{}
-
-void
-DefaultResolver::visit (AST::GroupedPattern &)
-{}
-
-void
-DefaultResolver::visit (AST::SlicePattern &)
-{}
-
-void
DefaultResolver::visit (AST::AltPattern &)
{}
@@ -633,10 +569,6 @@ DefaultResolver::visit (AST::TraitObjectType &)
{}
void
-DefaultResolver::visit (AST::ParenthesisedType &)
-{}
-
-void
DefaultResolver::visit (AST::ImplTraitTypeOneBound &)
{}
@@ -645,22 +577,6 @@ DefaultResolver::visit (AST::TraitObjectTypeOneBound &)
{}
void
-DefaultResolver::visit (AST::TupleType &)
-{}
-
-void
-DefaultResolver::visit (AST::ReferenceType &)
-{}
-
-void
-DefaultResolver::visit (AST::ArrayType &)
-{}
-
-void
-DefaultResolver::visit (AST::SliceType &)
-{}
-
-void
DefaultResolver::visit (AST::BareFunctionType &)
{}
diff --git a/gcc/rust/resolve/rust-default-resolver.h b/gcc/rust/resolve/rust-default-resolver.h
index 6bca8b7..3774603 100644
--- a/gcc/rust/resolve/rust-default-resolver.h
+++ b/gcc/rust/resolve/rust-default-resolver.h
@@ -126,34 +126,13 @@ public:
void visit (AST::MetaItemSeq &);
void visit (AST::MetaListPaths &);
void visit (AST::MetaListNameValueStr &);
- void visit (AST::RangePatternBoundPath &);
- void visit (AST::RangePatternBoundQualPath &);
- void visit (AST::RangePattern &);
- void visit (AST::ReferencePattern &);
- void visit (AST::StructPatternFieldTuplePat &);
- void visit (AST::StructPatternFieldIdentPat &);
- void visit (AST::StructPatternFieldIdent &);
- void visit (AST::StructPattern &);
- void visit (AST::TupleStructItemsNoRange &);
- void visit (AST::TupleStructItemsRange &);
- void visit (AST::TupleStructPattern &);
- void visit (AST::TuplePatternItemsMultiple &);
- void visit (AST::TuplePatternItemsRanged &);
- void visit (AST::TuplePattern &);
- void visit (AST::GroupedPattern &);
- void visit (AST::SlicePattern &);
void visit (AST::AltPattern &);
void visit (AST::EmptyStmt &);
void visit (AST::TraitBound &);
void visit (AST::ImplTraitType &);
void visit (AST::TraitObjectType &);
- void visit (AST::ParenthesisedType &);
void visit (AST::ImplTraitTypeOneBound &);
void visit (AST::TraitObjectTypeOneBound &);
- void visit (AST::TupleType &);
- void visit (AST::ReferenceType &);
- void visit (AST::ArrayType &);
- void visit (AST::SliceType &);
void visit (AST::BareFunctionType &);
void visit (AST::FunctionParam &);
void visit (AST::VariadicParam &);
diff --git a/gcc/testsuite/rust/compile/nr2/exclude b/gcc/testsuite/rust/compile/nr2/exclude
index 3251921..8993c6d 100644
--- a/gcc/testsuite/rust/compile/nr2/exclude
+++ b/gcc/testsuite/rust/compile/nr2/exclude
@@ -4,9 +4,6 @@ debug-diagnostics-on.rs
# main list
all-cast.rs
-array3.rs
-arrays1.rs
-arrays2.rs
attr-mismatch-crate-name.rs
attr_deprecated.rs
attr_deprecated_2.rs
@@ -37,11 +34,8 @@ complex-path1.rs
complex_qualified_path_in_expr.rs
const-issue1440.rs
const1.rs
-const10.rs
const3.rs
const4.rs
-const5.rs
-const6.rs
const8.rs
const9.rs
const_generics_1.rs
@@ -84,13 +78,11 @@ infer-crate-name.rs
issue-1005.rs
issue-1006.rs
issue-1019.rs
-issue-1023.rs
issue-1031.rs
issue-1034.rs
issue-1073.rs
issue-1089.rs
issue-1128.rs
-issue-1129-1.rs
issue-1129-2.rs
issue-1130.rs
issue-1131.rs
@@ -99,7 +91,6 @@ issue-1165.rs
issue-1173.rs
issue-1235.rs
issue-1237.rs
-issue-1271.rs
issue-1272.rs
issue-1289.rs
issue-1383.rs
@@ -118,7 +109,6 @@ issue-1981.rs
issue-2019-1.rs
issue-2019-2.rs
issue-2019-3.rs
-issue-2029.rs
issue-2036.rs
issue-2037.rs
issue-2039.rs
@@ -154,7 +144,6 @@ issue-2747.rs
issue-2782.rs
issue-2788.rs
issue-2812.rs
-issue-2847-b.rs
issue-850.rs
issue-852.rs
issue-855.rs
@@ -214,7 +203,6 @@ privacy4.rs
privacy5.rs
privacy6.rs
privacy8.rs
-privacy9.rs
macros/proc/attribute_non_function.rs
macros/proc/attribute_non_root_method.rs
macros/proc/derive_non_function.rs
@@ -228,8 +216,6 @@ redef_error2.rs
redef_error4.rs
redef_error5.rs
redef_error6.rs
-ref_pattern_fn_param2.rs
-reference1.rs
rustc_attr1.rs
self-path1.rs
self-path2.rs
@@ -251,8 +237,6 @@ traits6.rs
traits7.rs
traits8.rs
traits9.rs
-tuple1.rs
-tuple_mismatch.rs
tuple_struct1.rs
type-alias1.rs
type-bindings1.rs