File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -333,8 +333,12 @@ impl<'a> Toolchain<'a> {
333
333
// Should push the cargo fallback into a custom toolchain type? And then
334
334
// perhaps a trait that create command layers on?
335
335
if let Some ( cmd) = self . maybe_do_cargo_fallback ( binary) ? {
336
+ info ! ( "`cargo` is unavailable for the active toolchain" ) ;
337
+ info ! ( "falling back to {:?}" , cmd. get_program( ) ) ;
336
338
return Ok ( cmd) ;
337
339
} else if let Some ( cmd) = self . maybe_do_rust_analyzer_fallback ( binary) ? {
340
+ info ! ( "`rust-analyzer` is unavailable for the active toolchain" ) ;
341
+ info ! ( "falling back to {:?}" , cmd. get_program( ) ) ;
338
342
return Ok ( cmd) ;
339
343
}
340
344
Original file line number Diff line number Diff line change @@ -1343,7 +1343,10 @@ async fn rust_analyzer_proxy_falls_back_external() {
1343
1343
& [ "rust-analyzer" , "--echo-current-exe" ] ,
1344
1344
& [ ( "PATH" , & extern_dir. to_string_lossy ( ) ) ] ,
1345
1345
"" ,
1346
- & format ! ( "{}\n " , extern_path. display( ) ) ,
1346
+ & format ! (
1347
+ "info: `rust-analyzer` is unavailable for the active toolchain\n info: falling back to {:?}\n {}\n " ,
1348
+ extern_path. as_os_str( ) , extern_path. display( )
1349
+ ) ,
1347
1350
)
1348
1351
. await ;
1349
1352
}
You can’t perform that action at this time.
0 commit comments