Support Result<T, E> across FFI when niche optimization can be used by MasterAwesome · Pull Request #122253 · rust-lang/rust (original) (raw)
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 andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation26 Commits9 Checks18 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
Allow allow enums like Result<T, E>
to be used across FFI if the T/E can be niche optimized and the non-niche-optimized type is FFI safe.
Implementation of rust-lang/rfcs#3391
Tracking issue: #110503
Additional ABI and codegen tests were added in #115372
r? @cjgillot
rustbot has assigned @cjgillot.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.
Use r? to explicitly pick a reviewer
rustbot added S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Sorry, I can't review these lint implementations.
Maybe r? @davidtwco ; I see you've worked on the improper-ctypes lint in the past.
rustbot added S-waiting-on-author
Status: This is awaiting some action (such as code changes or more information) from the author.
and removed S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
labels
rustbot added S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
and removed S-waiting-on-author
Status: This is awaiting some action (such as code changes or more information) from the author.
labels
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me after rebasing
Allow allow enums like Result<T, E>
to be used across FFI if the
T/E can be niche optimized and the non-niche-optimized type is FFI safe.
Fields are disallowed so checking the top attribute is enough.
I guess I don't have permissions @davidtwco, can you queue this in?
📌 Commit ed532cc has been approved by davidtwco
It is now in the queue for this repository.
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
bors added a commit to rust-lang-ci/rust that referenced this pull request
Support Result<T, E> across FFI when niche optimization can be used
Allow allow enums like Result<T, E>
to be used across FFI if the T/E can be niche optimized and the non-niche-optimized type is FFI safe.
Implementation of rust-lang/rfcs#3391 Tracking issue: rust-lang#110503
Additional ABI and codegen tests were added in rust-lang#115372
fmease added a commit to fmease/rust that referenced this pull request
Support Result<T, E> across FFI when niche optimization can be used
Allow allow enums like Result<T, E>
to be used across FFI if the T/E can be niche optimized and the non-niche-optimized type is FFI safe.
Implementation of rust-lang/rfcs#3391 Tracking issue: rust-lang#110503
Additional ABI and codegen tests were added in rust-lang#115372
bors added a commit to rust-lang-ci/rust that referenced this pull request
Rollup of 7 pull requests
Successful merges:
- rust-lang#122253 (Support Result<T, E> across FFI when niche optimization can be used)
- rust-lang#123892 (Document That
f16
Andf128
Hardware Support is Limited) - rust-lang#124458 (Implement lldb formattter for "clang encoded" enums (LLDB 18.1+))
- rust-lang#124459 (Stabilize exclusive_range_pattern)
- rust-lang#124711 (Migrate
run-make/doctests-runtool
to rmake) - rust-lang#124725 (Meta: Enable the brand new triagebot transfer command)
- rust-lang#124727 (Miri subtree update)
r? @ghost
@rustbot
modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request
Rollup of 7 pull requests
Successful merges:
- rust-lang#122253 (Support Result<T, E> across FFI when niche optimization can be used)
- rust-lang#123892 (Document That
f16
Andf128
Hardware Support is Limited) - rust-lang#124458 (Implement lldb formattter for "clang encoded" enums (LLDB 18.1+))
- rust-lang#124459 (Stabilize exclusive_range_pattern)
- rust-lang#124711 (Migrate
run-make/doctests-runtool
to rmake) - rust-lang#124725 (Meta: Enable the brand new triagebot transfer command)
- rust-lang#124727 (Miri subtree update)
r? @ghost
@rustbot
modify labels: rollup
This PR has been merged by accident, without the full test suite being run. It was my fault (#124631 got merged and it broke our CI). @MasterAwesome Could you please create a new PR with your branch against the latest version of origin/master
? Thank you, and sorry for the mess.
New PR, from the same branch: #124747
fmease added a commit to fmease/rust that referenced this pull request
fmease added a commit to fmease/rust that referenced this pull request
bors added a commit to rust-lang-ci/rust that referenced this pull request
Area: Foreign function interface (FFI)
label
Labels
Area: Foreign function interface (FFI)
This PR was explicitly merged by bors.
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Relevant to the compiler team, which will review and decide on the PR/issue.