Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed most instances of vec!(..) and replaced them with vec![..]s #37476

Closed
wants to merge 19 commits into from

Commits on Oct 28, 2016

  1. Shrink Expr_::ExprInlineAsm.

    On 64-bit this reduces the size of `Expr_` from 144 to 64 bytes, and
    reduces the size of `Expr` from 176 to 96 bytes.
    nnethercote committed Oct 28, 2016
    Configuration menu
    Copy the full SHA
    a920e35 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c751c08 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2016

  1. Changed all empty vec!()s to use square brackets

    Most of the Rust community agrees that the vec! macro is more clear when
    called using square brackets [] instead of regular brackets (). Most of
    these ocurrences are from before macros allowed using different types of
    brackets.
    iirelu committed Oct 29, 2016
    Configuration menu
    Copy the full SHA
    4e46d31 View commit details
    Browse the repository at this point in the history
  2. Removed every last vec!(..) from Rust. Yay.

    These are all legacies from before the clearer vec![] was possible to
    write. They are now all gone. This would be a perfect time to write a
    lint for ocurrences of vec!().
    iirelu committed Oct 29, 2016
    Configuration menu
    Copy the full SHA
    2de033b View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2016

  1. Reverted vec![] change in pretty print test

    Sadly it looks like pretty printing still wants vec![]s to be vec!()s :(
    
    This is something that should be fixed at another time.
    iirelu committed Oct 30, 2016
    Configuration menu
    Copy the full SHA
    47f8539 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bdb399d View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#37445 - nnethercote:shrink-Expr_, r=eddyb

    Shrink Expr_::ExprInlineAsm.
    
    On 64-bit this reduces the size of `Expr_` from 144 to 64 bytes, and
    reduces the size of `Expr` from 176 to 96 bytes.
    
    For the workload in rust-lang#36799 this reduces the RSS for the "lowering ast -> hir" phase and all subsequent phases by 50 MiB, which reduces the peak RSS for that workload by about 1%. Not huge, but it's a very easy improvement.
    
    r? @eddyb
    bors committed Oct 30, 2016
    Configuration menu
    Copy the full SHA
    f5a702d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    abe7c18 View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#37459 - Mark-Simulacrum:closure-ice, r=eddyb

    Fix ICE when attempting to print closure generics
    
    Fixes rust-lang#36622.
    
    r? @eddyb or @arielb1
    bors committed Oct 30, 2016
    Configuration menu
    Copy the full SHA
    ea20ab1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a2a2763 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bd1ce91 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9ef9194 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2016

  1. Auto merge of rust-lang#37460 - nrc:save-imports, r=eddyb

    save-analysis: change imports to carry a ref id rather than their own…
    
    … node id
    
    To make jump to def for imports work
    
    r? @eddyb
    bors committed Oct 31, 2016
    Configuration menu
    Copy the full SHA
    bfc9b29 View commit details
    Browse the repository at this point in the history
  2. Do not clone Mir unnecessarily

    nagisa committed Oct 31, 2016
    Configuration menu
    Copy the full SHA
    8ec0b3a View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#37489 - nagisa:unnecessary-clone, r=eddyb

    Do not clone Mir unnecessarily
    
    r? @eddyb
    bors committed Oct 31, 2016
    Configuration menu
    Copy the full SHA
    8f1fc86 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#37439 - michaelwoerister:remove-sha256, r=ale…

    …xcrichton
    
    Replace all uses of SHA-256 with BLAKE2b.
    
    Removes the SHA-256 implementation and replaces all uses of it with BLAKE2b, which we already use for debuginfo type guids and incremental compilation hashes. It doesn't make much sense to have two different cryptographic hash implementations in the compiler and Blake has a few advantages over SHA-2 (computationally less expensive, hashes of up to 512 bits).
    bors committed Oct 31, 2016
    Configuration menu
    Copy the full SHA
    4497196 View commit details
    Browse the repository at this point in the history
  5. Changed all empty vec!()s to use square brackets

    Most of the Rust community agrees that the vec! macro is more clear when
    called using square brackets [] instead of regular brackets (). Most of
    these ocurrences are from before macros allowed using different types of
    brackets.
    iirelu committed Oct 31, 2016
    Configuration menu
    Copy the full SHA
    25aa44c View commit details
    Browse the repository at this point in the history
  6. Resolved merge conflict

    iirelu committed Oct 31, 2016
    Configuration menu
    Copy the full SHA
    62b29e9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e3edd73 View commit details
    Browse the repository at this point in the history