Closed
Description
The stability infrastructure should apply to macros in two ways:
- It should be possible to provide a stability level for a macro definition. This should trigger the lint on any use of the macro.
- The body of a macro should be linted at the definition site.
Of the two, the first is much more important. But it may require additional infrastructure in the AST to track e.g. the def_id of the macro that was expanded. (Currently, the expansion span information tracks only the name and source location of the macro.)