mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
b0b4b3122a
This change propagates to many locations, but because of the Macro Exterminator (or, more properly, the invariant that it protects), macro invocations can't occur downstream of expansion. This means that in librustc and librustdoc, extracting the desired field can simply assume that it can't be a macro invocation. Functions in ast_util abstract over this check.