-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc stack overflow on stable (1.25.0) and nightly (ac3c2288f) #50196
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
Below is a minimal reproduction. The code that makes rustdoc overflow its stack is therefore somewhere upwards in the dependency chain. Cargo.toml: [package]
name = "resvg_reproduction"
version = "0.1.0"
authors = ["est31 <[email protected]>"]
[dependencies]
usvg = "0.1" extern crate usvg;
pub use usvg::tree; |
@est31 is there any hotfix that I can do on my side? |
@RazrFalcon I'm currently attempting to minimize the reproduction by slicing apart the usvg crate. I'm not aware of a hotfix. |
Found an actual minimal reproduction. resvg_reproduction Cargo.toml: [package]
name = "resvg_reproduction"
version = "0.1.0"
authors = ["est31 <[email protected]>"]
[dependencies]
usvg_reproduction = {path = "../usvg_reproduction"} resvg_reproduction lib.rs: extern crate usvg_reproduction;
pub use usvg_reproduction::tree; usvg_reproduction Cargo.toml: [package]
name = "usvg_reproduction"
version = "0.1.0"
authors = ["est31 <[email protected]>"] usvg_reproduction lib.rs: pub mod tree {
pub use tree;
} I guess something inside rustdoc tries to follow these self referential indirections infinitely deep and this causes the stack overflow. For a hotfix the following has worked for me: a) removing the |
Thanks for finding a cause. Will think about what I can do here. |
…isdreavus Prevent infinite recursion of modules Fixes #50196. r? @QuietMisdreavus
I got a stack overflow during
cargo doc
on my crate:The text was updated successfully, but these errors were encountered: