pub fn expn_is_local(expn: ExpnId) -> bool
Checks whether the expansion is the root expansion or a locally defined macro