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

Add receiver lang item #3374

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Conversation

Lishin1215
Copy link
Contributor

Add and implement a lang item (receiver) in source code.
Fix #2954

gcc/rust/ChangeLog:

* util/rust-lang-item.cc: Add receiver to map.
* util/rust-lang-item.h: Define LangItem::Kind::RECEIVER.

gcc/testsuite/ChangeLog:

* rust/compile/issue-2954.rs: New test.

@Lishin1215 Lishin1215 force-pushed the add-receiver-lang-item branch from da8e102 to ca671de Compare January 20, 2025 20:53
Add and implement a lang item (receiver) in source code.

gcc/rust/ChangeLog:

	* util/rust-lang-item.cc: Add receiver to map.
	* util/rust-lang-item.h: Define LangItem::Kind::RECEIVER.

gcc/testsuite/ChangeLog:

	* rust/compile/issue-2954.rs: New test.

Signed-off-by: lishin <lishin1008@gmail.com>
Copy link
Member

@philberty philberty left a comment

Choose a reason for hiding this comment

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

LGTM

@philberty philberty added this pull request to the merge queue Jan 21, 2025
Merged via the queue into Rust-GCC:master with commit 8a50054 Jan 21, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Unknown lang item : receiver
2 participants