mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Find IntoFuture::IntoFuture's poll method
This commit is contained in:
parent
dc3219bb11
commit
cebf95718c
4 changed files with 65 additions and 10 deletions
|
@ -19,7 +19,7 @@ pub(crate) fn complete_dot(
|
|||
};
|
||||
|
||||
// Suggest .await syntax for types that implement Future trait
|
||||
if receiver_ty.impls_future(ctx.db) {
|
||||
if receiver_ty.impls_into_future(ctx.db) {
|
||||
let mut item =
|
||||
CompletionItem::new(CompletionItemKind::Keyword, ctx.source_range(), "await");
|
||||
item.detail("expr.await");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue