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

Use rustc_safe_intrinsic attribute to check for intrinsic safety #13866

Merged
merged 1 commit into from Dec 30, 2022
Merged

Use rustc_safe_intrinsic attribute to check for intrinsic safety #13866

merged 1 commit into from Dec 30, 2022

Conversation

Nilstrieb
Copy link
Member

Instead of maintaining a list that is poorly kept in sync we can just use the attribute.

This will make new RA versions unusable with old toolchains that don't have the attribute yet. Should we keep maintaining the list as a fallback or just don't care?

Instead of maintaining a list that is poorly kept in sync we can just
use the attribute.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 30, 2022
@Veykril
Copy link
Member

Veykril commented Dec 30, 2022

When was this attribute introduced in rust? If it's been there for a few stable releases then that's fine, we generally don't try to support toolchains older than ~3 releases

@Nilstrieb
Copy link
Member Author

It's rust-lang/rust#100719 which has only been merged about 4 months ago, so that's not that many stables yet. But since this touches intrinsics, people that are impacted by this will use nightly (or the beta bootstrap compiler in core/std itself, which is why I wanted to implement this in the first place).

@Veykril
Copy link
Member

Veykril commented Dec 30, 2022

Ye, that seems fine to merge now then imo 👍
@bors r+

@bors
Copy link
Collaborator

bors commented Dec 30, 2022

📌 Commit 72afcf2 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Dec 30, 2022

⌛ Testing commit 72afcf2 with merge 0d76b94...

@bors
Copy link
Collaborator

bors commented Dec 30, 2022

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 0d76b94 to master...

@bors bors merged commit 0d76b94 into rust-lang:master Dec 30, 2022
bors added a commit that referenced this pull request Dec 31, 2022
minor: remove unused known `Name`s

After #13866, known `Name`s for safe intrinsics are no longer used and thus should be removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants