chore: add some tracing to project loading

This commit is contained in:
David Barsky 2024-04-18 14:39:43 -04:00
parent af1fd88c4d
commit 2a030ba755
7 changed files with 33 additions and 5 deletions

View file

@ -16,6 +16,7 @@ use semver::Version;
use span::Edition;
use stdx::always;
use toolchain::Tool;
use tracing::instrument;
use triomphe::Arc;
use crate::{
@ -863,6 +864,7 @@ impl ProjectWorkspace {
}
}
#[instrument(skip_all)]
fn project_json_to_crate_graph(
rustc_cfg: Vec<CfgFlag>,
load: &mut dyn FnMut(&AbsPath) -> Option<FileId>,