From 251ef93ac3bbb138a2eedf6090f2f56f1a15d898 Mon Sep 17 00:00:00 2001 From: oxalica Date: Thu, 10 Sep 2020 20:01:23 +0800 Subject: Implement async blocks --- crates/hir_ty/src/traits/chalk/tls.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/hir_ty/src/traits/chalk/tls.rs') diff --git a/crates/hir_ty/src/traits/chalk/tls.rs b/crates/hir_ty/src/traits/chalk/tls.rs index db915625c..cb6b0fe81 100644 --- a/crates/hir_ty/src/traits/chalk/tls.rs +++ b/crates/hir_ty/src/traits/chalk/tls.rs @@ -73,6 +73,9 @@ impl DebugContext<'_> { crate::OpaqueTyId::ReturnTypeImplTrait(func, idx) => { write!(f, "{{impl trait {} of {:?}}}", idx, func)?; } + crate::OpaqueTyId::AsyncBlockTypeImplTrait(def, idx) => { + write!(f, "{{impl trait of async block {} of {:?}}}", idx.into_raw(), def)?; + } }, TypeCtor::Closure { def, expr } => { write!(f, "{{closure {:?} in ", expr.into_raw())?; -- cgit v1.2.3