Skip to content

Commit d0679c7

Browse files
committed
Specify crates.io is the default registry & print index
1 parent 8a2d0a8 commit d0679c7

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/cargo/core/source/source_id.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ impl SourceId {
211211

212212
pub fn display_registry(&self) -> String {
213213
if self.is_default_registry() {
214-
"registry".to_string()
214+
"crates.io index".to_string()
215215
} else {
216-
format!("registry `{}`", self.url())
216+
format!("`{}` index", self.url())
217217
}
218218
}
219219

src/doc/src/guide/dependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ their dependencies, compile them all, and update the `Cargo.lock`:
4646

4747
```console
4848
$ cargo build
49-
Updating registry `https://github.com/rust-lang/crates.io-index`
49+
Updating crates.io index
5050
Downloading memchr v0.1.5
5151
Downloading libc v0.1.10
5252
Downloading regex-syntax v0.2.1

tests/testsuite/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3551,7 +3551,7 @@ fn build_all_member_dependency_same_name() {
35513551

35523552
p.cargo("build --all")
35533553
.with_stderr(
3554-
"[..] Updating registry `[..]`\n\
3554+
"[..] Updating `[..]` index\n\
35553555
[..] Downloading a v0.1.0 ([..])\n\
35563556
[..] Compiling a v0.1.0\n\
35573557
[..] Compiling a v0.1.0 ([..])\n\

tests/testsuite/cross_publish.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn publish_with_target() {
104104
.arg("--target")
105105
.arg(&target)
106106
.with_stderr(&format!(
107-
" Updating registry `{registry}`
107+
" Updating `{registry}` index
108108
Packaging foo v0.0.0 (CWD)
109109
Verifying foo v0.0.0 (CWD)
110110
Compiling foo v0.0.0 (CWD/target/package/foo-0.0.0)

tests/testsuite/doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ fn doc_all_member_dependency_same_name() {
967967
Package::new("bar", "0.1.0").publish();
968968

969969
p.cargo("doc --all")
970-
.with_stderr_contains("[..] Updating registry `[..]`")
970+
.with_stderr_contains("[..] Updating `[..]` index")
971971
.with_stderr_contains("[..] Documenting bar v0.1.0 ([..])")
972972
.run();
973973
}

tests/testsuite/search.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn not_update() {
111111
.with_stdout_contains(
112112
"hoare = \"0.1.1\" # Design by contract style assertions for Rust",
113113
)
114-
.with_stderr("") // without "Updating registry ..."
114+
.with_stderr("") // without "Updating ... index"
115115
.run();
116116
}
117117

@@ -122,7 +122,7 @@ fn replace_default() {
122122

123123
cargo_process("search postgres")
124124
.with_stdout_contains("hoare = \"0.1.1\" # Design by contract style assertions for Rust")
125-
.with_stderr_contains("[..]Updating registry[..]")
125+
.with_stderr_contains("[..]Updating [..] index")
126126
.run();
127127
}
128128

0 commit comments

Comments
 (0)