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

nr2.0: Improve default and top-level resolvers #3332

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

powerboat9
Copy link
Contributor

May overlap with #3307, apologies to @liamnaddell

Copy link
Member

@CohenArthur CohenArthur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these all look great, thank you! I merged #3307, so you might have to rebase this in a little bit. very happy to merge that, great work!

@powerboat9
Copy link
Contributor Author

Rebased

@powerboat9 powerboat9 requested a review from CohenArthur January 2, 2025 11:02
@CohenArthur CohenArthur added this pull request to the merge queue Jan 6, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jan 6, 2025
gcc/rust/ChangeLog:

	* resolve/rust-default-resolver.cc
	(DefaultResolver::visit): Make sure to scope visitation of the
	children of type definition items.
	* resolve/rust-default-resolver.h
	(DefaultResolver::visit): Add overrides for TupleStruct, Union,
	and TypeAlias.
	* resolve/rust-late-name-resolver-2.0.cc
	(Late::visit): Remove override for Enum.
	* resolve/rust-late-name-resolver-2.0.h
	(Late::visit): Likewise.
	* resolve/rust-toplevel-name-resolver-2.0.cc
	(TopLevel::visit): Rely more on DefaultResolver::visit.
	* resolve/rust-toplevel-name-resolver-2.0.h
	(TopLevel::visit): Remove override for BlockExpr.

gcc/testsuite/ChangeLog:

	* rust/compile/nr2/exclude: Remove entries.

Signed-off-by: Owen Avery <[email protected]>
@powerboat9
Copy link
Contributor Author

Should be fixed now

@CohenArthur CohenArthur added this pull request to the merge queue Jan 7, 2025
Merged via the queue into Rust-GCC:master with commit fa6747f Jan 7, 2025
12 checks passed
@powerboat9 powerboat9 deleted the def-visit-top branch January 7, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants