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

Make align_of behave like min_align_of. #25646

Merged
merged 1 commit into from
Jun 26, 2015
Merged

Make align_of behave like min_align_of. #25646

merged 1 commit into from
Jun 26, 2015

Commits on Jun 25, 2015

  1. Make align_of behave like min_align_of.

    This removes a footgun, since it is a reasonable assumption to make that
    pointers to `T` will be aligned to `align_of::<T>()`. This also matches
    the behaviour of C/C++. `min_align_of` is now deprecated.
    
    Closes rust-lang#21611.
    huonw committed Jun 25, 2015
    Configuration menu
    Copy the full SHA
    225b116 View commit details
    Browse the repository at this point in the history