From d3ca22876c8e380ba3dfa77a2c8f8b5faf27e21c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Fri, 5 Mar 2021 20:25:24 +0200 Subject: Make two calls virtual --- crates/hir_def/src/db.rs | 2 +- crates/hir_ty/src/db.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/hir_def/src/db.rs b/crates/hir_def/src/db.rs index 6c01f1ed0..cca5a086b 100644 --- a/crates/hir_def/src/db.rs +++ b/crates/hir_def/src/db.rs @@ -133,7 +133,7 @@ pub trait DefDatabase: InternDatabase + AstDatabase + Upcast { fn import_map(&self, krate: CrateId) -> Arc; } -fn crate_def_map_wait(db: &impl DefDatabase, krate: CrateId) -> Arc { +fn crate_def_map_wait(db: &dyn DefDatabase, krate: CrateId) -> Arc { let _p = profile::span("crate_def_map:wait"); db.crate_def_map_query(krate) } diff --git a/crates/hir_ty/src/db.rs b/crates/hir_ty/src/db.rs index b3af82444..06714409f 100644 --- a/crates/hir_ty/src/db.rs +++ b/crates/hir_ty/src/db.rs @@ -130,7 +130,7 @@ pub trait HirDatabase: DefDatabase + Upcast { ) -> chalk_ir::ProgramClauses; } -fn infer_wait(db: &impl HirDatabase, def: DefWithBodyId) -> Arc { +fn infer_wait(db: &dyn HirDatabase, def: DefWithBodyId) -> Arc { let _p = profile::span("infer:wait").detail(|| match def { DefWithBodyId::FunctionId(it) => db.function_data(it).name.to_string(), DefWithBodyId::StaticId(it) => { -- cgit v1.2.3