forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#60220 - euclio:rustdoc-test-fatal-parsing-e…
…rrors, r=QuietMisdreavus report fatal errors during doctest parsing Fixes rust-lang#59557.
- Loading branch information
Showing
4 changed files
with
55 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// compile-flags: --test | ||
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" | ||
// failure-status: 101 | ||
// rustc-env: RUST_BACKTRACE=0 | ||
|
||
/// ```rust | ||
/// let x = 7; | ||
/// "unterminated | ||
/// ``` | ||
pub fn foo() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
running 1 test | ||
test $DIR/unparseable-doc-test.rs - foo (line 6) ... FAILED | ||
|
||
failures: | ||
|
||
---- $DIR/unparseable-doc-test.rs - foo (line 6) stdout ---- | ||
error: unterminated double quote string | ||
--> $DIR/unparseable-doc-test.rs:8:1 | ||
| | ||
2 | "unterminated | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
||
thread '$DIR/unparseable-doc-test.rs - foo (line 6)' panicked at 'couldn't compile the test', src/librustdoc/test.rs:319:13 | ||
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. | ||
|
||
|
||
failures: | ||
$DIR/unparseable-doc-test.rs - foo (line 6) | ||
|
||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out | ||
|