Struct rustc_resolve::errors::UnreachableLabel
source · pub(crate) struct UnreachableLabel {
pub(crate) span: Span,
pub(crate) name: Symbol,
pub(crate) definition_span: Span,
pub(crate) sub_suggestion: Option<UnreachableLabelSubSuggestion>,
pub(crate) sub_suggestion_label: Option<UnreachableLabelSubLabel>,
pub(crate) sub_unreachable_label: Option<UnreachableLabelSubLabelUnreachable>,
}
Fields§
§span: Span
§name: Symbol
§definition_span: Span
§sub_suggestion: Option<UnreachableLabelSubSuggestion>
§sub_suggestion_label: Option<UnreachableLabelSubLabel>
§sub_unreachable_label: Option<UnreachableLabelSubLabelUnreachable>
Trait Implementations§
source§impl<'__diagnostic_handler_sess, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for UnreachableLabelwhere
G: EmissionGuarantee,
impl<'__diagnostic_handler_sess, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for UnreachableLabelwhere
G: EmissionGuarantee,
source§fn into_diagnostic(
self,
handler: &'__diagnostic_handler_sess Handler
) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
fn into_diagnostic(
self,
handler: &'__diagnostic_handler_sess Handler
) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
Write out as a diagnostic out of
Handler
.Auto Trait Implementations§
impl RefUnwindSafe for UnreachableLabel
impl !Send for UnreachableLabel
impl !Sync for UnreachableLabel
impl Unpin for UnreachableLabel
impl UnwindSafe for UnreachableLabel
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes