Skip to content

Commit 95b45ec

Browse files
committed
Auto merge of #6721 - ehuss:doc-test-relax, r=dwijnand
Relax some rustdoc tests. Unblocks rust-lang/rust#56732 which makes a minor change to the output for rustdoc. These tests are being a little overly specific, reduce them to checking just the important part.
2 parents 5a6b692 + a7fd667 commit 95b45ec

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/testsuite/doc.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ fn doc_message_format() {
13721372

13731373
p.cargo("doc --message-format=json")
13741374
.with_status(101)
1375-
.with_json(
1375+
.with_json_contains_unordered(
13761376
r#"
13771377
{
13781378
"message": {
@@ -1402,10 +1402,7 @@ fn short_message_format() {
14021402
p.cargo("doc --message-format=short")
14031403
.with_status(101)
14041404
.with_stderr_contains(
1405-
"\
1406-
src/lib.rs:4:6: error: `[bad_link]` cannot be resolved, ignoring it...
1407-
error: Could not document `foo`.
1408-
",
1405+
"src/lib.rs:4:6: error: `[bad_link]` cannot be resolved, ignoring it...",
14091406
)
14101407
.run();
14111408
}

0 commit comments

Comments
 (0)