File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1053,7 +1053,7 @@ async fn which(
1053
1053
} ;
1054
1054
1055
1055
Err ( anyhow ! (
1056
- "'{binary}' is not installed for the toolchain '{toolchain_name}'.\n To install, run `rustup component add {selector}{component_name}`"
1056
+ "'{binary}' is not installed for the toolchain '{toolchain_name}'.\n help: run `rustup component add {selector}{component_name}` to install it "
1057
1057
) )
1058
1058
}
1059
1059
@@ -1726,7 +1726,7 @@ async fn doc(
1726
1726
distributable. desc( )
1727
1727
) ;
1728
1728
info ! (
1729
- "To install, try `rustup component add --toolchain {} rust-docs`" ,
1729
+ "run `rustup component add --toolchain {} rust-docs` to install it " ,
1730
1730
distributable. desc( )
1731
1731
) ;
1732
1732
return Err ( anyhow ! (
Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ impl<'a> DistributableToolchain<'a> {
453
453
_ => format ! ( "--toolchain {} " , self . toolchain. name( ) ) ,
454
454
} ;
455
455
Err ( anyhow ! (
456
- "'{binary_lossy}' is not installed for the toolchain '{desc}'.\n To install, run `rustup component add {selector}{component_name}`"
456
+ "'{binary_lossy}' is not installed for the toolchain '{desc}'.\n help: run `rustup component add {selector}{component_name}` to install it "
457
457
) )
458
458
}
459
459
} else {
Original file line number Diff line number Diff line change @@ -705,7 +705,7 @@ async fn run_rls_when_not_installed() {
705
705
. await
706
706
. with_stderr ( snapbox:: str![ [ r#"
707
707
error: 'rls[EXE]' is not installed for the toolchain 'stable-[HOST_TRIPLE]'.
708
- To install, run `rustup component add rls`
708
+ help: run `rustup component add rls` to install it
709
709
710
710
"# ] ] )
711
711
. is_err ( ) ;
@@ -727,7 +727,7 @@ async fn run_rls_when_not_installed_for_nightly() {
727
727
. await
728
728
. with_stderr ( snapbox:: str![ [ r#"
729
729
error: 'rls[EXE]' is not installed for the toolchain 'nightly-[HOST_TRIPLE]'.
730
- To install, run `rustup component add --toolchain nightly-[HOST_TRIPLE] rls`
730
+ help: run `rustup component add --toolchain nightly-[HOST_TRIPLE] rls` to install it
731
731
732
732
"# ] ] )
733
733
. is_err ( ) ;
@@ -1403,7 +1403,7 @@ async fn which_asking_uninstalled_components() {
1403
1403
. await
1404
1404
. with_stderr ( snapbox:: str![ [ r#"
1405
1405
error: 'rustfmt' is not installed for the toolchain 'custom-1'.
1406
- [..]`rustup component add rustfmt`
1406
+ [..]`rustup component add rustfmt`[..]
1407
1407
1408
1408
"# ] ] )
1409
1409
. is_err ( ) ;
@@ -1419,7 +1419,7 @@ error: 'rustfmt' is not installed for the toolchain 'custom-1'.
1419
1419
. await
1420
1420
. with_stderr ( snapbox:: str![ [ r#"
1421
1421
[..]'rustfmt' is not installed for the toolchain 'custom-2'.
1422
- [..]`rustup component add --toolchain custom-2 rustfmt`
1422
+ [..]`rustup component add --toolchain custom-2 rustfmt`[..]
1423
1423
1424
1424
"# ] ] )
1425
1425
. is_err ( ) ;
Original file line number Diff line number Diff line change @@ -3342,7 +3342,7 @@ async fn docs_missing() {
3342
3342
. await
3343
3343
. with_stderr ( snapbox:: str![ [ r#"
3344
3344
info: `rust-docs` not installed in toolchain `nightly-[HOST_TRIPLE]`
3345
- info: To install, try `rustup component add --toolchain nightly-[HOST_TRIPLE] rust-docs`
3345
+ info: run `rustup component add --toolchain nightly-[HOST_TRIPLE] rust-docs` to install it
3346
3346
error: unable to view documentation which is not installed
3347
3347
3348
3348
"# ] ] )
Original file line number Diff line number Diff line change @@ -1020,7 +1020,7 @@ async fn rls_proxy_set_up_after_install() {
1020
1020
. await
1021
1021
. with_stderr ( snapbox:: str![ [ r#"
1022
1022
error: 'rls[EXE]' is not installed for the toolchain 'stable-[HOST_TRIPLE]'.
1023
- To install, run `rustup component add rls`
1023
+ help: run `rustup component add rls` to install it
1024
1024
1025
1025
"# ] ] )
1026
1026
. is_err ( ) ;
You can’t perform that action at this time.
0 commit comments