]> git.lizzy.rs Git - rust.git/commit
Auto merge of #32811 - alexcrichton:check-lints, r=nrc
authorbors <bors@rust-lang.org>
Tue, 12 Apr 2016 14:14:55 +0000 (07:14 -0700)
committerbors <bors@rust-lang.org>
Tue, 12 Apr 2016 14:14:55 +0000 (07:14 -0700)
commit933000613b7774727dd7f1bfe766e2bee71c5747
treee3a72cdf530d481cb124e057c0fbbb28fc6e1ddf
parentbed32d83fcd1337e962a58fd04fae6b8503e3283
parent42bcb4047d724b91b9026ac871cfe24f2e831f14
Auto merge of #32811 - alexcrichton:check-lints, r=nrc

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