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

Modify test cfg1.rs for name resolution 2.0 #3208

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

powerboat9
Copy link
Contributor

@powerboat9 powerboat9 commented Oct 17, 2024

This PR tweaks cfg1.rs so that it passes with name resolution 2.0. As an alternative we could modify the error message emitted by name resolution 2.0 to match that emitted by name resolution 1.0, or to match that emitted by rustc.

gcc/testsuite/ChangeLog:

	* rust/compile/cfg1.rs: Run test with name resolution 2.0 only
	and adjust expected error message.
	* rust/compile/nr2/exclude: Remove cfg1.rs.

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

powerboat9 commented Oct 20, 2024

Going to turn this into a draft

@powerboat9 powerboat9 marked this pull request as draft October 20, 2024 01:37
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.

since this is a cfg testcase, I think it's fair to duplicate it for now and add the -frust-name-resolution2.0 option to the duplicate. IMO we should get all testcases working, then switch to NR2.0 by default, then delete the "original NR1" testcases and replace them with the duplicates

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