]> git.lizzy.rs Git - rust.git/commit
rustdoc: Fix testing no_run code blocks
authorAlex Crichton <alex@alexcrichton.com>
Thu, 7 Apr 2016 23:47:12 +0000 (16:47 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 11 Apr 2016 16:26:59 +0000 (09:26 -0700)
commit42bcb4047d724b91b9026ac871cfe24f2e831f14
tree4bb3a22b654eb6af65a970eac943f423a4dd9c2f
parent470ca1c3ff33cd046f71a5453f8f520da4cd387e
rustdoc: Fix testing no_run code blocks

This was a regression introduced by #31250 where the compiler deferred returning
the results of compilation a little too late (after the `Stop` check was looked
at). This commit alters the stop point to first try to return an erroneous
`result` and only if it was successful return the sentinel `Err(0)`.

Closes #31576
src/librustc_driver/driver.rs
src/librustc_typeck/diagnostics.rs
src/test/run-pass/coerce-expect-unsized.rs
src/test/run-pass/deriving-via-extension-hash-enum.rs
src/test/run-pass/foreign-dupe.rs
src/test/rustdoc/no-run-still-checks-lints.rs [new file with mode: 0644]