Struct rustc_mir_transform::errors::MustNotSupend
source · pub(crate) struct MustNotSupend<'tcx, 'a> {
pub tcx: TyCtxt<'tcx>,
pub yield_sp: Span,
pub reason: Option<MustNotSuspendReason>,
pub src_sp: Span,
pub pre: &'a str,
pub def_id: DefId,
pub post: &'a str,
}
Fields§
§tcx: TyCtxt<'tcx>
§yield_sp: Span
§reason: Option<MustNotSuspendReason>
§src_sp: Span
§pre: &'a str
§def_id: DefId
§post: &'a str
Trait Implementations§
source§impl<'a> DecorateLint<'a, ()> for MustNotSupend<'_, '_>
impl<'a> DecorateLint<'a, ()> for MustNotSupend<'_, '_>
source§fn decorate_lint<'b>(
self,
diag: &'b mut DiagnosticBuilder<'a, ()>
) -> &'b mut DiagnosticBuilder<'a, ()>
fn decorate_lint<'b>( self, diag: &'b mut DiagnosticBuilder<'a, ()> ) -> &'b mut DiagnosticBuilder<'a, ()>
Decorate and emit a lint.
fn msg(&self) -> DiagnosticMessage
Auto Trait Implementations§
impl<'tcx, 'a> !RefUnwindSafe for MustNotSupend<'tcx, 'a>
impl<'tcx, 'a> !Send for MustNotSupend<'tcx, 'a>
impl<'tcx, 'a> !Sync for MustNotSupend<'tcx, 'a>
impl<'tcx, 'a> Unpin for MustNotSupend<'tcx, 'a>
impl<'tcx, 'a> !UnwindSafe for MustNotSupend<'tcx, 'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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: 96 bytes