Skip to content

Commit 3dc78b5

Browse files
committed
Relax some rustdoc tests.
1 parent f5d5baf commit 3dc78b5

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)