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

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

Conversation

Lishin1215
Copy link

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 <[email protected]>
@Lishin1215 Lishin1215 force-pushed the add-receiver-lang-item branch from ca671de to 4854e29 Compare January 20, 2025 21:12
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.

Unknown lang item : receiver
1 participant