Empty "tuple variant defined here" note #105241
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
playground
Current output
The note starting with "note: tuple variant defined here" is confusing. Where is "here"?
I suspect it's trying to to show part of the definition of the
Option
type, but failing because the definition is in a different crate (or because it's part ofstd
).Ideal output
Don't try to show the enum-variant definition when it can't be shown, I guess?
For cases like this one that involve generics, see #105240 for a proposed alternative.
Regression
The empty note first appears in nightly-2022-06-12
Version
The text was updated successfully, but these errors were encountered: