#[derive(...)]
doesn't invalidate tokens for nested items
#81099
Labels
#[derive(...)]
doesn't invalidate tokens for nested items
#81099
Reproduction:
#[derive]
will fully configure the itemS
and remove#[cfg(FALSE)] { 10 }
before outputting the item or passing it toPartialEq
andEq
.#[print_attr]
however will print tokens for bothcfg
cases because its input tokens are not invalidated and are stale.Fix:
#[derive]
should walk the whole input item and invalidate tokens for all nested nodes, not only for the item itself.CanSynthesizeMissingTokens::Yes
.cc @Aaron1011
The text was updated successfully, but these errors were encountered: