Skip to content

nr2.0: Enable by default#3840

Merged
P-E-P merged 2 commits into
Rust-GCC:masterfrom
powerboat9:fix-pen-2
Jul 3, 2025
Merged

nr2.0: Enable by default#3840
P-E-P merged 2 commits into
Rust-GCC:masterfrom
powerboat9:fix-pen-2

Conversation

@powerboat9

Copy link
Copy Markdown
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 <powerboat9.gamer@gmail.com>
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 <powerboat9.gamer@gmail.com>
@powerboat9

Copy link
Copy Markdown
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 CohenArthur, P-E-P and philberty July 1, 2025 12:26
@philberty

Copy link
Copy Markdown
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.

@CohenArthur CohenArthur left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!!! this is so cool :D I agree with Philip, a subsequent PR should be the removal of the old one + the removal of the flag + all of the checks around the flag. well done @powerboat9 you did some great work

@powerboat9

Copy link
Copy Markdown
Collaborator Author

Thank you

@P-E-P P-E-P added this pull request to the merge queue Jul 3, 2025
Merged via the queue into Rust-GCC:master with commit bba0618 Jul 3, 2025
13 checks passed
@powerboat9 powerboat9 deleted the fix-pen-2 branch July 3, 2025 17:19
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.

4 participants