Skip to content

Feature flags + derive macros produce an incorrect "no such field" warning #11661

Closed
@alice-i-cecile

Description

@alice-i-cecile

rust-analyzer version: rust-analyzer version: 5fae65d 2022-03-07 stable

rustc version: rustc 1.60.0-nightly (bfe156467 2022-01-22)

relevant settings: None

Minimal reproducible example can be found here. The code compiles, both with and without the feature flag, but RA shows an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions