mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
chore: bump nightly to nightly-2021-04-25 (#3754)
This commit is contained in:
parent
6845a93cbf
commit
c4b6b130f3
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -9,7 +9,7 @@ name: CI
|
|||||||
env:
|
env:
|
||||||
RUSTFLAGS: -Dwarnings
|
RUSTFLAGS: -Dwarnings
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
nightly: nightly-2020-09-21
|
nightly: nightly-2021-04-25
|
||||||
minrust: 1.45.2
|
minrust: 1.45.2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -279,7 +279,7 @@ jobs:
|
|||||||
- name: "doc --lib --all-features"
|
- name: "doc --lib --all-features"
|
||||||
run: cargo doc --lib --no-deps --all-features --document-private-items
|
run: cargo doc --lib --no-deps --all-features --document-private-items
|
||||||
env:
|
env:
|
||||||
RUSTDOCFLAGS: --cfg docsrs
|
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
|
||||||
|
|
||||||
loom:
|
loom:
|
||||||
name: loom
|
name: loom
|
||||||
|
@ -606,9 +606,9 @@ mod rand {
|
|||||||
///
|
///
|
||||||
/// Implement xorshift64+: 2 32-bit xorshift sequences added together.
|
/// Implement xorshift64+: 2 32-bit xorshift sequences added together.
|
||||||
/// Shift triplet `[17,7,16]` was calculated as indicated in Marsaglia's
|
/// 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: <https://www.jstatsoft.org/article/view/v008i14/xorshift.pdf>
|
||||||
/// This generator passes the SmallCrush suite, part of TestU01 framework:
|
/// This generator passes the SmallCrush suite, part of TestU01 framework:
|
||||||
/// http://simul.iro.umontreal.ca/testu01/tu01.html
|
/// <http://simul.iro.umontreal.ca/testu01/tu01.html>
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub(crate) struct FastRand {
|
pub(crate) struct FastRand {
|
||||||
one: Cell<u32>,
|
one: Cell<u32>,
|
||||||
|
@ -35,7 +35,7 @@ use std::{io, mem::MaybeUninit};
|
|||||||
/// [`Sink`]: futures_sink::Sink
|
/// [`Sink`]: futures_sink::Sink
|
||||||
/// [`split`]: https://docs.rs/futures/0.3/futures/stream/trait.StreamExt.html#method.split
|
/// [`split`]: https://docs.rs/futures/0.3/futures/stream/trait.StreamExt.html#method.split
|
||||||
#[must_use = "sinks do nothing unless polled"]
|
#[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)]
|
#[derive(Debug)]
|
||||||
pub struct UdpFramed<C, T = UdpSocket> {
|
pub struct UdpFramed<C, T = UdpSocket> {
|
||||||
socket: T,
|
socket: T,
|
||||||
|
@ -273,7 +273,7 @@ cfg_not_rt! {
|
|||||||
/// This function panics if there is no current reactor set, or if the `rt`
|
/// This function panics if there is no current reactor set, or if the `rt`
|
||||||
/// feature flag is not enabled.
|
/// feature flag is not enabled.
|
||||||
pub(super) fn current() -> Self {
|
pub(super) fn current() -> Self {
|
||||||
panic!(crate::util::error::CONTEXT_MISSING_ERROR)
|
panic!("{}", crate::util::error::CONTEXT_MISSING_ERROR)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ struct Shared {
|
|||||||
/// Prior to shutdown, we clean up JoinHandles by having each timed-out
|
/// Prior to shutdown, we clean up JoinHandles by having each timed-out
|
||||||
/// thread join on the previous timed-out thread. This is not strictly
|
/// thread join on the previous timed-out thread. This is not strictly
|
||||||
/// necessary but helps avoid Valgrind false positives, see
|
/// necessary but helps avoid Valgrind false positives, see
|
||||||
/// https://github.com/tokio-rs/tokio/commit/646fbae76535e397ef79dbcaacb945d4c829f666
|
/// <https://github.com/tokio-rs/tokio/commit/646fbae76535e397ef79dbcaacb945d4c829f666>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
last_exiting_thread: Option<thread::JoinHandle<()>>,
|
last_exiting_thread: Option<thread::JoinHandle<()>>,
|
||||||
/// This holds the JoinHandles for all running threads; on shutdown, the thread
|
/// This holds the JoinHandles for all running threads; on shutdown, the thread
|
||||||
|
@ -76,7 +76,7 @@ cfg_not_rt! {
|
|||||||
/// lazy, and so outside executed inside the runtime successfully without
|
/// lazy, and so outside executed inside the runtime successfully without
|
||||||
/// panicking.
|
/// panicking.
|
||||||
pub(crate) fn current() -> Self {
|
pub(crate) fn current() -> Self {
|
||||||
panic!(crate::util::error::CONTEXT_MISSING_ERROR)
|
panic!("{}", crate::util::error::CONTEXT_MISSING_ERROR)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ pub(crate) struct Pointers<T> {
|
|||||||
/// #[repr(C)].
|
/// #[repr(C)].
|
||||||
///
|
///
|
||||||
/// See this link for more information:
|
/// See this link for more information:
|
||||||
/// https://github.com/rust-lang/rust/pull/82834
|
/// <https://github.com/rust-lang/rust/pull/82834>
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
struct PointersInner<T> {
|
struct PointersInner<T> {
|
||||||
/// The previous node in the list. null if there is no previous node.
|
/// The previous node in the list. null if there is no previous node.
|
||||||
@ -93,7 +93,7 @@ struct PointersInner<T> {
|
|||||||
next: Option<NonNull<T>>,
|
next: Option<NonNull<T>>,
|
||||||
|
|
||||||
/// This type is !Unpin due to the heuristic from:
|
/// This type is !Unpin due to the heuristic from:
|
||||||
/// https://github.com/rust-lang/rust/pull/82834
|
/// <https://github.com/rust-lang/rust/pull/82834>
|
||||||
_pin: PhantomPinned,
|
_pin: PhantomPinned,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,9 +4,9 @@ use std::cell::Cell;
|
|||||||
///
|
///
|
||||||
/// Implement xorshift64+: 2 32-bit xorshift sequences added together.
|
/// Implement xorshift64+: 2 32-bit xorshift sequences added together.
|
||||||
/// Shift triplet `[17,7,16]` was calculated as indicated in Marsaglia's
|
/// 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: <https://www.jstatsoft.org/article/view/v008i14/xorshift.pdf>
|
||||||
/// This generator passes the SmallCrush suite, part of TestU01 framework:
|
/// This generator passes the SmallCrush suite, part of TestU01 framework:
|
||||||
/// http://simul.iro.umontreal.ca/testu01/tu01.html
|
/// <http://simul.iro.umontreal.ca/testu01/tu01.html>
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub(crate) struct FastRand {
|
pub(crate) struct FastRand {
|
||||||
one: Cell<u32>,
|
one: Cell<u32>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user