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

Ensure std::mem::Discriminant is Send + Sync #45095

Merged
merged 1 commit into from
Oct 10, 2017

Commits on Oct 7, 2017

  1. core: Ensure std::mem::Discriminant is Send + Sync

    `PhantomData<*const T>` has the implication of Send / Syncness following
    the *const T type, but the discriminant should always be Send and Sync.
    
    Use `PhantomData<fn() -> T>` which has the same variance in T, but is Send + Sync
    bluss committed Oct 7, 2017
    Configuration menu
    Copy the full SHA
    3fff2d9 View commit details
    Browse the repository at this point in the history