diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs index 1b9f28b95fb3f..2e2638b9ae7a5 100644 --- a/src/libstd/rt/mod.rs +++ b/src/libstd/rt/mod.rs @@ -112,7 +112,7 @@ mod message_queue; mod sleeper_list; /// Stack segments and caching. -mod stack; +pub mod stack; /// CPU context swapping. mod context; diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index b50e794cce0f3..ac6714d8124e9 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -64,7 +64,7 @@ pub struct Coroutine { /// The segment of stack on which the task is currently running or /// if the task is blocked, on which the task will resume /// execution. - priv current_stack_segment: StackSegment, + current_stack_segment: StackSegment, /// Always valid if the task is alive and not running. saved_context: Context }