Skip to content

Deserialization fails for #[inline] #52

@Benjscho

Description

@Benjscho

When deserializing docs that contain #[inline] the latest version of rustdoc-types fails with an err:

Error: Failed to parse rustdoc JSON: unknown variant `#[inline]`, expected one of `non_exhaustive`, `must_use`, `export_name`, `link_section`, `automatically_derived`, `repr`, `no_mangle`, `target_feature`, `other` at line 1 column 230

This is a minimal repro of the issue: https://github.com/Benjscho/deser-err-repro/blob/main/src/main.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions