Skip to content

Commit 317542c

Browse files
authored
Merge pull request #20098 from regexident/cleanup-progress-messages
Unify formatting of progress messages
2 parents 749288e + 3e6509f commit 317542c

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

crates/project-model/src/build_dependencies.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ impl WorkspaceBuildScripts {
356356
});
357357
}
358358
Message::CompilerMessage(message) => {
359-
progress(message.target.name);
359+
progress(format!("received compiler message for: {}", message.target.name));
360360

361361
if let Some(diag) = message.message.rendered.as_deref() {
362362
push_err(diag);

crates/project-model/src/workspace.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ impl ProjectWorkspace {
213213
config: &CargoConfig,
214214
progress: &(dyn Fn(String) + Sync),
215215
) -> Result<ProjectWorkspace, anyhow::Error> {
216-
progress("Discovering sysroot".to_owned());
217-
216+
progress("discovering sysroot".to_owned());
218217
let CargoConfig {
219218
features,
220219
rustc_source,
@@ -270,7 +269,7 @@ impl ProjectWorkspace {
270269
let workspace_dir = cargo_toml.parent();
271270

272271
tracing::info!(workspace = %cargo_toml, src_root = ?sysroot.rust_lib_src_root(), root = ?sysroot.root(), "Using sysroot");
273-
progress("Querying project metadata".to_owned());
272+
progress("querying project metadata".to_owned());
274273
let toolchain_config = QueryConfig::Cargo(&sysroot, cargo_toml);
275274
let targets =
276275
target_tuple::get(toolchain_config, target.as_deref(), extra_env).unwrap_or_default();
@@ -461,12 +460,12 @@ impl ProjectWorkspace {
461460
config: &CargoConfig,
462461
progress: &(dyn Fn(String) + Sync),
463462
) -> ProjectWorkspace {
464-
progress("Discovering sysroot".to_owned());
463+
progress("discovering sysroot".to_owned());
465464
let mut sysroot =
466465
Sysroot::new(project_json.sysroot.clone(), project_json.sysroot_src.clone());
467466

468467
tracing::info!(workspace = %project_json.manifest_or_root(), src_root = ?sysroot.rust_lib_src_root(), root = ?sysroot.root(), "Using sysroot");
469-
progress("Querying project metadata".to_owned());
468+
progress("querying project metadata".to_owned());
470469
let sysroot_project = project_json.sysroot_project.take();
471470
let query_config = QueryConfig::Rustc(&sysroot, project_json.path().as_ref());
472471
let targets = target_tuple::get(query_config, config.target.as_deref(), &config.extra_env)

crates/rust-analyzer/src/reload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ impl GlobalState {
428428
let expansion_res = match client {
429429
Ok(client) => match res {
430430
Ok((crate_name, path)) => {
431-
progress(path.to_string());
431+
progress(format!("loading proc-macros: {path}"));
432432
let ignored_proc_macros = ignored_proc_macros
433433
.iter()
434434
.find_map(|(name, macros)| {

0 commit comments

Comments
 (0)