vagueness about "add additional attributes" in macro.proc.derive.attributes
#1760
Labels
A-proc-macro
Area: proc-macros
Language Cleanup
Improvements to existing language which is correct but not clear, or missing examples, or the like.
When it says a derive macro can "add additional attributes into the scope", it does not make it very clear that it allows these helper attributes to be used in the scope. Instead, the way it is worded suggests the
derive
macro can mutate its inputTokenStream
, which as far as I am aware is not the case. I believederive
macros are "pure"... with respect to their TokenStream, anyway....also "add additional" anything seems slightly repetitive, but that's relatively minor.
The text was updated successfully, but these errors were encountered: