Skip to content

Commit

Permalink
Specify updated repr(C) enum discriminat type correspondence
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Aug 3, 2023
1 parent 8a2b7af commit 4ef127e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,14 @@ C representation
:dt:`C representation` is a :t:`type representation` that lays out :t:`[type]s`
such that they are interoperable with the :t:`C` language.

.. _fls_fls_J0xUy4Mcxoe6:

C signed int type
^^^^^^^^^^^^^^^^^

:dp:`fls_8QIcvapJehqY`
:dt:`C signed int type` is the `signed int` :t:`type` of the :t:`C` language.

.. _fls_Egfa8tdbqllA:

Call conformance
Expand Down Expand Up @@ -2554,7 +2562,7 @@ generic associated type
^^^^^^^^^^^^^^^^^^^^^^^

:dp:`fls_O4wckPZPmree`
A :dt:`generic associated type` is an :t:`associated type` with
A :dt:`generic associated type` is an :t:`associated type` with
:t:`[generic parameter]s`.

.. _fls_3uFg0NK5fYQ6:
Expand Down Expand Up @@ -3057,7 +3065,7 @@ implied bound
:dp:`fls_t77d8xwG1l9Q`
An :dt:`implied bound` is a :t:`bound` that is not expressed in syntax, but is
is the byproduct of relations between :t:`[lifetime parameter]s` and
:t:`[function parameter]s`, between :t:`[lifetime parameter]s` and a
:t:`[function parameter]s`, between :t:`[lifetime parameter]s` and a
:t:`return type`, and between :t:`[lifetime parameter]s` and :t:`[field]s`.

.. _fls_3lo8ygoyxxyf:
Expand Down
3 changes: 2 additions & 1 deletion src/types-and-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,8 @@ subject to :t:`C representation`, :t:`default representation`, or

:dp:`fls_s9c0a0lg6c0p`
The :t:`discriminant type` of an :t:`enum type` with :t:`C representation` is
the :t:`type` of a :t:`C` ``enum`` for the target platform's :t:`C` :t:`ABI`.
the corresponding :t:`c signed int type` for the target platform's :t:`C`
:t:`ABI`.

:dp:`fls_slhvf3gmqz4h`
The :t:`discriminant type` of an :t:`enum type` with :t:`default representation`
Expand Down

0 comments on commit 4ef127e

Please sign in to comment.