-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add whitelist of safe intrinsics #6307
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
Conversation
Awesome, thanks for the PR :-). In other places we clone the repository and read the files from there, but this feels like such a huge wart TBH... |
Regarding the type of the extern block, the AST looks like this:
|
I think you can get the |
✌️ frazar can now approve this pull request. To approve and merge a pull request, simply reply with |
Thank you for your feedback and comments. I think I addressed all points, except for the issue about checking the ABI name, which I guess is blocked on #6308. Also, I'm not sure why CI failed for macos-latest.. It might be unrelated. Let me know what should I do next! |
bors r=frazar |
Great! As a final note, would you mind adding the |
Sure, done. |
This PR should fix #5996, where intrinsic operations where all marked as unsafe.
I'm rather new to this codebase, so I might be doing something very wrong. Please forgive me!
In particular, I'm not sure how to "check that we are in extern
rust-intrinsics
" as mentioned in this comment.