Skip to content

rustdoc should not automatically insert feature gates for testing code snippets in plain markdown files #12773

Closed
@huonw

Description

@huonw

Currently running rustdoc --test foo.md will automatically insert

#[ feature(macro_rules, globs, struct_variant, managed_boxes) ];

into every snippet. This is a stopgap measure added by #12747 to easy migration from the old extract-tests.py driver to the new rustdoc --test one.

Fixing this would preferably involve removing as many of the uses of feature gated things as possible from the tutorial, manual and guides.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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