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

std: Second-pass stabilization of mem/default #19902

Merged
merged 2 commits into from
Dec 17, 2014

Commits on Dec 16, 2014

  1. std: Second-pass stabilization of mem

    This commit takes a second pass through the `std::mem` module for stabilization.
    The only remaining non-stable items in this module were `forget`, `transmute`,
    `copy_lifetime`, and `copy_lifetime_mut`.
    
    The `forget` and `transmute` intrinsics themselves were marked `#[stable]` to
    propgate into the `core::mem` module so they would be marked stable.
    
    The `copy_lifetime` functions were left `unstable`, but `Sized?` annotations
    were added to the parameters to allow more general use with DSTs.
    
    The `size_of_val`, `min_align_of_val`, and `align_of_val` functions would like
    to grow `Sized?` bounds, but this is a backwards compatible change that
    currently ICEs the compiler, so this change was not made at this time.
    
    Finally, the module itself was declared `#![stable]` in this pass.
    alexcrichton committed Dec 16, 2014
    Configuration menu
    Copy the full SHA
    23bae85 View commit details
    Browse the repository at this point in the history
  2. std: Second pass stabilization of default

    This commit performs a second pass stabilization of the `std::default` module.
    The module was already marked `#[stable]`, and the inheritance of `#[stable]`
    was removed since this attribute was applied. This commit adds the `#[stable]`
    attribute to the trait definition and one method name, along with all
    implementations found in the standard distribution.
    alexcrichton committed Dec 16, 2014
    Configuration menu
    Copy the full SHA
    9021f61 View commit details
    Browse the repository at this point in the history