Skip to content

Pass --edition to rustdoc when an edition is configured #5279

@QuietMisdreavus

Description

@QuietMisdreavus

In rust-lang/rust#49451 i added an --edition flag to rustdoc that made it compile crates and doctests in the given edition. Cargo should be extended to call this flag when an edition is present in a project's Cargo.toml.

At present the flag is unstable, so a -Z unstable-options will need to be passed to rustdoc for it to work properly. I'm not sure how cargo handles the flag for rustc, but i imagine something similar should happen for rustdoc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions