From 59b4cd530cbb52301c114408a3887bfdef85332a Mon Sep 17 00:00:00 2001 From: BennyYip Date: Mon, 20 Nov 2017 08:39:08 +0800 Subject: [PATCH 1/2] Update repr-rust.md --- src/repr-rust.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/repr-rust.md b/src/repr-rust.md index 7001d32..8507e73 100644 --- a/src/repr-rust.md +++ b/src/repr-rust.md @@ -113,6 +113,8 @@ requires different monomorphizations to have *different field orderings*. **Note: this is a hypothetical optimization that is not yet implemented in Rust 1.0** +**Update: this is already implemented in Rust 1.18** + Enums make this consideration even more complicated. Naively, an enum such as: ```rust From 918485eb16a5964b6f6e075e3881fe58298a8740 Mon Sep 17 00:00:00 2001 From: BennyYip Date: Mon, 4 Dec 2017 12:13:00 +0800 Subject: [PATCH 2/2] Remove note in repr-rust.md --- src/repr-rust.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/repr-rust.md b/src/repr-rust.md index 8507e73..a903466 100644 --- a/src/repr-rust.md +++ b/src/repr-rust.md @@ -110,11 +110,6 @@ struct Foo { The latter case quite simply wastes space. An optimal use of space therefore requires different monomorphizations to have *different field orderings*. -**Note: this is a hypothetical optimization that is not yet implemented in Rust -1.0** - -**Update: this is already implemented in Rust 1.18** - Enums make this consideration even more complicated. Naively, an enum such as: ```rust