]> git.lizzy.rs Git - rust.git/commitdiff
Reorder `hir::Expr` fields.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 3 Nov 2016 03:58:32 +0000 (14:58 +1100)
committerNicholas Nethercote <nnethercote@mozilla.com>
Fri, 4 Nov 2016 04:00:28 +0000 (15:00 +1100)
On 64-bit platforms this reduces the size of `Expr` from 96 bytes to 88
bytes.

src/librustc/hir/mod.rs

index c451a789193aaecb0f917a69a3987eaf5282fa55..5ff69a789ed59dc2526e187747314d95b113f69a 100644 (file)
@@ -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>,
 }