Skip to content

Some macros leak the unstable-exhaustive-types cargo feature #1956

Description

@zecakeh

Since last week, the unexpected_cfgs lint reports also cfg attributes generated by external macros (rust-lang/rust#132577). It means that this lint is triggered by some of our macros when used outside of Ruma if the unstable-exhaustive-types feature is not defined on the crate where the macro is used (see matrix-org/matrix-rust-sdk#4336 where the lint was disabled as a result).

These are the relevant macros:

  • request
  • response
  • event_enum
  • EventContent

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions