Skip to content

nr2.0: Enable by default #3840

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

powerboat9
Copy link
Collaborator

This depends on a few other PRs, but when merged should switch us over to nr2.0 by default

This prioritizes resolution in the language prelude over resolution as a
module.

gcc/rust/ChangeLog:

	* resolve/rust-forever-stack.hxx (ForeverStack::resolve_path):
	Resolve final segments which point to modules.
	* resolve/rust-toplevel-name-resolver-2.0.cc (TopLevel::visit):
	Avoid inserting module names into ribs in the type namespace.

gcc/testsuite/ChangeLog:

	* rust/compile/nr2/exclude: Remove issue-3315-2.rs.

Signed-off-by: Owen Avery <[email protected]>
gcc/rust/ChangeLog:

	* lang.opt (frust-name-resolution-2.0): Enable by default.

gcc/testsuite/ChangeLog:

	* rust/compile/nr2/compile.exp: Removed.
	* rust/compile/nr2/exclude: Removed.

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

@P-E-P @CohenArthur @philberty This should be ready to merge

@powerboat9 powerboat9 marked this pull request as ready for review June 30, 2025 21:42
@P-E-P P-E-P requested review from P-E-P, philberty and CohenArthur July 1, 2025 12:26
@philberty
Copy link
Member

This is kind of exciting and very scary all at the same time I am happy with it but this needs to come from @CohenArthur to merge it.

Once its merged we really need a MR to remove the old one having all that old code hanging around will be really annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants