Struct rustc_const_eval::transform::check_consts::ops::RawPtrComparison
source · pub struct RawPtrComparison;
Expand description
Comparing raw pointers for equality. Not currently intended to ever be allowed, even behind a feature gate: operation depends on allocation base addresses that are not known at compile-time.
Trait Implementations§
source§impl Debug for RawPtrComparison
impl Debug for RawPtrComparison
source§impl<'tcx> NonConstOp<'tcx> for RawPtrComparison
impl<'tcx> NonConstOp<'tcx> for RawPtrComparison
fn build_error(
&self,
_: &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 RefUnwindSafe for RawPtrComparison
impl Send for RawPtrComparison
impl Sync for RawPtrComparison
impl Unpin for RawPtrComparison
impl UnwindSafe for RawPtrComparison
Blanket Implementations§
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: 0 bytes