From c4b6b130f33532e891e1021381b203f1bbced086 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 6 May 2021 00:39:17 +0900 Subject: [PATCH] chore: bump nightly to nightly-2021-04-25 (#3754) --- .github/workflows/ci.yml | 4 ++-- tokio-stream/src/stream_map.rs | 4 ++-- tokio-util/src/udp/frame.rs | 2 +- tokio/src/io/driver/mod.rs | 2 +- tokio/src/runtime/blocking/pool.rs | 2 +- tokio/src/time/driver/handle.rs | 2 +- tokio/src/util/linked_list.rs | 4 ++-- tokio/src/util/rand.rs | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c7839354..5e4ce10d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ name: CI env: RUSTFLAGS: -Dwarnings RUST_BACKTRACE: 1 - nightly: nightly-2020-09-21 + nightly: nightly-2021-04-25 minrust: 1.45.2 jobs: @@ -279,7 +279,7 @@ jobs: - name: "doc --lib --all-features" run: cargo doc --lib --no-deps --all-features --document-private-items env: - RUSTDOCFLAGS: --cfg docsrs + RUSTDOCFLAGS: --cfg docsrs -Dwarnings loom: name: loom diff --git a/tokio-stream/src/stream_map.rs b/tokio-stream/src/stream_map.rs index d87e575b8..7fc136ff7 100644 --- a/tokio-stream/src/stream_map.rs +++ b/tokio-stream/src/stream_map.rs @@ -606,9 +606,9 @@ mod rand { /// /// Implement xorshift64+: 2 32-bit xorshift sequences added together. /// Shift triplet `[17,7,16]` was calculated as indicated in Marsaglia's - /// Xorshift paper: https://www.jstatsoft.org/article/view/v008i14/xorshift.pdf + /// Xorshift paper: /// This generator passes the SmallCrush suite, part of TestU01 framework: - /// http://simul.iro.umontreal.ca/testu01/tu01.html + /// #[derive(Debug)] pub(crate) struct FastRand { one: Cell, diff --git a/tokio-util/src/udp/frame.rs b/tokio-util/src/udp/frame.rs index 7e152e19a..cbf0f6355 100644 --- a/tokio-util/src/udp/frame.rs +++ b/tokio-util/src/udp/frame.rs @@ -35,7 +35,7 @@ use std::{io, mem::MaybeUninit}; /// [`Sink`]: futures_sink::Sink /// [`split`]: https://docs.rs/futures/0.3/futures/stream/trait.StreamExt.html#method.split #[must_use = "sinks do nothing unless polled"] -#[cfg_attr(docsrs, doc(all(feature = "codec", feature = "udp")))] +#[cfg_attr(docsrs, doc(cfg(all(feature = "codec", feature = "udp"))))] #[derive(Debug)] pub struct UdpFramed { socket: T, diff --git a/tokio/src/io/driver/mod.rs b/tokio/src/io/driver/mod.rs index fa2d4208c..52451c6b1 100644 --- a/tokio/src/io/driver/mod.rs +++ b/tokio/src/io/driver/mod.rs @@ -273,7 +273,7 @@ cfg_not_rt! { /// This function panics if there is no current reactor set, or if the `rt` /// feature flag is not enabled. pub(super) fn current() -> Self { - panic!(crate::util::error::CONTEXT_MISSING_ERROR) + panic!("{}", crate::util::error::CONTEXT_MISSING_ERROR) } } } diff --git a/tokio/src/runtime/blocking/pool.rs b/tokio/src/runtime/blocking/pool.rs index 3e9364db6..5c9b8ede1 100644 --- a/tokio/src/runtime/blocking/pool.rs +++ b/tokio/src/runtime/blocking/pool.rs @@ -61,7 +61,7 @@ struct Shared { /// Prior to shutdown, we clean up JoinHandles by having each timed-out /// thread join on the previous timed-out thread. This is not strictly /// necessary but helps avoid Valgrind false positives, see - /// https://github.com/tokio-rs/tokio/commit/646fbae76535e397ef79dbcaacb945d4c829f666 + /// /// for more information. last_exiting_thread: Option>, /// This holds the JoinHandles for all running threads; on shutdown, the thread diff --git a/tokio/src/time/driver/handle.rs b/tokio/src/time/driver/handle.rs index 9a05a54fc..77b435873 100644 --- a/tokio/src/time/driver/handle.rs +++ b/tokio/src/time/driver/handle.rs @@ -76,7 +76,7 @@ cfg_not_rt! { /// lazy, and so outside executed inside the runtime successfully without /// panicking. pub(crate) fn current() -> Self { - panic!(crate::util::error::CONTEXT_MISSING_ERROR) + panic!("{}", crate::util::error::CONTEXT_MISSING_ERROR) } } } diff --git a/tokio/src/util/linked_list.rs b/tokio/src/util/linked_list.rs index dd00e1405..480ea093b 100644 --- a/tokio/src/util/linked_list.rs +++ b/tokio/src/util/linked_list.rs @@ -77,7 +77,7 @@ pub(crate) struct Pointers { /// #[repr(C)]. /// /// See this link for more information: -/// https://github.com/rust-lang/rust/pull/82834 +/// #[repr(C)] struct PointersInner { /// The previous node in the list. null if there is no previous node. @@ -93,7 +93,7 @@ struct PointersInner { next: Option>, /// This type is !Unpin due to the heuristic from: - /// https://github.com/rust-lang/rust/pull/82834 + /// _pin: PhantomPinned, } diff --git a/tokio/src/util/rand.rs b/tokio/src/util/rand.rs index 70a97f23b..17b3ec1ae 100644 --- a/tokio/src/util/rand.rs +++ b/tokio/src/util/rand.rs @@ -4,9 +4,9 @@ use std::cell::Cell; /// /// Implement xorshift64+: 2 32-bit xorshift sequences added together. /// Shift triplet `[17,7,16]` was calculated as indicated in Marsaglia's -/// Xorshift paper: https://www.jstatsoft.org/article/view/v008i14/xorshift.pdf +/// Xorshift paper: /// This generator passes the SmallCrush suite, part of TestU01 framework: -/// http://simul.iro.umontreal.ca/testu01/tu01.html +/// #[derive(Debug)] pub(crate) struct FastRand { one: Cell,