-
Notifications
You must be signed in to change notification settings - Fork 13.3k
triggering a compiler bug with cargo doc
#48368
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
Comments
I'm not a compiler maintainer by any means, but I can see that there's a nontrivial number of dependencies and modules in your |
Just as heads up: |
Some extra information:
When run with RUST_BACKTRACE=1:
|
So there appears to be underflow occurring here: https://github.com/rust-lang/rust/blob/1.24.0/src/librustdoc/html/render.rs#L4139 It appears that this was fixed in 90e019b#diff-05c3c8b7c08a25764218b8c18d8204b7 tracked in #46976 |
@samrayleung you might want to close this issue as I've confirmed it's been fixed (in previous comment). |
Information about bug
I have encountered a compiler bug when I generate doc with
cargo doc
, it is information about the compiler bug:Environment information
OS: fedora 27
Compiler version: stable 1.24.0
How to reproduce
git clone https://github.com/samrayleung/rspotify /tmp
cd /tmp/rspotify
cargo doc
Expected output
Everything is fine, and doc is generated, but encounters an error
Additional Information
I don't whether this bug is fixed, but with
nightly
compiler, everything is fine. And sometimes with stable 1.24.0, it also works. Well, it is a little bit weird. Coincidentally, there is a discussion in Reddit about this bugHope Rust get better and better :)
The text was updated successfully, but these errors were encountered: