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:


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.
I'm not sure if
rust-analyzeris the right place to inform about a annoying inconsistency with some warnings. Please check the following two examples which are essentially the same:Both are producing the same output but while the second one leaves
rust-analyzersilenced, 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.