Skip to content

Commit

Permalink
resolve tuple struct attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
powerboat9 committed Feb 29, 2024
1 parent 54f6176 commit a999b59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gcc/rust/resolve/rust-early-name-resolver-2.0.cc
Original file line number Diff line number Diff line change
Expand Up @@ -330,5 +330,12 @@ Early::visit (AST::StructStruct &s)
DefaultResolver::visit (s);
}

void
Early::visit (AST::TupleStruct &s)
{
visit_attributes (s.get_outer_attrs ());
DefaultResolver::visit (s);
}

} // namespace Resolver2_0
} // namespace Rust
1 change: 1 addition & 0 deletions gcc/rust/resolve/rust-early-name-resolver-2.0.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Early : public DefaultResolver

void visit (AST::Function &) override;
void visit (AST::StructStruct &) override;
void visit (AST::TupleStruct &) override;

bool has_changed () const { return f_has_changed; }
void mark_changed () { f_has_changed = true; }
Expand Down

0 comments on commit a999b59

Please sign in to comment.