-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no_run doctests no longer verify lints #31576
Comments
er, that r? was meant to be a cc |
Tagging as a regression and nominating |
The borrow checker also does not seem to operate on //! ```no_run
//! fn main() {
//! let mut s = "hello".to_owned();
//! let ref1 = &mut s;
//! let ref2 = &mut s;
//! }
//! ```
Will pass the Doc-tests. |
@crumblingstatue 's error does not happen on
so it must have happened recently. |
@steveklabnik |
I meant that the test fails, sorry. I cannot reproduce the bug. On Mar 10, 2016, 15:35 +0100, Mika [email protected], wrote:
|
Just to show a real life case, and the fact that this is not just an anomaly on my local system, here is a travis build of a project that passes on both beta and nightly, but fails (properly) on stable. https://travis-ci.org/jeremyletang/rust-sfml/builds/115021280 |
@nrc, any thoughts? |
tagging with T-compiler just so we can review in compiler mtg, even though it's sort of more tools. |
triage: P-high |
Bisection-via-nightly turns up 2016-02-01 was the last good and 2016-02-02 is the first bad. This points to some commit between 094c5b0 and b94cd7a, of which the most suspect is #31250. This line looks quite suspect, returning that there are 0 errors when Ok so after writing all that up I tested it out and I'll just make a PR soon. |
This was a regression introduced by rust-lang#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 rust-lang#31576
This was a regression introduced by rust-lang#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 rust-lang#31576
This was a regression introduced by rust-lang#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 rust-lang#31576
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
For code like this:
The stable/beta rustdoc will generate an error, while the nightly rustdoc will pass silently. This block looks suspicious perhaps?
r?cc @nrcThe text was updated successfully, but these errors were encountered: