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

Fix deprecation warnings for atomics initialization #739

Merged
merged 1 commit into from Feb 25, 2019

Commits on Feb 25, 2019

  1. Fix deprecation warnings for atomics initialization

    Since Rust 1.34, `ATOMIC_*_INIT` is deprecated in favor of
    `Atomic*::new`. However, this requires the latter to be `const`, which
    is not the case for older Rust versions.
    
    Alternatively, we could detect the Rust version by introducing build
    scripts to the crates lacking them. However, this increases build time
    for a very minor benefit, so the deprecation warnings are ignored
    instead.
    
    Fixes rust-random#736.
    vks committed Feb 25, 2019
    Copy the full SHA
    790aa8a View commit details
    Browse the repository at this point in the history