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: fix ICE when we have unimplemented/invalid trait items #2484

Merged
merged 1 commit into from
Jul 29, 2023

Conversation

philberty
Copy link
Member

When the resulting trait item is in an error state this means the underlying fields will be null.

Fixes #2478

When the resulting trait item is in an error state this means the
underlying fields will be null.

Fixes #2478

gcc/rust/ChangeLog:

	* typecheck/rust-hir-type-check-item.cc: add is_error check

gcc/testsuite/ChangeLog:

	* rust/compile/non_member_const.rs: add missing error message
	* rust/compile/issue-2478.rs: New test.

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
@philberty philberty added the bug label Jul 29, 2023
@philberty philberty enabled auto-merge July 29, 2023 16:38
@philberty philberty added this pull request to the merge queue Jul 29, 2023
Merged via the queue into master with commit 5a378ed Jul 29, 2023
@philberty philberty deleted the phil/ice-trait-item branch July 31, 2023 09:02
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.

ICE - Segmentation fault after unknown trait item
1 participant