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

Unnamed fields of struct and union type #2102

Merged
merged 22 commits into from
Apr 9, 2018
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3946e44
Add unnamed fields RFC
joshtriplett Aug 9, 2017
a29c4b7
Explicitly note that we cannot implement this as a macro
joshtriplett Aug 9, 2017
49466b1
Mention alias mechanism as an alternative
joshtriplett Aug 9, 2017
55ae14f
Clarify the explanation of `siginfo_t`
joshtriplett Aug 9, 2017
ca3ca0c
Mention other interface issues this does not attempt to address
joshtriplett Aug 17, 2017
592b8b9
Add an explanation of the mental model, with a diagram
joshtriplett Aug 17, 2017
275a2c2
Per discussion, limit to repr(C)
joshtriplett Aug 17, 2017
49db3d4
Document precedent for limiting to repr(C)
joshtriplett Aug 17, 2017
bd37bd2
Add alternative syntax for declaring unnamed fields with named types
joshtriplett Aug 17, 2017
bb350be
Allow struct-in-struct and union-in-union
joshtriplett Sep 7, 2017
bd98f9f
Don't enumerate (a subset of) possible visibilities for fields
joshtriplett Sep 8, 2017
3ce66a1
Update summary and parsing section for struct-in-struct and union-in-…
joshtriplett Sep 8, 2017
e164166
Change the syntax to use a field name of `_`
joshtriplett Sep 8, 2017
45350b4
Add a section on pattern matching
joshtriplett Sep 8, 2017
c7961d8
Explicitly state that the layout and alignment must match the C ABI
joshtriplett Sep 8, 2017
e504dd7
Allow unnamed fields with named types
joshtriplett Sep 8, 2017
917e073
Clarify union field borrowing
joshtriplett Sep 8, 2017
9e2f5f0
Explicitly add `repr(C)` in all examples
joshtriplett Sep 8, 2017
a826357
Only propagate repr(C); show how to write repr(packed) explicitly
joshtriplett Sep 8, 2017
2ceb8e7
Add a clarification for a corner case involving generics
joshtriplett Sep 18, 2017
adcdbf0
Explicitly prohibit type parameters as named types of unnamed fields
joshtriplett Jan 29, 2018
1242d1a
RFC 2102
Centril Apr 9, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading