Remove thread-context feature
This commit is contained in:
@ -21,9 +21,7 @@ mod thread {
|
||||
pub struct Context;
|
||||
|
||||
impl ThreadContext for Context {
|
||||
#[cfg(feature = "thread-context")]
|
||||
fn context(&self) -> OpaqueThreadContext {
|
||||
// Enabling thread-context is not incorrect, just wasteful.
|
||||
OpaqueThreadContext(0)
|
||||
}
|
||||
|
||||
|
@ -27,9 +27,7 @@ mod thread {
|
||||
pub struct Context;
|
||||
|
||||
impl ThreadContext for Context {
|
||||
#[cfg(feature = "thread-context")]
|
||||
fn context(&self) -> OpaqueThreadContext {
|
||||
// Enabling thread-context is not incorrect, just wasteful.
|
||||
OpaqueThreadContext(0)
|
||||
}
|
||||
|
||||
|
@ -1,9 +1,6 @@
|
||||
#[cfg(feature = "executor-interrupt")]
|
||||
compile_error!("`executor-interrupt` is not supported with `arch-std`.");
|
||||
|
||||
#[cfg(not(feature = "thread-context"))]
|
||||
compile_error!("`arch-std` requires `thread-context`.");
|
||||
|
||||
#[cfg(feature = "executor-thread")]
|
||||
pub use thread::*;
|
||||
#[cfg(feature = "executor-thread")]
|
||||
|
@ -1,9 +1,6 @@
|
||||
#[cfg(feature = "executor-interrupt")]
|
||||
compile_error!("`executor-interrupt` is not supported with `arch-wasm`.");
|
||||
|
||||
#[cfg(not(feature = "thread-context"))]
|
||||
compile_error!("`arch-wasm` requires `thread-context`.");
|
||||
|
||||
#[cfg(feature = "executor-thread")]
|
||||
pub use thread::*;
|
||||
#[cfg(feature = "executor-thread")]
|
||||
|
@ -25,9 +25,7 @@ mod thread {
|
||||
pub struct Context;
|
||||
|
||||
impl ThreadContext for Context {
|
||||
#[cfg(feature = "thread-context")]
|
||||
fn context(&self) -> OpaqueThreadContext {
|
||||
// Enabling thread-context is not incorrect, just wasteful.
|
||||
OpaqueThreadContext(0)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user