Skip to content

Size of HashMap increased between 2/16 and 2/17 nightly #40042

@jdm

Description

@jdm
use std::collections::HashMap;
use std::mem::size_of;

struct S {
    _handlers: HashMap<usize, usize>,
}

fn main() {
    println!("{}", size_of::<S>());
}
godot2:tmp jdm$ rustup override set nightly-2017-02-16
info: using existing install for 'nightly-2017-02-16-x86_64-apple-darwin'
info: override toolchain for '/private/tmp' set to 'nightly-2017-02-16-x86_64-apple-darwin'

  nightly-2017-02-16-x86_64-apple-darwin unchanged - rustc 1.17.0-nightly (62eb6056d 2017-02-15)

godot2:tmp jdm$ rustc node.rs
godot2:tmp jdm$ ./node
40

godot2:tmp jdm$ rustup override set nightly-2017-02-17
info: using existing install for 'nightly-2017-02-17-x86_64-apple-darwin'
info: override toolchain for '/private/tmp' set to 'nightly-2017-02-17-x86_64-apple-darwin'

  nightly-2017-02-17-x86_64-apple-darwin unchanged - rustc 1.17.0-nightly (668864d9e 2017-02-16)

godot2:tmp jdm$ rustc node.rs
godot2:tmp jdm$ ./node
48

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions