mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
chore: fix ci failures (#6725)
This commit is contained in:
parent
3297052763
commit
ee8d4d1b05
@ -1,3 +1,5 @@
|
|||||||
|
#![allow(unknown_lints, unexpected_cfgs)]
|
||||||
|
|
||||||
//! This example demonstrates tokio's experimental task dumping functionality.
|
//! This example demonstrates tokio's experimental task dumping functionality.
|
||||||
//! This application deadlocks. Input CTRL+C to display traces of each task, or
|
//! This application deadlocks. Input CTRL+C to display traces of each task, or
|
||||||
//! input CTRL+C twice within 1 second to quit.
|
//! input CTRL+C twice within 1 second to quit.
|
||||||
|
@ -211,6 +211,7 @@ use proc_macro::TokenStream;
|
|||||||
/// This option is only compatible with the `current_thread` runtime.
|
/// This option is only compatible with the `current_thread` runtime.
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
|
/// # #![allow(unknown_lints, unexpected_cfgs)]
|
||||||
/// #[cfg(tokio_unstable)]
|
/// #[cfg(tokio_unstable)]
|
||||||
/// #[tokio::main(flavor = "current_thread", unhandled_panic = "shutdown_runtime")]
|
/// #[tokio::main(flavor = "current_thread", unhandled_panic = "shutdown_runtime")]
|
||||||
/// async fn main() {
|
/// async fn main() {
|
||||||
@ -225,6 +226,7 @@ use proc_macro::TokenStream;
|
|||||||
/// Equivalent code not using `#[tokio::main]`
|
/// Equivalent code not using `#[tokio::main]`
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
|
/// # #![allow(unknown_lints, unexpected_cfgs)]
|
||||||
/// #[cfg(tokio_unstable)]
|
/// #[cfg(tokio_unstable)]
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
/// tokio::runtime::Builder::new_current_thread()
|
/// tokio::runtime::Builder::new_current_thread()
|
||||||
@ -478,6 +480,7 @@ pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream {
|
|||||||
/// This option is only compatible with the `current_thread` runtime.
|
/// This option is only compatible with the `current_thread` runtime.
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
|
/// # #![allow(unknown_lints, unexpected_cfgs)]
|
||||||
/// #[cfg(tokio_unstable)]
|
/// #[cfg(tokio_unstable)]
|
||||||
/// #[tokio::test(flavor = "current_thread", unhandled_panic = "shutdown_runtime")]
|
/// #[tokio::test(flavor = "current_thread", unhandled_panic = "shutdown_runtime")]
|
||||||
/// async fn my_test() {
|
/// async fn my_test() {
|
||||||
@ -492,6 +495,7 @@ pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream {
|
|||||||
/// Equivalent code not using `#[tokio::test]`
|
/// Equivalent code not using `#[tokio::test]`
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
|
/// # #![allow(unknown_lints, unexpected_cfgs)]
|
||||||
/// #[cfg(tokio_unstable)]
|
/// #[cfg(tokio_unstable)]
|
||||||
/// #[test]
|
/// #[test]
|
||||||
/// fn my_test() {
|
/// fn my_test() {
|
||||||
|
@ -273,6 +273,7 @@ fn stress2() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
struct Runtime;
|
struct Runtime;
|
||||||
|
|
||||||
impl Schedule for Runtime {
|
impl Schedule for Runtime {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user