Skip to content

crate-level attributes without a main function are not up-lifted in the playground like rustdoc does #1329

Open
@tesuji

Description

@tesuji

For example, https://doc.rust-lang.org/nightly/unstable-book/library-features/asm.html#inputs-and-outputs
image

I found the code that might deal with it:

if (text.indexOf("#![feature") !== -1) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Code-BlocksArea: Code blocksA-PlaygroundArea: PlaygroundA-TestsArea: `mbdook test` related tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions