Inconsistency between accessing field of braced struct vs tuple struct in proc macro #47312
Labels
A-macros-2.0
Area: Declarative macros 2.0 (#39412)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
If a procedural macro generates an access to a named struct field like
self.x
then the.
may be either def_site or call_site and it works either way. But if accessing an unnamed tuple struct field likeself.0
then it only works if.
is call_site.I believe it should work either way in either case.
@jseyfried
The text was updated successfully, but these errors were encountered: