Skip to content

virtio-queue doctests fail due to build-time inclusion conditionals #136

Closed
@slp

Description

@slp

While building doctests, neither the test nor the doctest features are enabled. This means features gated behind [cfg(test...)] will not be available in doctests code. In virtio-queue case, this has an impact on mock visibility and some Descriptor helper methods aren't available either.

This is being discussed by the Rust Community here.

For the time being, we can either ignore the affected doctests (descriptor::Descriptor (line 21) and iterator::AvailIter (line 26)) or ungate those features. Personally, I'm fine with either.

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