File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,13 @@ pub struct Builder {
85
85
/// How many ticks before yielding to the driver for timer and I/O events?
86
86
pub ( super ) event_interval : u32 ,
87
87
88
- #[ cfg( tokio_unstable) ]
89
- pub ( super ) unhandled_panic : UnhandledPanic ,
90
-
91
88
/// When true, the multi-threade scheduler LIFO slot should not be used.
92
89
///
93
90
/// This option should only be exposed as unstable.
94
91
pub ( super ) disable_lifo_slot : bool ,
92
+
93
+ #[ cfg( tokio_unstable) ]
94
+ pub ( super ) unhandled_panic : UnhandledPanic ,
95
95
}
96
96
97
97
cfg_unstable ! {
Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ pub(crate) struct Config {
13
13
/// Callback for a worker unparking itself
14
14
pub ( crate ) after_unpark : Option < Callback > ,
15
15
16
- #[ cfg( tokio_unstable) ]
17
- /// How to respond to unhandled task panics.
18
- pub ( crate ) unhandled_panic : crate :: runtime:: UnhandledPanic ,
19
-
20
16
/// The multi-threaded scheduler includes a per-worker LIFO slot used to
21
17
/// store the last scheduled task. This can improve certain usage patterns,
22
18
/// especially message passing between tasks. However, this LIFO slot is not
@@ -25,4 +21,8 @@ pub(crate) struct Config {
25
21
/// Eventually, the LIFO slot **will** become stealable, however as a
26
22
/// stop-gap, this unstable option lets users disable the LIFO task.
27
23
pub ( crate ) disable_lifo_slot : bool ,
24
+
25
+ #[ cfg( tokio_unstable) ]
26
+ /// How to respond to unhandled task panics.
27
+ pub ( crate ) unhandled_panic : crate :: runtime:: UnhandledPanic ,
28
28
}
You can’t perform that action at this time.
0 commit comments