Skip to content

Commit ee8d4d1

Browse files
authored
chore: fix ci failures (#6725)
1 parent 3297052 commit ee8d4d1

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

examples/dump.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unknown_lints, unexpected_cfgs)]
2+
13
//! This example demonstrates tokio's experimental task dumping functionality.
24
//! This application deadlocks. Input CTRL+C to display traces of each task, or
35
//! input CTRL+C twice within 1 second to quit.

tokio-macros/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ use proc_macro::TokenStream;
211211
/// This option is only compatible with the `current_thread` runtime.
212212
///
213213
/// ```no_run
214+
/// # #![allow(unknown_lints, unexpected_cfgs)]
214215
/// #[cfg(tokio_unstable)]
215216
/// #[tokio::main(flavor = "current_thread", unhandled_panic = "shutdown_runtime")]
216217
/// async fn main() {
@@ -225,6 +226,7 @@ use proc_macro::TokenStream;
225226
/// Equivalent code not using `#[tokio::main]`
226227
///
227228
/// ```no_run
229+
/// # #![allow(unknown_lints, unexpected_cfgs)]
228230
/// #[cfg(tokio_unstable)]
229231
/// fn main() {
230232
/// tokio::runtime::Builder::new_current_thread()
@@ -478,6 +480,7 @@ pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream {
478480
/// This option is only compatible with the `current_thread` runtime.
479481
///
480482
/// ```no_run
483+
/// # #![allow(unknown_lints, unexpected_cfgs)]
481484
/// #[cfg(tokio_unstable)]
482485
/// #[tokio::test(flavor = "current_thread", unhandled_panic = "shutdown_runtime")]
483486
/// async fn my_test() {
@@ -492,6 +495,7 @@ pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream {
492495
/// Equivalent code not using `#[tokio::test]`
493496
///
494497
/// ```no_run
498+
/// # #![allow(unknown_lints, unexpected_cfgs)]
495499
/// #[cfg(tokio_unstable)]
496500
/// #[test]
497501
/// fn my_test() {

tokio/src/runtime/tests/queue.rs

+1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ fn stress2() {
273273
}
274274
}
275275

276+
#[allow(dead_code)]
276277
struct Runtime;
277278

278279
impl Schedule for Runtime {

0 commit comments

Comments
 (0)