Skip to content

Commit

Permalink
Fix nightly tests for intra-doc links.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss authored and alexcrichton committed Jul 23, 2020
1 parent 149022b commit 17490a2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/testsuite/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1287,11 +1287,7 @@ fn doc_cap_lints() {
p.root().join("target").rm_rf();

p.cargo("doc -vv")
.with_stderr_contains(
"\
[WARNING] `[bad_link]` cannot be resolved[..]
",
)
.with_stderr_contains("[WARNING] [..]`bad_link`[..]")
.run();
}

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

Expand Down

0 comments on commit 17490a2

Please sign in to comment.