Skip to content

Include field rustdocs in generated code #895

Open
@dcreager

Description

@dcreager

If you add rustdocs to a tracked or interned struct:

/// A description of the struct itself
#[salsa::tracked]
struct Yay {
    /// An exquisitely useful description of this field
    field: u32,
}

then the comment for the struct itself is carried over to the generated code, but the comments for each field are not. It would be nice if those were carried over to the accessor functions that are generated for the field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions