Skip to content

Commit

Permalink
Reorder hir::Expr fields.
Browse files Browse the repository at this point in the history
On 64-bit platforms this reduces the size of `Expr` from 96 bytes to 88
bytes.
  • Loading branch information
nnethercote committed Nov 4, 2016
1 parent 4497196 commit 9366ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/hir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
}

Expand Down

0 comments on commit 9366ba3

Please sign in to comment.