We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b086040 + 077403a commit bee4926Copy full SHA for bee4926
src/tools/rust-analyzer/crates/project-model/src/sysroot.rs
@@ -443,13 +443,13 @@ fn discover_sysroot_src_dir_or_add_component(
443
get_rust_src(sysroot_path)
444
})
445
.ok_or_else(|| {
446
- format_err!(
447
- "\
+ let error = "\
448
can't load standard library from sysroot
449
{sysroot_path}
450
(discovered via `rustc --print sysroot`)
451
-try installing the Rust source the same way you installed rustc",
452
- )
+try installing the Rust source the same way you installed rustc";
+ tracing::error!(error);
+ format_err!(error)
453
454
}
455
0 commit comments