mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 04:23:25 +00:00
Add one more profiling span to add_dep
This commit is contained in:
parent
6b187af337
commit
c37ca7841c
1 changed files with 1 additions and 0 deletions
|
@ -239,6 +239,7 @@ impl CrateGraph {
|
|||
name: CrateName,
|
||||
to: CrateId,
|
||||
) -> Result<(), CyclicDependenciesError> {
|
||||
let _p = profile::span("add_dep");
|
||||
if self.dfs_find(from, to, &mut FxHashSet::default()) {
|
||||
return Err(CyclicDependenciesError {
|
||||
from: (from, self[from].display_name.clone()),
|
||||
|
|
Loading…
Reference in a new issue