]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #45095 - bluss:discriminant-send-sync, r=alexcrichton
authorkennytm <kennytm@gmail.com>
Tue, 10 Oct 2017 12:08:23 +0000 (20:08 +0800)
committerkennytm <kennytm@gmail.com>
Tue, 10 Oct 2017 14:44:02 +0000 (22:44 +0800)
commit9effa73286686b297856cc7d1b84f32ecfab94c8
tree17adba78fe22f9491bfc8ff51065bc96bc522869
parentf2efa793f02e737c830256d32be39273f244fd51
parent3fff2d95bf90514e66892ca9be666c35eeae9165
Rollup merge of #45095 - bluss:discriminant-send-sync, r=alexcrichton

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