From 4d897ec4a3b2d820912722cb6f56bc62565c8107 Mon Sep 17 00:00:00 2001 From: Matthew Pomes Date: Sun, 4 May 2025 05:01:33 -0500 Subject: [PATCH] Remove unknown rust_analyzer cfg From some basic testing, I cannot identify what advantage this provides. I assume this was a workaround for a bug in rust_analyzer, but I cannot identify what it might be. --- core/codegen/src/attribute/async_bound/mod.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/codegen/src/attribute/async_bound/mod.rs b/core/codegen/src/attribute/async_bound/mod.rs index 9e4d1d1ce1..50f98d9b12 100644 --- a/core/codegen/src/attribute/async_bound/mod.rs +++ b/core/codegen/src/attribute/async_bound/mod.rs @@ -15,7 +15,6 @@ fn _async_bound( } let mut func: TraitItemFn = syn::parse(input)?; - let original: TraitItemFn = func.clone(); if func.sig.asyncness.is_none() { let diag = Span::call_site() .error("attribute can only be applied to async fns") @@ -43,14 +42,7 @@ fn _async_bound( }; Ok(quote! { - #[cfg(all(not(doc), rust_analyzer))] - #original - - #[cfg(all(doc, not(rust_analyzer)))] #doc - #original - - #[cfg(not(any(doc, rust_analyzer)))] #func }) }