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

gccrs: Remove bad assertion in name resolution #3280

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Conversation

philberty
Copy link
Member

This was a handy debug assertion but only works for valid rust code. This needs to handle the case where the type is not resolved which is a valid case.

Fixes #2423

gcc/rust/ChangeLog:

* resolve/rust-ast-resolve-item.cc (ResolveItem::visit): remove assertions

gcc/testsuite/ChangeLog:

* rust/compile/nr2/exclude: nr2 can't handle this
* rust/compile/issue-2423.rs: New test.

This was a handy debug assertion but only works for valid rust code. This
needs to handle the case where the type is not resolved which is a valid
case.

Fixes #2423

gcc/rust/ChangeLog:

	* resolve/rust-ast-resolve-item.cc (ResolveItem::visit): remove assertions

gcc/testsuite/ChangeLog:

	* rust/compile/nr2/exclude: nr2 can't handle this
	* rust/compile/issue-2423.rs: New test.

Signed-off-by: Philip Herron <[email protected]>
@philberty philberty added the bug label Dec 2, 2024
@philberty philberty added this to the Remaining typecheck issues milestone Dec 2, 2024
@philberty philberty added this pull request to the merge queue Dec 2, 2024
Merged via the queue into master with commit fa93e28 Dec 2, 2024
13 checks passed
@philberty philberty deleted the phil/resolve-ice branch December 12, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Inherit Implementation of type outside current crate - Internal Compile Error
1 participant