Skip to content

Commit 9cb495c

Browse files
authored
tokio: upgrade to new nightly for CI (#4193)
1 parent e7d3e0c commit 9cb495c

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: CI
99
env:
1010
RUSTFLAGS: -Dwarnings
1111
RUST_BACKTRACE: 1
12-
nightly: nightly-2021-07-09
12+
nightly: nightly-2021-10-25
1313
minrust: 1.45.2
1414

1515
jobs:

.github/workflows/loom.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ name: Loom
1010
env:
1111
RUSTFLAGS: -Dwarnings
1212
RUST_BACKTRACE: 1
13-
nightly: nightly-2021-07-09
1413

1514
jobs:
1615
loom:

tokio/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables))
1717
))]
1818
#![cfg_attr(docsrs, feature(doc_cfg))]
19+
#![cfg_attr(docsrs, feature(doc_cfg_hide))]
20+
#![cfg_attr(docsrs, doc(cfg_hide(docsrs)))]
21+
#![cfg_attr(docsrs, doc(cfg_hide(loom)))]
22+
#![cfg_attr(docsrs, doc(cfg_hide(not(loom))))]
1923
#![cfg_attr(docsrs, allow(unused_attributes))]
2024

2125
//! A runtime for writing reliable network applications without compromising speed.

tokio/src/macros/cfg.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ macro_rules! cfg_io_driver_impl {
9999
feature = "process",
100100
all(unix, feature = "signal"),
101101
))]
102+
#[cfg_attr(docsrs, doc(cfg(all())))]
102103
$item
103104
)*
104105
}

tokio/src/runtime/handle.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,25 @@ pub struct Handle {
1818
pub(super) spawner: Spawner,
1919

2020
/// Handles to the I/O drivers
21+
#[cfg_attr(
22+
not(any(feature = "net", feature = "process", all(unix, feature = "signal"))),
23+
allow(dead_code)
24+
)]
2125
pub(super) io_handle: driver::IoHandle,
2226

2327
/// Handles to the signal drivers
28+
#[cfg_attr(
29+
not(any(feature = "signal", all(unix, feature = "process"))),
30+
allow(dead_code)
31+
)]
2432
pub(super) signal_handle: driver::SignalHandle,
2533

2634
/// Handles to the time drivers
35+
#[cfg_attr(not(feature = "time"), allow(dead_code))]
2736
pub(super) time_handle: driver::TimeHandle,
2837

2938
/// Source of `Instant::now()`
39+
#[cfg_attr(not(all(feature = "time", feature = "test-util")), allow(dead_code))]
3040
pub(super) clock: driver::Clock,
3141

3242
/// Blocking pool spawner

0 commit comments

Comments
 (0)