Skip to content

Commit 834dece

Browse files
committed
do not allow ABI mismatches inside repr(C) types
1 parent 094d3f6 commit 834dece

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

core/src/primitive_docs.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,8 +1575,6 @@ mod prim_ref {}
15751575
/// Furthermore, ABI compatibility satisfies the following general properties:
15761576
///
15771577
/// - Every type is ABI-compatible with itself.
1578-
/// - If `T1` and `T2` are ABI-compatible, then two `repr(C)` types that only differ because one
1579-
/// field type was changed from `T1` to `T2` are ABI-compatible.
15801578
/// - If `T1` and `T2` are ABI-compatible and `T2` and `T3` are ABI-compatible, then so are `T1` and
15811579
/// `T3` (i.e., ABI-compatibility is transitive).
15821580
/// - If `T1` and `T2` are ABI-compatible, then so are `T2` and `T1` (i.e., ABI-compatibility is

0 commit comments

Comments
 (0)