Skip to content

Commit a7809fe

Browse files
authored
Merge pull request #3032 from hi-rustin/rustin-patch-msg
Unify the msg of the prompt when downloading self-update
2 parents 6264e98 + 22ee285 commit a7809fe

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

doc/src/basics.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ info: installing component 'rustc'
2121
info: installing component 'rust-std'
2222
info: installing component 'rust-docs'
2323
info: installing component 'cargo'
24-
info: checking for self-updates
25-
info: downloading self-updates
24+
info: checking for self-update
25+
info: downloading self-update
2626

2727
stable updated: rustc 1.7.0 (a5d1e7a59 2016-02-29)
2828

@@ -49,8 +49,8 @@ This will not download new toolchains:
4949

5050
```console
5151
$ rustup self update
52-
info: checking for self-updates
53-
info: downloading self-updates
52+
info: checking for self-update
53+
info: downloading self-update
5454
```
5555

5656
### Disabling self updates on a per-invocation basis

doc/src/concepts/channels.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ will be updated in addition to stable:
7777
$ rustup update
7878
info: syncing channel updates for 'stable'
7979
info: syncing channel updates for 'nightly'
80-
info: checking for self-updates
81-
info: downloading self-updates
80+
info: checking for self-update
81+
info: downloading self-update
8282

8383
stable unchanged: rustc 1.7.0 (a5d1e7a59 2016-02-29)
8484
nightly unchanged: rustc 1.9.0-nightly (02310fd31 2016-03-19)

doc/src/environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Deprecated. Use `RUSTUP_DIST_SERVER` instead.
1818

1919
- `RUSTUP_UPDATE_ROOT` (default `https://static.rust-lang.org/rustup`) Sets
20-
the root URL for downloading self-updates.
20+
the root URL for downloading self-update.
2121

2222
- `RUSTUP_IO_THREADS` *unstable* (defaults to reported cpu count). Sets the
2323
number of threads to perform close IO in. Set to `1` to force

src/cli/self_update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ pub(crate) fn prepare_update() -> Result<Option<PathBuf>> {
11321132
let current_version = env!("CARGO_PKG_VERSION");
11331133

11341134
// Get available version
1135-
info!("checking for self-updates");
1135+
info!("checking for self-update");
11361136
let available_version = get_available_rustup_version()?;
11371137

11381138
// If up-to-date

tests/cli-exact.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ info: installing component 'cargo'
114114
info: installing component 'rust-docs'
115115
info: installing component 'rust-std'
116116
info: installing component 'rustc'
117-
info: checking for self-updates
117+
info: checking for self-update
118118
info: downloading self-update
119119
"
120120
),

tests/cli-self-upd.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ fn uninstall_doesnt_leave_gc_file() {
299299
#[test]
300300
fn update_exact() {
301301
let version = env!("CARGO_PKG_VERSION");
302-
let expected_output = "info: checking for self-updates
302+
let expected_output = "info: checking for self-update
303303
info: downloading self-update
304304
"
305305
.to_string();
@@ -439,7 +439,7 @@ fn update_no_change() {
439439
",
440440
version
441441
),
442-
r"info: checking for self-updates
442+
r"info: checking for self-update
443443
",
444444
);
445445
});
@@ -512,7 +512,7 @@ fn rustup_self_update_exact() {
512512
),
513513
for_host!(
514514
r"info: syncing channel updates for 'stable-{0}'
515-
info: checking for self-updates
515+
info: checking for self-update
516516
info: downloading self-update
517517
info: cleaning up downloads & tmp directories
518518
"

tests/mock/clitools.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ where
566566
A: AsRef<OsStr>,
567567
{
568568
// Only the rustup alias is currently ready for in-process testing:
569-
// - -init performs self-updates which monkey with global external state.
569+
// - -init performs self-update which monkey with global external state.
570570
// - proxies themselves behave appropriately the proxied output needs to be
571571
// collected for assertions to be made on it as our tests traverse layers.
572572
// - self update executions cannot run in-process because on windows the

0 commit comments

Comments
 (0)