Skip to content

Commit 4861ff0

Browse files
committed
Simplify further
1 parent b154cb4 commit 4861ff0

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

reference/src/glossary.md

+5-15
Original file line numberDiff line numberDiff line change
@@ -106,30 +106,20 @@ pub enum Abi {
106106
}
107107
```
108108

109-
where:
110-
111-
```rust,norun
112-
enum Integer { I8, I16, I32, I64, I128, }
113-
enum FloatTy { F32, F64, }
114-
115-
enum Scalar {
116-
Int(Integer, /*signedness:*/ bool),
117-
Float(FloatTy),
118-
Pointer
119-
}
120-
```
109+
where a `Scalar` is either a primitive integer, floating point, or a pointer to
110+
a sized type.
121111

122112
For example, the call ABI of:
123113

124-
* `i32` is `Scalar::Int(I32,true)`,
114+
* `i32` is `Scalar(I32)`,
125115
* `#[repr(C)] struct Wrapper(i32);` is `Aggregate { sized: true }`.
126-
* `#[repr(transparent)] struct Wrapper(i32);` is `Scalar::Int(I32,true)`.
116+
* `#[repr(transparent)] struct Wrapper(i32);` is `Scalar(I32)`.
127117

128118
The call ABI of `repr(Rust)` types is unspecified. The following is not
129119
guaranteed, but right now the call ABI of:
130120

131121
* `/*#[repr(Rust)]*/ struct Wrapper(i32);` (without `repr(transparent)`) is also
132-
`Scalar::Int(I32, true)` - only larger `struct`s are aggregates.
122+
`Scalar(I32)` - only larger `struct`s are aggregates.
133123

134124
### TODO
135125

0 commit comments

Comments
 (0)