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

Experimentally add ffi_const and ffi_pure extern fn attributes #71718

Merged
merged 3 commits into from
May 21, 2020

Conversation

neocturne
Copy link
Contributor

Add FFI function attributes corresponding to clang/gcc/... const and pure.

Rebased version of #58327 by @gnzlbg with the following changes:

r? @hanna-kruppe

@rust-highfive
Copy link
Collaborator

Some changes occurred in diagnostic error codes

cc @GuillaumeGomez

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 30, 2020
@hanna-kruppe
Copy link
Contributor

Unfortunately I'm too swamped with non-Rust work to take on any more reviews at this time.

@bors
Copy link
Contributor

bors commented May 2, 2020

☔ The latest upstream changes (presumably #69274) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Contributor

bors commented May 3, 2020

☔ The latest upstream changes (presumably #71828) made this pull request unmergeable. Please resolve the merge conflicts.

@joelpalmer joelpalmer added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 19, 2020
@Dylan-DPC-zz
Copy link

r? @Mark-Simulacrum

@bors
Copy link
Contributor

bors commented May 19, 2020

☔ The latest upstream changes (presumably #69171) made this pull request unmergeable. Please resolve the merge conflicts.

Introduce function attribute corresponding to the `const`/`pure`
attributes supported by GCC, clang and other compilers.

Based on the work of gnzlbg <gonzalobg88@gmail.com>.
Based on the work of gnzlbg <gonzalobg88@gmail.com>.
…able book

Based on the work of gnzlbg <gonzalobg88@gmail.com>.
@Amanieu
Copy link
Member

Amanieu commented May 21, 2020

@bors r+

@bors
Copy link
Contributor

bors commented May 21, 2020

📌 Commit a114a23 has been approved by Amanieu

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 21, 2020
RalfJung added a commit to RalfJung/rust that referenced this pull request May 21, 2020
Experimentally add `ffi_const` and `ffi_pure` extern fn attributes

Add FFI function attributes corresponding to clang/gcc/... `const` and `pure`.

Rebased version of rust-lang#58327 by @gnzlbg with the following changes:

- Switched back from the `c_ffi_const` and `c_ffi_pure` naming to `ffi_const` and `ffi_pure`, as I agree with rust-lang#58327 (comment) and this nicely aligns with `ffi_returns_twice`
- (Hopefully) took care of all of @hanna-kruppe's change requests in the original PR

r? @hanna-kruppe
@bors
Copy link
Contributor

bors commented May 21, 2020

⌛ Testing commit a114a23 with merge 148c125...

@bors
Copy link
Contributor

bors commented May 21, 2020

☀️ Test successful - checks-azure
Approved by: Amanieu
Pushing 148c125 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants