Skip to content

Commit de51a1d

Browse files
committed
move field
1 parent 9c7d501 commit de51a1d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tokio/src/runtime/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ pub struct Builder {
8585
/// How many ticks before yielding to the driver for timer and I/O events?
8686
pub(super) event_interval: u32,
8787

88-
#[cfg(tokio_unstable)]
89-
pub(super) unhandled_panic: UnhandledPanic,
90-
9188
/// When true, the multi-threade scheduler LIFO slot should not be used.
9289
///
9390
/// This option should only be exposed as unstable.
9491
pub(super) disable_lifo_slot: bool,
92+
93+
#[cfg(tokio_unstable)]
94+
pub(super) unhandled_panic: UnhandledPanic,
9595
}
9696

9797
cfg_unstable! {

tokio/src/runtime/config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ pub(crate) struct Config {
1313
/// Callback for a worker unparking itself
1414
pub(crate) after_unpark: Option<Callback>,
1515

16-
#[cfg(tokio_unstable)]
17-
/// How to respond to unhandled task panics.
18-
pub(crate) unhandled_panic: crate::runtime::UnhandledPanic,
19-
2016
/// The multi-threaded scheduler includes a per-worker LIFO slot used to
2117
/// store the last scheduled task. This can improve certain usage patterns,
2218
/// especially message passing between tasks. However, this LIFO slot is not
@@ -25,4 +21,8 @@ pub(crate) struct Config {
2521
/// Eventually, the LIFO slot **will** become stealable, however as a
2622
/// stop-gap, this unstable option lets users disable the LIFO task.
2723
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,
2828
}

0 commit comments

Comments
 (0)