Skip to content

Fix test same_field_name.rs #3788

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

Merged
merged 1 commit into from
May 13, 2025
Merged

Conversation

powerboat9
Copy link
Collaborator

As far as I can tell, this test should have been a compile test. Also, it seems like execute tests don't interact well with dg-error directives.

gcc/rust/ChangeLog:

	* hir/rust-ast-lower-item.cc
	(ASTLoweringItem::visit): Keep going after a duplicate field is
	found.

gcc/testsuite/ChangeLog:

	* rust/execute/same_field_name.rs: Move to...
	* rust/compile/same_field_name.rs: ...here and adjust expected
	errors.

Signed-off-by: Owen Avery <[email protected]>
@philberty philberty added this pull request to the merge queue May 13, 2025
Merged via the queue into Rust-GCC:master with commit f33bae6 May 13, 2025
12 checks passed
@powerboat9 powerboat9 deleted the fix-field branch May 13, 2025 10:21
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