You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to how all variants of hir::Adt are HasSource, allowing the enum itself to be impl HasSource, the same can be done for hir::VariantDef. This would require introducing a new ast::VariantDef enum in ra-ap-syntax to be able to map the source between the two.
The text was updated successfully, but these errors were encountered:
Purely for completeness. It's quite trivial to work around this with a match block - it just adds consistency to the API since every other sum type I'm aware of implements traits that all variants implement. If acceptable, I'd be happy to put a PR up!
Similar to how all variants of
hir::Adt
areHasSource
, allowing the enum itself to beimpl HasSource
, the same can be done forhir::VariantDef
. This would require introducing a newast::VariantDef
enum in ra-ap-syntax to be able to map the source between the two.The text was updated successfully, but these errors were encountered: