[−][src]Trait rustc_mir::transform::check_consts::ops::NonConstOp
An operation that is not always allowed in a const context.
Required methods
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
Provided methods
pub fn status_in_item(&self, _ccx: &ConstCx<'_, '_>) -> Status[src]
Returns an enum indicating whether this operation is allowed within the given item.
pub fn importance(&self) -> DiagnosticImportance[src]
Implementors
impl NonConstOp for CellBorrow[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for FloatingPointOp[src]
pub fn status_in_item(&self, ccx: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for FnCallIndirect[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for FnCallNonConst[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for FnCallUnstable[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for FnPtrCast[src]
pub fn status_in_item(&self, ccx: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for Generator[src]
pub fn status_in_item(&self, _: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for HeapAllocation[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for InlineAsm[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for LiveDrop[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for MutBorrow[src]
pub fn status_in_item(&self, ccx: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for MutDeref[src]
pub fn status_in_item(&self, _: &ConstCx<'_, '_>) -> Status[src]
pub fn importance(&self) -> DiagnosticImportance[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for Panic[src]
pub fn status_in_item(&self, _: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for RawPtrComparison[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for RawPtrDeref[src]
pub fn status_in_item(&self, _: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for RawPtrToIntCast[src]
pub fn status_in_item(&self, _: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for StaticAccess[src]
pub fn status_in_item(&self, ccx: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for ThreadLocalAccess[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for Transmute[src]
pub fn status_in_item(&self, ccx: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for UnionAccess[src]
pub fn status_in_item(&self, ccx: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for UnsizingCast[src]
pub fn status_in_item(&self, ccx: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for FnPtr[src]
pub fn importance(&self) -> DiagnosticImportance[src]
pub fn status_in_item(&self, ccx: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for ImplTrait[src]
pub fn status_in_item(&self, _: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for MutRef[src]
pub fn status_in_item(&self, _ccx: &ConstCx<'_, '_>) -> Status[src]
pub fn importance(&self) -> DiagnosticImportance[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for TraitBound[src]
pub fn importance(&self) -> DiagnosticImportance[src]
pub fn status_in_item(&self, ccx: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>
impl NonConstOp for TraitBoundNotConst[src]
pub fn status_in_item(&self, _: &ConstCx<'_, '_>) -> Status[src]
pub fn build_error<'tcx>(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>[src]
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx>