Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve handling of types in DefaultResolver #3181

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 0 additions & 84 deletions gcc/rust/resolve/rust-default-resolver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -548,70 +548,6 @@ void
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 &)
{}
Expand All @@ -632,10 +568,6 @@ void
DefaultResolver::visit (AST::TraitObjectType &)
{}

void
DefaultResolver::visit (AST::ParenthesisedType &)
{}

void
DefaultResolver::visit (AST::ImplTraitTypeOneBound &)
{}
Expand All @@ -644,22 +576,6 @@ void
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 &)
{}
Expand Down
21 changes: 0 additions & 21 deletions gcc/rust/resolve/rust-default-resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,34 +126,13 @@ class DefaultResolver : public AST::DefaultASTVisitor
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 &);
Expand Down
16 changes: 0 additions & 16 deletions gcc/testsuite/rust/compile/nr2/exclude
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Loading