Function rustc::lint::in_external_macro [−][src]
pub fn in_external_macro(sess: &Session, span: Span) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Returns whether span
originates in a foreign crate's external macro.
This is used to test whether a lint should be entirely aborted above.