Skip to content

Rustdoc ICE 'Infer', src/librustdoc/clean/mod.rs #60269

Closed
@LucioFranco

Description

@LucioFranco

Hello! I searched around and couldn't find any issue that is related to this. I have compiling code here https://github.com/tower-rs/tower-hyper that seems to fail when in run cargo doc with:

thread 'rustc' panicked at 'Infer', src/librustdoc/clean/mod.rs:2903:30
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.34.0 (91856ed52 2019-04-10) running on x86_64-apple-darwin

error: Could not document `tower-hyper`.

Caused by:
  process didn't exit successfully: `rustdoc --edition=2018 --crate-name tower_hyper src/lib.rs --color always -o /Users/lucio/code/tower-hyper/target/doc -L dependency=/Users/lucio/code/tower-hyper/target/debug/deps --extern futures=/Users/lucio/code/tower-hyper/target/debug/deps/libfutures-1e2999450b2419eb.rmeta --extern http=/Users/lucio/code/tower-hyper/target/debug/deps/libhttp-cf0a3164f3f563fd.rmeta --extern hyper=/Users/lucio/code/tower-hyper/target/debug/deps/libhyper-452ca54e3f820463.rmeta --extern log=/Users/lucio/code/tower-hyper/target/debug/deps/liblog-75a074a4b89524ff.rmeta --extern tokio_buf=/Users/lucio/code/tower-hyper/target/debug/deps/libtokio_buf-cd9601f408caeb33.rmeta --extern tokio_executor=/Users/lucio/code/tower-hyper/target/debug/deps/libtokio_executor-c67f7b74fd64079c.rmeta --extern tokio_io=/Users/lucio/code/tower-hyper/target/debug/deps/libtokio_io-1de1b000031540d9.rmeta --extern tower=/Users/lucio/code/tower-hyper/target/debug/deps/libtower-dfc827168ff91516.rmeta --extern tower_http=/Users/lucio/code/tower-hyper/target/debug/deps/libtower_http-b4824a8d9ae1e7e3.rmeta --extern tower_service=/Users/lucio/code/tower-hyper/target/debug/deps/libtower_service-167cf579d007ab89.rmeta` (exit code: 1)
tower-hyper(master): cargo --version
cargo 1.34.0 (6789d8a0a 2019-04-01)
tower-hyper(master): rustc --version -v
rustc 1.34.0 (91856ed52 2019-04-10)
binary: rustc
commit-hash: 91856ed52c58aa5ba66a015354d1cc69e9779bdf
commit-date: 2019-04-10
host: x86_64-apple-darwin
release: 1.34.0
LLVM version: 8.0

Specifically speaking, I am able to document the crate without an ICE happening if I disable this module https://github.com/tower-rs/tower-hyper/blob/master/src/server/mod.rs.

More specifically, I have a feeling that this is happening due to bounds on this impl https://github.com/tower-rs/tower-hyper/blob/master/src/server/mod.rs#L97. This mod was compiling and documenting fine before I add this impl for Serve.

Let me know if there is anything else I can provide to help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions