fs: emit compilation error without tokio_unstable for io-uring (#7634)

Signed-off-by: ADD-SP <[email protected]>
This commit is contained in:
Qi
2025-09-30 19:53:19 +08:00
committed by GitHub
parent 02486978d1
commit a0f7f5c94a
4 changed files with 75 additions and 52 deletions
+3 -3
View File
@@ -282,7 +282,7 @@ use proc_macro::TokenStream;
/// fn main() {
/// tokio::runtime::Builder::new_current_thread()
/// .enable_all()
/// .unhandled_panic(UnhandledPanic::ShutdownRuntime)
/// .unhandled_panic(tokio::runtime::UnhandledPanic::ShutdownRuntime)
/// .build()
/// .unwrap()
/// .block_on(async {
@@ -539,7 +539,7 @@ pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream {
/// panic!("This panic will shutdown the runtime.");
/// }).await;
/// }
/// # #[cfg(not(tokio_unstable))]
///
/// # fn main() { }
/// ```
///
@@ -560,7 +560,7 @@ pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream {
/// }).await;
/// })
/// }
/// # #[cfg(not(tokio_unstable))]
///
/// # fn main() { }
/// ```
///