Skip to content

Rustdoc: Unable to fulfill trait #53102

Closed
@ghost

Description

I tried this code:

cargo doc

I expected to see this happen: documentation

Instead, this happened:
Documenting capnp v0.8.17
Checking iovec v0.1.2
Checking net2 v0.2.33
Checking rand v0.4.2
Checking num_cpus v1.8.0
Checking memchr v2.0.1
Checking time v0.1.40
thread '' panicked at 'Unable to fulfill trait DefId(2/0:865 ~ core[a6fc]::marker[0]::Send[0]) for 'list_list::Owned': [FulfillmentError(Obligation(predicate=Binder(ProjectionPredicate(ProjectionTy { substs: [T, ReStatic], item_def_id: DefId(0/0:1150 ~ capnp[8787]::traits[0]::Owned[0]::Reader[0]) }, )),depth=2),Ambiguity), FulfillmentError(Obligation(predicate=Binder(TraitPredicate(< as std::marker::Send>)),depth=2),Ambiguity)]', librustc/traits/auto_trait.rs:218:17
note: Run with RUST_BACKTRACE=1 for a backtrace.
Compiling openssl-sys v0.9.33

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.28.0 (9634041 2018-07-30) running on x86_64-unknown-linux-gnu

error: Could not document capnp.

Caused by:
process didn't exit successfully: rustdoc --crate-name capnp /home/oussama/.cargo/registry/src/github.com-1ecc6299db9ec823/capnp-0.8.17/src/lib.rs -o /home/oussama/Desktop/rust/playground/target/doc -L dependency=/home/oussama/Desktop/rust/playground/target/debug/deps --extern byteorder=/home/oussama/Desktop/rust/playground/target/debug/deps/libbyteorder-af85c17f60f27595.rmeta (exit code: 101)
warning: build failed, waiting for other jobs to finish...
error: build failed

Meta

rustc --version --verbose:

rustc 1.28.0 (9634041 2018-07-30)
binary: rustc
commit-hash: 9634041
commit-date: 2018-07-30
host: x86_64-unknown-linux-gnu
release: 1.28.0
LLVM version: 6.0

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