mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Implement async blocks
This commit is contained in:
parent
0275b08d15
commit
251ef93ac3
11 changed files with 248 additions and 55 deletions
|
@ -1283,6 +1283,8 @@ impl Type {
|
|||
/// Checks that particular type `ty` implements `std::future::Future`.
|
||||
/// This function is used in `.await` syntax completion.
|
||||
pub fn impls_future(&self, db: &dyn HirDatabase) -> bool {
|
||||
// No special case for the type of async block, since Chalk can figure it out.
|
||||
|
||||
let krate = self.krate;
|
||||
|
||||
let std_future_trait =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue