Add whitelist of safe intrinsics - #6307
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.