Skip to content

Get rid of the distinction between method and function in rustdoc JSON output #100259

Closed
@jyn514

Description

@jyn514

Rust has no concept of methods. Distinguishing between these makes no sense and is an artifact of how rustdoc represents these internally - consider for example the ambiguous case

pub struct Foo {}

impl Foo {
    pub fn bar() {}
}

We should remove this distinction before the format is stabilized.

cc @obi1kenobi @CraftSpider @camelid

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-jsArea: Rustdoc's JS front-endA-rustdoc-jsonArea: Rustdoc JSON backend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions