-
Notifications
You must be signed in to change notification settings - Fork 13.4k
triggering a compiler bug with cargo doc
#48368
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # 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). |
Uh oh!
There was an error while loading. Please reload this page.
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: