mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
profile implements query
This commit is contained in:
parent
9fe8e56177
commit
0f3e85002b
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@ use std::sync::{Arc, Mutex};
|
|||
use rustc_hash::FxHashSet;
|
||||
use log::debug;
|
||||
use chalk_ir::cast::Cast;
|
||||
use ra_prof::profile;
|
||||
|
||||
use crate::{Crate, Trait, db::HirDatabase, ImplBlock};
|
||||
use super::{TraitRef, Ty, Canonical};
|
||||
|
@ -81,6 +82,7 @@ pub(crate) fn implements_query(
|
|||
krate: Crate,
|
||||
trait_ref: Canonical<TraitRef>,
|
||||
) -> Option<Solution> {
|
||||
let _p = profile("implements_query");
|
||||
let goal: chalk_ir::Goal = trait_ref.value.to_chalk(db).cast();
|
||||
debug!("goal: {:?}", goal);
|
||||
let env = chalk_ir::Environment::new();
|
||||
|
|
Loading…
Reference in a new issue