Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DX(fangs): alter FangProc::bite FangAction::{fore, back} interface to enable rust-analyzer's async fn ... completion #371

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

kanarus
Copy link
Member

@kanarus kanarus commented Feb 14, 2025

In

  • FangProc::bite
  • FangAction::{fore, back}

stop using -> impl SendOnNativeFuture<...> but explicitly write twice with #[cfg]s for rust-analyzer's completion.
Currently rust-analyzer can complete -> Future methods as async fn ... only when it returns exactly one of:

  • -> impl Future<Output = T>
  • -> impl Future<Output = T> + Send
  • -> impl Future<Output = T> + Send + 'lifetime

so -> impl SendOnNativeFuture<T> prevents his completion...

…e to enable rust-analyzer's `async fn ...` completion
@kanarus kanarus merged commit d8ed11e into v0.23 Feb 14, 2025
9 checks passed
@kanarus kanarus deleted the dx/fangs-rust-analyzer-completion branch February 14, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant