Struct rustc_const_eval::transform::check_consts::ops::LiveDrop
source · pub struct LiveDrop<'tcx> {
pub dropped_at: Option<Span>,
pub dropped_ty: Ty<'tcx>,
}
Fields§
§dropped_at: Option<Span>
§dropped_ty: Ty<'tcx>
Trait Implementations§
source§impl<'tcx> NonConstOp<'tcx> for LiveDrop<'tcx>
impl<'tcx> NonConstOp<'tcx> for LiveDrop<'tcx>
fn build_error( &self, ccx: &ConstCx<'_, 'tcx>, span: Span ) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>
source§fn status_in_item(&self, _ccx: &ConstCx<'_, 'tcx>) -> Status
fn status_in_item(&self, _ccx: &ConstCx<'_, 'tcx>) -> Status
Returns an enum indicating whether this operation is allowed within the given item.
fn importance(&self) -> DiagnosticImportance
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for LiveDrop<'tcx>
impl<'tcx> !Send for LiveDrop<'tcx>
impl<'tcx> !Sync for LiveDrop<'tcx>
impl<'tcx> Unpin for LiveDrop<'tcx>
impl<'tcx> !UnwindSafe for LiveDrop<'tcx>
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: 24 bytes