Skip to content

Commit 4d897ec

Browse files
committed
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.
1 parent 4358dae commit 4d897ec

File tree

1 file changed

+0
-8
lines changed
  • core/codegen/src/attribute/async_bound

1 file changed

+0
-8
lines changed

core/codegen/src/attribute/async_bound/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ fn _async_bound(
1515
}
1616

1717
let mut func: TraitItemFn = syn::parse(input)?;
18-
let original: TraitItemFn = func.clone();
1918
if func.sig.asyncness.is_none() {
2019
let diag = Span::call_site()
2120
.error("attribute can only be applied to async fns")
@@ -43,14 +42,7 @@ fn _async_bound(
4342
};
4443

4544
Ok(quote! {
46-
#[cfg(all(not(doc), rust_analyzer))]
47-
#original
48-
49-
#[cfg(all(doc, not(rust_analyzer)))]
5045
#doc
51-
#original
52-
53-
#[cfg(not(any(doc, rust_analyzer)))]
5446
#func
5547
})
5648
}

0 commit comments

Comments
 (0)