Skip to content

Commit 2932932

Browse files
committed
Auto merge of #8528 - ehuss:fix-intra-doc-tests, r=alexcrichton
Fix nightly tests for intra-doc links. Some of the error messages have changed slightly.
2 parents f84f3f8 + 9e35ee1 commit 2932932

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/testsuite/doc.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,11 +1287,7 @@ fn doc_cap_lints() {
12871287
p.root().join("target").rm_rf();
12881288

12891289
p.cargo("doc -vv")
1290-
.with_stderr_contains(
1291-
"\
1292-
[WARNING] `[bad_link]` cannot be resolved[..]
1293-
",
1294-
)
1290+
.with_stderr_contains("[WARNING] [..]`bad_link`[..]")
12951291
.run();
12961292
}
12971293

@@ -1334,7 +1330,7 @@ fn short_message_format() {
13341330
let p = project().file("src/lib.rs", BAD_INTRA_LINK_LIB).build();
13351331
p.cargo("doc --message-format=short")
13361332
.with_status(101)
1337-
.with_stderr_contains("src/lib.rs:4:6: error: `[bad_link]` cannot be resolved[..]")
1333+
.with_stderr_contains("src/lib.rs:4:6: error: [..]`bad_link`[..]")
13381334
.run();
13391335
}
13401336

0 commit comments

Comments
 (0)