@@ -5,7 +5,9 @@ use crate::runtime::{
55 blocking, driver, Callback , HistogramBuilder , Runtime , TaskCallback , TimerFlavor ,
66} ;
77#[ cfg( tokio_unstable) ]
8- use crate :: runtime:: { metrics:: HistogramConfiguration , LocalOptions , LocalRuntime , TaskMeta } ;
8+ use crate :: runtime:: { metrics:: HistogramConfiguration , TaskMeta } ;
9+
10+ use crate :: runtime:: { LocalOptions , LocalRuntime } ;
911use crate :: util:: rand:: { RngSeed , RngSeedGenerator } ;
1012
1113use crate :: runtime:: blocking:: BlockingPool ;
@@ -241,7 +243,7 @@ impl Builder {
241243 /// Configuration methods can be chained on the return value.
242244 ///
243245 /// To spawn non-`Send` tasks on the resulting runtime, combine it with a
244- /// [`LocalSet`], or call [`build_local`] to create a [`LocalRuntime`] (unstable) .
246+ /// [`LocalSet`], or call [`build_local`] to create a [`LocalRuntime`].
245247 ///
246248 /// [`LocalSet`]: crate::task::LocalSet
247249 /// [`LocalRuntime`]: crate::runtime::LocalRuntime
@@ -1048,8 +1050,6 @@ impl Builder {
10481050 /// });
10491051 /// ```
10501052 #[ allow( unused_variables, unreachable_patterns) ]
1051- #[ cfg( tokio_unstable) ]
1052- #[ cfg_attr( docsrs, doc( cfg( tokio_unstable) ) ) ]
10531053 pub fn build_local ( & mut self , options : LocalOptions ) -> io:: Result < LocalRuntime > {
10541054 match & self . kind {
10551055 Kind :: CurrentThread => self . build_current_thread_local_runtime ( ) ,
@@ -1605,7 +1605,6 @@ impl Builder {
16051605 ) )
16061606 }
16071607
1608- #[ cfg( tokio_unstable) ]
16091608 fn build_current_thread_local_runtime ( & mut self ) -> io:: Result < LocalRuntime > {
16101609 use crate :: runtime:: local_runtime:: LocalRuntimeScheduler ;
16111610
0 commit comments