-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unnamed fields of struct and union type #2102
Commits on Aug 9, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 3946e44 - Browse repository at this point
Copy the full SHA 3946e44View commit details -
Configuration menu - View commit details
-
Copy full SHA for a29c4b7 - Browse repository at this point
Copy the full SHA a29c4b7View commit details -
Mention alias mechanism as an alternative
Also discuss the drawbacks of that alternative.
Configuration menu - View commit details
-
Copy full SHA for 49466b1 - Browse repository at this point
Copy the full SHA 49466b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55ae14f - Browse repository at this point
Copy the full SHA 55ae14fView commit details
Commits on Aug 17, 2017
-
Mention other interface issues this does not attempt to address
Deferred to future RFCs, in the interests of focusing on one problem at a time.
Configuration menu - View commit details
-
Copy full SHA for ca3ca0c - Browse repository at this point
Copy the full SHA ca3ca0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 592b8b9 - Browse repository at this point
Copy the full SHA 592b8b9View commit details -
Per discussion, limit to repr(C)
While this feature potentially has value as a layout mechanism for Rust data structures, it exists primarily to support native platform APIs. Accordingly, limit its applicability to only repr(C) data structures. Also document the use of `repr(packed)` with this mechanism.
Configuration menu - View commit details
-
Copy full SHA for 275a2c2 - Browse repository at this point
Copy the full SHA 275a2c2View commit details -
Document precedent for limiting to repr(C)
Variadic functions require extern "C".
Configuration menu - View commit details
-
Copy full SHA for 49db3d4 - Browse repository at this point
Copy the full SHA 49db3d4View commit details -
Add alternative syntax for declaring unnamed fields with named types
Suggested by Peter Atashian.
Configuration menu - View commit details
-
Copy full SHA for bd37bd2 - Browse repository at this point
Copy the full SHA bd37bd2View commit details
Commits on Sep 7, 2017
-
Configuration menu - View commit details
-
Copy full SHA for bb350be - Browse repository at this point
Copy the full SHA bb350beView commit details
Commits on Sep 8, 2017
-
Configuration menu - View commit details
-
Copy full SHA for bd98f9f - Browse repository at this point
Copy the full SHA bd98f9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ce66a1 - Browse repository at this point
Copy the full SHA 3ce66a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e164166 - Browse repository at this point
Copy the full SHA e164166View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45350b4 - Browse repository at this point
Copy the full SHA 45350b4View commit details -
Explicitly state that the layout and alignment must match the C ABI
Keep the explanation for what that means in practice, but state the more critical constraint up front.
Configuration menu - View commit details
-
Copy full SHA for c7961d8 - Browse repository at this point
Copy the full SHA c7961d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e504dd7 - Browse repository at this point
Copy the full SHA e504dd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 917e073 - Browse repository at this point
Copy the full SHA 917e073View commit details -
Explicitly add
repr(C)
in all examplesSince the feature requires `repr(C)`, the examples should reflect that.
Configuration menu - View commit details
-
Copy full SHA for 9e2f5f0 - Browse repository at this point
Copy the full SHA 9e2f5f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a826357 - Browse repository at this point
Copy the full SHA a826357View commit details
Commits on Sep 18, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 2ceb8e7 - Browse repository at this point
Copy the full SHA 2ceb8e7View commit details
Commits on Jan 29, 2018
-
Configuration menu - View commit details
-
Copy full SHA for adcdbf0 - Browse repository at this point
Copy the full SHA adcdbf0View commit details
Commits on Apr 9, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 1242d1a - Browse repository at this point
Copy the full SHA 1242d1aView commit details