@@ -211,6 +211,7 @@ use proc_macro::TokenStream;
211
211
/// This option is only compatible with the `current_thread` runtime.
212
212
///
213
213
/// ```no_run
214
+ /// # #![allow(unknown_lints, unexpected_cfgs)]
214
215
/// #[cfg(tokio_unstable)]
215
216
/// #[tokio::main(flavor = "current_thread", unhandled_panic = "shutdown_runtime")]
216
217
/// async fn main() {
@@ -225,6 +226,7 @@ use proc_macro::TokenStream;
225
226
/// Equivalent code not using `#[tokio::main]`
226
227
///
227
228
/// ```no_run
229
+ /// # #![allow(unknown_lints, unexpected_cfgs)]
228
230
/// #[cfg(tokio_unstable)]
229
231
/// fn main() {
230
232
/// tokio::runtime::Builder::new_current_thread()
@@ -478,6 +480,7 @@ pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream {
478
480
/// This option is only compatible with the `current_thread` runtime.
479
481
///
480
482
/// ```no_run
483
+ /// # #![allow(unknown_lints, unexpected_cfgs)]
481
484
/// #[cfg(tokio_unstable)]
482
485
/// #[tokio::test(flavor = "current_thread", unhandled_panic = "shutdown_runtime")]
483
486
/// async fn my_test() {
@@ -492,6 +495,7 @@ pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream {
492
495
/// Equivalent code not using `#[tokio::test]`
493
496
///
494
497
/// ```no_run
498
+ /// # #![allow(unknown_lints, unexpected_cfgs)]
495
499
/// #[cfg(tokio_unstable)]
496
500
/// #[test]
497
501
/// fn my_test() {
0 commit comments