aboutsummaryrefslogtreecommitdiff
path: root/src/tools/cargo/tests/testsuite/doc.rs
diff options
context:
space:
mode:
authorCharisee <chiw@google.com>2022-01-20 22:28:27 +0000
committerCharisee <chiw@google.com>2022-01-20 23:05:24 +0000
commitf55de583e63a90882362c8b3426341f02e09a50e (patch)
treee7e151b52a0a65f9cd24046faf1e45fb52d9fd6f /src/tools/cargo/tests/testsuite/doc.rs
parent356b57ec7b775b435a873057adc0ebf9e954f32c (diff)
downloadrustc-f55de583e63a90882362c8b3426341f02e09a50e.tar.gz
Importing rustc-1.58.1
Test: ./build.py --lto=thin Change-Id: I637e16a4efd2d840e3b96c318b72ef28f66ef177
Diffstat (limited to 'src/tools/cargo/tests/testsuite/doc.rs')
-rw-r--r--src/tools/cargo/tests/testsuite/doc.rs20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/tools/cargo/tests/testsuite/doc.rs b/src/tools/cargo/tests/testsuite/doc.rs
index 6bcdd2d02c..4e5e6e68db 100644
--- a/src/tools/cargo/tests/testsuite/doc.rs
+++ b/src/tools/cargo/tests/testsuite/doc.rs
@@ -1242,8 +1242,24 @@ fn doc_all_member_dependency_same_name() {
Package::new("bar", "0.1.0").publish();
p.cargo("doc --workspace")
- .with_stderr_contains("[..] Updating `[..]` index")
- .with_stderr_contains("[..] Documenting bar v0.1.0 ([..])")
+ .with_stderr_unordered(
+ "\
+[UPDATING] [..]
+[DOWNLOADING] crates ...
+[DOWNLOADED] bar v0.1.0 (registry `dummy-registry`)
+warning: output filename collision.
+The lib target `bar` in package `bar v0.1.0` has the same output filename as \
+the lib target `bar` in package `bar v0.1.0 ([ROOT]/foo/bar)`.
+Colliding filename is: [ROOT]/foo/target/doc/bar/index.html
+The targets should have unique names.
+This is a known bug where multiple crates with the same name use
+the same path; see <https://github.com/rust-lang/cargo/issues/6313>.
+[DOCUMENTING] bar v0.1.0
+[CHECKING] bar v0.1.0
+[DOCUMENTING] bar v0.1.0 [..]
+[FINISHED] [..]
+",
+ )
.run();
}