Skip to content

Couldn't generate the documentation (extern_prelude) #999

Closed
@adjivas

Description

@adjivas

Hello,

When I compile the documentation from futures-channel project, this error append:

cargo doc
 Documenting futures-channel v0.2.1 (file:///private/tmp/adjivas/futures-rs/futures-channel)
error[E0658]: access to extern crates through prelude is experimental (see issue #44660)
  |
  = help: add #![feature(extern_prelude)] to the crate attributes to enable

error: Could not document `futures-channel`.

Caused by:
  process didn't exit successfully: `rustdoc --crate-name futures_channel futures-channel/src/lib.rs -o /private/tmp/adjivas/futures-rs/target/doc --cfg feature="default" --cfg feature="futures-core" --cfg feature="std" -L dependency=/private/tmp/adjivas/futures-rs/target/debug/deps --extern futures_core=/private/tmp/adjivas/futures-rs/target/debug/deps/libfutures_core-670bf32b5273b58b.rmeta` (exit code: 101)

Of course if I add doc = false to Cargo.toml manifest from futures-channel or #![feature(extern_prelude)] to lib.rs that solve the compilation.

My versions are:

  • rustc 1.27.0-nightly (8a37c75a3 2018-05-02)
  • cargo 1.27.0-nightly (122fd5be5 2018-04-28)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions