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 @@ -711,7 +711,7 @@ async fn run_rls_when_not_installed() {
711
711
. await
712
712
. with_stderr ( snapbox:: str![ [ r#"
713
713
error: 'rls[EXE]' is not installed for the toolchain 'stable-[HOST_TRIPLE]'.
714
- To install, run `rustup component add rls`
714
+ help: run `rustup component add rls` to install it
715
715
716
716
"# ] ] )
717
717
. is_err ( ) ;
@@ -733,7 +733,7 @@ async fn run_rls_when_not_installed_for_nightly() {
733
733
. await
734
734
. with_stderr ( snapbox:: str![ [ r#"
735
735
error: 'rls[EXE]' is not installed for the toolchain 'nightly-[HOST_TRIPLE]'.
736
- To install, run `rustup component add --toolchain nightly-[HOST_TRIPLE] rls`
736
+ help: run `rustup component add --toolchain nightly-[HOST_TRIPLE] rls` to install it
737
737
738
738
"# ] ] )
739
739
. is_err ( ) ;
@@ -1409,7 +1409,7 @@ async fn which_asking_uninstalled_components() {
1409
1409
. await
1410
1410
. with_stderr ( snapbox:: str![ [ r#"
1411
1411
error: 'rustfmt' is not installed for the toolchain 'custom-1'.
1412
- [..]`rustup component add rustfmt`
1412
+ [..]`rustup component add rustfmt`[..]
1413
1413
1414
1414
"# ] ] )
1415
1415
. is_err ( ) ;
@@ -1425,7 +1425,7 @@ error: 'rustfmt' is not installed for the toolchain 'custom-1'.
1425
1425
. await
1426
1426
. with_stderr ( snapbox:: str![ [ r#"
1427
1427
[..]'rustfmt' is not installed for the toolchain 'custom-2'.
1428
- [..]`rustup component add --toolchain custom-2 rustfmt`
1428
+ [..]`rustup component add --toolchain custom-2 rustfmt`[..]
1429
1429
1430
1430
"# ] ] )
1431
1431
. is_err ( ) ;
Original file line number Diff line number Diff line change @@ -3373,7 +3373,7 @@ async fn docs_missing() {
3373
3373
. await
3374
3374
. with_stderr ( snapbox:: str![ [ r#"
3375
3375
info: `rust-docs` not installed in toolchain `nightly-[HOST_TRIPLE]`
3376
- info: To install, try `rustup component add --toolchain nightly-[HOST_TRIPLE] rust-docs`
3376
+ help: run `rustup component add --toolchain nightly-[HOST_TRIPLE] rust-docs` to install it
3377
3377
error: unable to view documentation which is not installed
3378
3378
3379
3379
"# ] ] )
Original file line number Diff line number Diff line change @@ -1008,7 +1008,7 @@ async fn rls_proxy_set_up_after_install() {
1008
1008
. await
1009
1009
. with_stderr ( snapbox:: str![ [ r#"
1010
1010
error: 'rls[EXE]' is not installed for the toolchain 'stable-[HOST_TRIPLE]'.
1011
- To install, run `rustup component add rls`
1011
+ help: run `rustup component add rls` to install it
1012
1012
1013
1013
"# ] ] )
1014
1014
. is_err ( ) ;
You can’t perform that action at this time.
0 commit comments