Struct syntax::json::DiagnosticSpanMacroExpansion [−][src]
struct DiagnosticSpanMacroExpansion { span: DiagnosticSpan, macro_decl_name: String, def_site_span: Option<DiagnosticSpan>, }
🔬 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?
Fields
span: DiagnosticSpan
🔬 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?
span where macro was applied to generate this code; note that
this may itself derive from a macro (if
span.expansion.is_some()
)
macro_decl_name: String
🔬 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?
name of macro that was applied (e.g., "foo!" or "#[derive(Eq)]")
def_site_span: Option<DiagnosticSpan>
🔬 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?
span where macro was defined (if known)
Trait Implementations
Auto Trait Implementations
impl Send for DiagnosticSpanMacroExpansion
impl Send for DiagnosticSpanMacroExpansion
impl Sync for DiagnosticSpanMacroExpansion
impl Sync for DiagnosticSpanMacroExpansion