Skip to content

Commit 9366ba3

Browse files
committed
Reorder hir::Expr fields.
On 64-bit platforms this reduces the size of `Expr` from 96 bytes to 88 bytes.
1 parent 4497196 commit 9366ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/hir/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,8 @@ pub enum UnsafeSource {
840840
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash)]
841841
pub struct Expr {
842842
pub id: NodeId,
843-
pub node: Expr_,
844843
pub span: Span,
844+
pub node: Expr_,
845845
pub attrs: ThinVec<Attribute>,
846846
}
847847

0 commit comments

Comments
 (0)