Commit Graph

3 Commits

Author SHA1 Message Date
David Tolnay 257e766c0c
Remove test of static Context
Context is no longer Sync so this doesn't work.

    error[E0277]: `*mut ()` cannot be shared between threads safely
      --> library/core/tests/task.rs:24:21
       |
    24 |     static CONTEXT: Context<'static> = Context::from_waker(&WAKER);
       |                     ^^^^^^^^^^^^^^^^ `*mut ()` cannot be shared between threads safely
       |
       = help: within `Context<'static>`, the trait `Sync` is not implemented for `*mut ()`
       = note: required because it appears within the type `PhantomData<*mut ()>`
       = note: required because it appears within the type `Context<'static>`
       = note: shared static variables must have a type that implements `Sync`
2023-01-02 10:33:23 -08:00
y86-dev 9a78faba71 Made from_waker, waker, from_raw const 2022-09-14 14:53:16 +02:00
Christiaan Dirkx ce1d5ed31a Move const tests for `Poll` to `library\core`
Part of #76268
2020-09-04 01:04:34 +02:00