diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs index 3a991e92b0b5f..65214d0cea78a 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 c669f25d8b738..708166518bb89 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 }