mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
ci: update nightly version (#5706)
This commit is contained in:
@@ -11,7 +11,7 @@ env:
|
|||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
# Change to specific Rust release to pin
|
# Change to specific Rust release to pin
|
||||||
rust_stable: stable
|
rust_stable: stable
|
||||||
rust_nightly: nightly-2022-11-03
|
rust_nightly: nightly-2023-05-18
|
||||||
rust_clippy: 1.65.0
|
rust_clippy: 1.65.0
|
||||||
# When updating this, also update:
|
# When updating this, also update:
|
||||||
# - README.md
|
# - README.md
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
macro_rules! if_loom {
|
macro_rules! if_loom {
|
||||||
($($t:tt)*) => {{
|
($($t:tt)*) => {{
|
||||||
#[cfg(loom)]
|
#[cfg(loom)]
|
||||||
const LOOM: bool = true;
|
{
|
||||||
#[cfg(not(loom))]
|
|
||||||
const LOOM: bool = false;
|
|
||||||
|
|
||||||
if LOOM {
|
|
||||||
$($t)*
|
$($t)*
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ impl<'a> Builder<'a> {
|
|||||||
///
|
///
|
||||||
/// This method panics if called outside of a Tokio runtime.
|
/// This method panics if called outside of a Tokio runtime.
|
||||||
///
|
///
|
||||||
/// See [`task::spawn`](crate::task::spawn) for
|
/// See [`task::spawn`](crate::task::spawn()) for
|
||||||
/// more details.
|
/// more details.
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
pub fn spawn<Fut>(self, future: Fut) -> io::Result<JoinHandle<Fut::Output>>
|
pub fn spawn<Fut>(self, future: Fut) -> io::Result<JoinHandle<Fut::Output>>
|
||||||
|
|||||||
@@ -387,7 +387,7 @@ impl Default for MissedTickBehavior {
|
|||||||
/// An `Interval` can be turned into a `Stream` with [`IntervalStream`].
|
/// An `Interval` can be turned into a `Stream` with [`IntervalStream`].
|
||||||
///
|
///
|
||||||
/// [`IntervalStream`]: https://docs.rs/tokio-stream/latest/tokio_stream/wrappers/struct.IntervalStream.html
|
/// [`IntervalStream`]: https://docs.rs/tokio-stream/latest/tokio_stream/wrappers/struct.IntervalStream.html
|
||||||
/// [`sleep`]: crate::time::sleep
|
/// [`sleep`]: crate::time::sleep()
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Interval {
|
pub struct Interval {
|
||||||
/// Future that completes the next time the `Interval` yields a value.
|
/// Future that completes the next time the `Interval` yields a value.
|
||||||
|
|||||||
Reference in New Issue
Block a user