Struct rustc_const_eval::transform::check_consts::ops::FnCallNonConst
source · [−]Expand description
A function call where the callee is not marked as const.
Tuple Fields
0: Option<(DefId, SubstsRef<'tcx>)>Trait Implementations
sourceimpl<'tcx> Debug for FnCallNonConst<'tcx>
impl<'tcx> Debug for FnCallNonConst<'tcx>
sourceimpl<'a> NonConstOp for FnCallNonConst<'a>
impl<'a> NonConstOp for FnCallNonConst<'a>
fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
sourcefn status_in_item(&self, _ccx: &ConstCx<'_, '_>) -> Status
fn status_in_item(&self, _ccx: &ConstCx<'_, '_>) -> 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 FnCallNonConst<'tcx>
impl<'tcx> Send for FnCallNonConst<'tcx>
impl<'tcx> Sync for FnCallNonConst<'tcx>
impl<'tcx> Unpin for FnCallNonConst<'tcx>
impl<'tcx> !UnwindSafe for FnCallNonConst<'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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: 16 bytes