about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2016-11-03 14:58:32 +1100
committerNicholas Nethercote <nnethercote@mozilla.com>2016-11-04 15:00:28 +1100
commit9366ba31668af3575ecadb3b35d2b67e138c3605 (patch)
tree9e68f4fb289014217788281e1dd1ac53a8c8621f
parent4497196ba56e5839bf4ef674851fd06d942c5544 (diff)
downloadrust-9366ba31668af3575ecadb3b35d2b67e138c3605.tar.gz
rust-9366ba31668af3575ecadb3b35d2b67e138c3605.zip
Reorder `hir::Expr` fields.
On 64-bit platforms this reduces the size of `Expr` from 96 bytes to 88
bytes.
-rw-r--r--src/librustc/hir/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/hir/mod.rs b/src/librustc/hir/mod.rs
index c451a789193..5ff69a789ed 100644
--- a/src/librustc/hir/mod.rs
+++ b/src/librustc/hir/mod.rs
@@ -840,8 +840,8 @@ pub enum UnsafeSource {
 #[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash)]
 pub struct Expr {
     pub id: NodeId,
-    pub node: Expr_,
     pub span: Span,
+    pub node: Expr_,
     pub attrs: ThinVec<Attribute>,
 }