Function rustc_middle::lint::in_external_macro
source · pub fn in_external_macro(sess: &Session, span: Span) -> bool
Expand description
Returns whether span
originates in a foreign crate’s external macro.
This is used to test whether a lint should not even begin to figure out whether it should be reported on the current node.