Rust: '<' followed by a letter makes cargo doc hang on nightly

Created on 7 Apr 2020  路  9Comments  路  Source: rust-lang/rust

If I run cargo doc on the below code, it never finishes.

///<a
fn main() {
    println!("Hello, world!");
}

I expected to see it finish.

Problem does not exist on stable

C-bug T-rustdoc regression-from-stable-to-stable

Most helpful comment

Fixed upstream in https://github.com/raphlinus/pulldown-cmark/issues/438, but not released yet.

All 9 comments

cc @rust-lang/rustdoc

Fixed upstream in https://github.com/raphlinus/pulldown-cmark/issues/438, but not released yet.

Let's hope next version will be released soon then! :)

Unfortunately this also affects 1.43 beta.

Hm so this will hit stable in less than a week then. Do we consider it high priority enough to try to push through a release ourselves? (e.g. we can temporarily fork or whatever, perhaps only on the beta branch).

I personally lean towards no but wouldn't be opposed to doing so if t-rustdoc wanted to.

This issue halted development at our company for a day until we bisected the issue down to the particular line of code (a comment) that was causing cargo test to hang indefinitely. 馃槩

Thank you for all of your hard work on Rust. It is my most favourite language. I've been waiting for a suitable replacement for C++, and it has arrived! 馃榿

Looks like there's movement on a point release, https://github.com/raphlinus/pulldown-cmark/pull/439.

I would be in favor of backporting this to beta, since it's a really painful bug to hit...

Yea, PR to update is up at #71682.

Was this page helpful?
0 / 5 - 0 ratings