Auto merge of #17102 - davidbarsky:david/add-some-tracing-to-project-loading, r=lnicola

chore: add some `tracing` to project loading

I wanted to see what's happening during project loading and if it could be parallelized. I'm thinking maybe, but it's not this PR :)
This commit is contained in:
bors 2024-04-22 15:56:06 +00:00
commit e31c9f3fe1
7 changed files with 33 additions and 5 deletions

View file

@ -15,6 +15,7 @@ use rustc_hash::{FxHashMap, FxHashSet};
use semver::Version;
use span::Edition;
use toolchain::Tool;
use tracing::instrument;
use triomphe::Arc;
use crate::{
@ -885,6 +886,7 @@ impl ProjectWorkspace {
}
}
#[instrument(skip_all)]
fn project_json_to_crate_graph(
rustc_cfg: Vec<CfgFlag>,
load: FileLoader<'_>,