Skip to content

doc_comment::doctest!() is never called #987

Closed
@0ndorio

Description

@0ndorio

It seems that the test feature requirement for the doctest!() macro currently disables the validation of the tests cases inside the README.md file.

https://github.com/Geal/nom/blob/f40e4a74bd25abea2d2de306476c143dd0e9a181/src/lib.rs#L425-L426

I assume that the reason here is rustdoc not using the test flag (rust-lang/rust#61199). So this will not work until rust-lang/rust#61351 and rust-lang/rust#62213 are merged and we change the l.425 into #[cfg(doctest)].

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