Skip to content

Inconsistency with derive(Debug) #11947

@rgnkn

Description

@rgnkn

I'm not sure if rust-analyzer is the right place to inform about a annoying inconsistency with some warnings. Please check the following two examples which are essentially the same:

Screenshot from 2022-04-09 16-42-54

Screenshot from 2022-04-09 16-43-22

Both are producing the same output but while the second one leaves rust-analyzer silenced, the first one is full with "debatable" warnings. I would expect the derived output to let the warnings be silenced as with the second example as the field gets indeed read.

If the "intentionally ignored" refers to this behavior: Is there any way to turn this "ignorance" off?

This is no real big issue but it clutters the sources code and I think it might confuse especially beginners. If you think that this should be addressed somewhere else: Please guide me.

BTW: I'm using nightly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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