File tree Expand file tree Collapse file tree 5 files changed +10
-13
lines changed Expand file tree Collapse file tree 5 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -1045,7 +1045,7 @@ async fn which(
1045
1045
} ;
1046
1046
1047
1047
Err ( anyhow ! (
1048
- "'{binary}' is not installed for the toolchain '{toolchain_name}'.\n To install, run `rustup component add {selector}{component_name}`"
1048
+ "'{binary}' is not installed for the toolchain '{toolchain_name}'.\n help: run `rustup component add {selector}{component_name}` to install it "
1049
1049
) )
1050
1050
}
1051
1051
@@ -1714,11 +1714,8 @@ async fn doc(
1714
1714
. as_slice ( )
1715
1715
{
1716
1716
info ! (
1717
- "`rust-docs` not installed in toolchain `{}`" ,
1718
- distributable. desc( )
1719
- ) ;
1720
- info ! (
1721
- "To install, try `rustup component add --toolchain {} rust-docs`" ,
1717
+ "`rust-docs` not installed in toolchain `{}`\n help: run `rustup component add --toolchain {} rust-docs` to install it" ,
1718
+ distributable. desc( ) ,
1722
1719
distributable. desc( )
1723
1720
) ;
1724
1721
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
+ help: 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