Skip to content

Doctests in markdown should have a way to run in edition 2018 #52623

Closed
@scottmcm

Description

@scottmcm

I was working on try{}, which is 2018-only, so needed to disable the unstable book doctest for it since I couldn't find a way to run it in 2018: https://github.com/rust-lang/rust/pull/52602/files#diff-61f80654219faf8a22cb14554f6a9ae0R12

This would presumably also be useful for the edition guide, which is currently ignoreing most of its doctests, which has let typos slip in (like rust-lang/edition-guide#30).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-edition-2018Area: The 2018 editionE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.F-rust_2018_preview`#![feature(rust_2018_preview)]`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