Struct rustc_mir::transform::check_consts::qualifs::NeedsDrop [−][src]
pub struct NeedsDrop;
Expand description
Constant containing an ADT that implements Drop.
This must be ruled out (a) because we cannot run Drop during compile-time
as that might not be a const fn, and (b) because implicit promotion would
remove side-effects that occur as part of dropping that value.
Trait Implementations
impl Qualif for NeedsDrop[src]
impl Qualif for NeedsDrop[src]const ANALYSIS_NAME: &'static str[src]
const ANALYSIS_NAME: &'static str[src]The name of the file used to debug the dataflow analysis that computes this qualif.
const IS_CLEARED_ON_MOVE: bool[src]
const IS_CLEARED_ON_MOVE: bool[src]Whether this Qualif is cleared when a local is moved from.
fn in_qualifs(qualifs: &ConstQualifs) -> bool[src]
fn in_qualifs(qualifs: &ConstQualifs) -> bool[src]Extracts the field of ConstQualifs that corresponds to this Qualif.
Auto Trait Implementations
impl RefUnwindSafe for NeedsDrop
impl Send for NeedsDrop
impl Sync for NeedsDrop
impl Unpin for NeedsDrop
impl UnwindSafe for NeedsDrop
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]