rustc_codegen_ssa::errors

Enum InvalidMonomorphization

Source
pub enum InvalidMonomorphization<'tcx> {
Show 38 variants BasicIntegerType { span: Span, name: Symbol, ty: Ty<'tcx>, }, BasicFloatType { span: Span, name: Symbol, ty: Ty<'tcx>, }, FloatToIntUnchecked { span: Span, ty: Ty<'tcx>, }, FloatingPointVector { span: Span, name: Symbol, f_ty: FloatTy, in_ty: Ty<'tcx>, }, FloatingPointType { span: Span, name: Symbol, in_ty: Ty<'tcx>, }, UnrecognizedIntrinsic { span: Span, name: Symbol, }, SimdArgument { span: Span, name: Symbol, ty: Ty<'tcx>, }, SimdInput { span: Span, name: Symbol, ty: Ty<'tcx>, }, SimdFirst { span: Span, name: Symbol, ty: Ty<'tcx>, }, SimdSecond { span: Span, name: Symbol, ty: Ty<'tcx>, }, SimdThird { span: Span, name: Symbol, ty: Ty<'tcx>, }, SimdReturn { span: Span, name: Symbol, ty: Ty<'tcx>, }, InvalidBitmask { span: Span, name: Symbol, mask_ty: Ty<'tcx>, expected_int_bits: u64, expected_bytes: u64, }, ReturnLengthInputType { span: Span, name: Symbol, in_len: u64, in_ty: Ty<'tcx>, ret_ty: Ty<'tcx>, out_len: u64, }, SecondArgumentLength { span: Span, name: Symbol, in_len: u64, in_ty: Ty<'tcx>, arg_ty: Ty<'tcx>, out_len: u64, }, ThirdArgumentLength { span: Span, name: Symbol, in_len: u64, in_ty: Ty<'tcx>, arg_ty: Ty<'tcx>, out_len: u64, }, ReturnIntegerType { span: Span, name: Symbol, ret_ty: Ty<'tcx>, out_ty: Ty<'tcx>, }, SimdShuffle { span: Span, name: Symbol, ty: Ty<'tcx>, }, ReturnLength { span: Span, name: Symbol, in_len: u64, ret_ty: Ty<'tcx>, out_len: u64, }, ReturnElement { span: Span, name: Symbol, in_elem: Ty<'tcx>, in_ty: Ty<'tcx>, ret_ty: Ty<'tcx>, out_ty: Ty<'tcx>, }, SimdIndexOutOfBounds { span: Span, name: Symbol, arg_idx: u64, total_len: u128, }, InsertedType { span: Span, name: Symbol, in_elem: Ty<'tcx>, in_ty: Ty<'tcx>, out_ty: Ty<'tcx>, }, ReturnType { span: Span, name: Symbol, in_elem: Ty<'tcx>, in_ty: Ty<'tcx>, ret_ty: Ty<'tcx>, }, ExpectedReturnType { span: Span, name: Symbol, in_ty: Ty<'tcx>, ret_ty: Ty<'tcx>, }, MismatchedLengths { span: Span, name: Symbol, m_len: u64, v_len: u64, }, MaskType { span: Span, name: Symbol, ty: Ty<'tcx>, }, VectorArgument { span: Span, name: Symbol, in_ty: Ty<'tcx>, in_elem: Ty<'tcx>, }, CannotReturn { span: Span, name: Symbol, ret_ty: Ty<'tcx>, expected_int_bits: u64, expected_bytes: u64, }, ExpectedElementType { span: Span, name: Symbol, expected_element: Ty<'tcx>, second_arg: Ty<'tcx>, in_elem: Ty<'tcx>, in_ty: Ty<'tcx>, mutability: ExpectedPointerMutability, }, ThirdArgElementType { span: Span, name: Symbol, expected_element: Ty<'tcx>, third_arg: Ty<'tcx>, }, UnsupportedSymbolOfSize { span: Span, name: Symbol, symbol: Symbol, in_ty: Ty<'tcx>, in_elem: Ty<'tcx>, size: u64, ret_ty: Ty<'tcx>, }, UnsupportedSymbol { span: Span, name: Symbol, symbol: Symbol, in_ty: Ty<'tcx>, in_elem: Ty<'tcx>, ret_ty: Ty<'tcx>, }, CastWidePointer { span: Span, name: Symbol, ty: Ty<'tcx>, }, ExpectedPointer { span: Span, name: Symbol, ty: Ty<'tcx>, }, ExpectedUsize { span: Span, name: Symbol, ty: Ty<'tcx>, }, UnsupportedCast { span: Span, name: Symbol, in_ty: Ty<'tcx>, in_elem: Ty<'tcx>, ret_ty: Ty<'tcx>, out_elem: Ty<'tcx>, }, UnsupportedOperation { span: Span, name: Symbol, in_ty: Ty<'tcx>, in_elem: Ty<'tcx>, }, ExpectedVectorElementType { span: Span, name: Symbol, expected_element: Ty<'tcx>, vector_type: Ty<'tcx>, },
}

Variants§

§

BasicIntegerType

Fields

§span: Span
§name: Symbol
§ty: Ty<'tcx>
§

BasicFloatType

Fields

§span: Span
§name: Symbol
§ty: Ty<'tcx>
§

FloatToIntUnchecked

Fields

§span: Span
§ty: Ty<'tcx>
§

FloatingPointVector

Fields

§span: Span
§name: Symbol
§f_ty: FloatTy
§in_ty: Ty<'tcx>
§

FloatingPointType

Fields

§span: Span
§name: Symbol
§in_ty: Ty<'tcx>
§

UnrecognizedIntrinsic

Fields

§span: Span
§name: Symbol
§

SimdArgument

Fields

§span: Span
§name: Symbol
§ty: Ty<'tcx>
§

SimdInput

Fields

§span: Span
§name: Symbol
§ty: Ty<'tcx>
§

SimdFirst

Fields

§span: Span
§name: Symbol
§ty: Ty<'tcx>
§

SimdSecond

Fields

§span: Span
§name: Symbol
§ty: Ty<'tcx>
§

SimdThird

Fields

§span: Span
§name: Symbol
§ty: Ty<'tcx>
§

SimdReturn

Fields

§span: Span
§name: Symbol
§ty: Ty<'tcx>
§

InvalidBitmask

Fields

§span: Span
§name: Symbol
§mask_ty: Ty<'tcx>
§expected_int_bits: u64
§expected_bytes: u64
§

ReturnLengthInputType

Fields

§span: Span
§name: Symbol
§in_len: u64
§in_ty: Ty<'tcx>
§ret_ty: Ty<'tcx>
§out_len: u64
§

SecondArgumentLength

Fields

§span: Span
§name: Symbol
§in_len: u64
§in_ty: Ty<'tcx>
§arg_ty: Ty<'tcx>
§out_len: u64
§

ThirdArgumentLength

Fields

§span: Span
§name: Symbol
§in_len: u64
§in_ty: Ty<'tcx>
§arg_ty: Ty<'tcx>
§out_len: u64
§

ReturnIntegerType

Fields

§span: Span
§name: Symbol
§ret_ty: Ty<'tcx>
§out_ty: Ty<'tcx>
§

SimdShuffle

Fields

§span: Span
§name: Symbol
§ty: Ty<'tcx>
§

ReturnLength

Fields

§span: Span
§name: Symbol
§in_len: u64
§ret_ty: Ty<'tcx>
§out_len: u64
§

ReturnElement

Fields

§span: Span
§name: Symbol
§in_elem: Ty<'tcx>
§in_ty: Ty<'tcx>
§ret_ty: Ty<'tcx>
§out_ty: Ty<'tcx>
§

SimdIndexOutOfBounds

Fields

§span: Span
§name: Symbol
§arg_idx: u64
§total_len: u128
§

InsertedType

Fields

§span: Span
§name: Symbol
§in_elem: Ty<'tcx>
§in_ty: Ty<'tcx>
§out_ty: Ty<'tcx>
§

ReturnType

Fields

§span: Span
§name: Symbol
§in_elem: Ty<'tcx>
§in_ty: Ty<'tcx>
§ret_ty: Ty<'tcx>
§

ExpectedReturnType

Fields

§span: Span
§name: Symbol
§in_ty: Ty<'tcx>
§ret_ty: Ty<'tcx>
§

MismatchedLengths

Fields

§span: Span
§name: Symbol
§m_len: u64
§v_len: u64
§

MaskType

Fields

§span: Span
§name: Symbol
§ty: Ty<'tcx>
§

VectorArgument

Fields

§span: Span
§name: Symbol
§in_ty: Ty<'tcx>
§in_elem: Ty<'tcx>
§

CannotReturn

Fields

§span: Span
§name: Symbol
§ret_ty: Ty<'tcx>
§expected_int_bits: u64
§expected_bytes: u64
§

ExpectedElementType

Fields

§span: Span
§name: Symbol
§expected_element: Ty<'tcx>
§second_arg: Ty<'tcx>
§in_elem: Ty<'tcx>
§in_ty: Ty<'tcx>
§

ThirdArgElementType

Fields

§span: Span
§name: Symbol
§expected_element: Ty<'tcx>
§third_arg: Ty<'tcx>
§

UnsupportedSymbolOfSize

Fields

§span: Span
§name: Symbol
§symbol: Symbol
§in_ty: Ty<'tcx>
§in_elem: Ty<'tcx>
§size: u64
§ret_ty: Ty<'tcx>
§

UnsupportedSymbol

Fields

§span: Span
§name: Symbol
§symbol: Symbol
§in_ty: Ty<'tcx>
§in_elem: Ty<'tcx>
§ret_ty: Ty<'tcx>
§

CastWidePointer

Fields

§span: Span
§name: Symbol
§ty: Ty<'tcx>
§

ExpectedPointer

Fields

§span: Span
§name: Symbol
§ty: Ty<'tcx>
§

ExpectedUsize

Fields

§span: Span
§name: Symbol
§ty: Ty<'tcx>
§

UnsupportedCast

Fields

§span: Span
§name: Symbol
§in_ty: Ty<'tcx>
§in_elem: Ty<'tcx>
§ret_ty: Ty<'tcx>
§out_elem: Ty<'tcx>
§

UnsupportedOperation

Fields

§span: Span
§name: Symbol
§in_ty: Ty<'tcx>
§in_elem: Ty<'tcx>
§

ExpectedVectorElementType

Fields

§span: Span
§name: Symbol
§expected_element: Ty<'tcx>
§vector_type: Ty<'tcx>

Trait Implementations§

Source§

impl<'_sess, 'tcx, G> Diagnostic<'_sess, G> for InvalidMonomorphization<'tcx>

Source§

fn into_diag(self, dcx: DiagCtxtHandle<'_sess>, level: Level) -> Diag<'_sess, G>

Write out as a diagnostic out of DiagCtxt.

Auto Trait Implementations§

§

impl<'tcx> DynSend for InvalidMonomorphization<'tcx>

§

impl<'tcx> DynSync for InvalidMonomorphization<'tcx>

§

impl<'tcx> Freeze for InvalidMonomorphization<'tcx>

§

impl<'tcx> !RefUnwindSafe for InvalidMonomorphization<'tcx>

§

impl<'tcx> Send for InvalidMonomorphization<'tcx>

§

impl<'tcx> Sync for InvalidMonomorphization<'tcx>

§

impl<'tcx> Unpin for InvalidMonomorphization<'tcx>

§

impl<'tcx> !UnwindSafe for InvalidMonomorphization<'tcx>

Blanket Implementations§

Source§

impl<T> Aligned for T

Source§

const ALIGN: Alignment = _

Alignment of Self.
Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T, R> CollectAndApply<T, R> for T

§

fn collect_and_apply<I, F>(iter: I, f: F) -> R
where I: Iterator<Item = T>, F: FnOnce(&[T]) -> R,

Equivalent to f(&iter.collect::<Vec<_>>()).

§

type Output = R

Source§

impl<T> Filterable for T

Source§

fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>

Creates a filterable data provider with the given name for debugging. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<P> IntoQueryParam<P> for P

Source§

impl<T> MaybeResult<T> for T

Source§

type Error = !

Source§

fn from(_: Result<T, <T as MaybeResult<T>>::Error>) -> T

Source§

fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<I, T, U> Upcast<I, U> for T
where U: UpcastFrom<I, T>,

§

fn upcast(self, interner: I) -> U

§

impl<I, T> UpcastFrom<I, T> for T

§

fn upcast_from(from: T, _tcx: I) -> T

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

§

impl<Tcx, T> Value<Tcx> for T
where Tcx: DepContext,

§

default fn from_cycle_error( tcx: Tcx, cycle_error: &CycleError, _guar: ErrorGuaranteed, ) -> T

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<'a, T> Captures<'a> for T
where T: ?Sized,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T
where T: Send + Sync,

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: 64 bytes

Size for each variant:

  • BasicIntegerType: 23 bytes
  • BasicFloatType: 23 bytes
  • FloatToIntUnchecked: 23 bytes
  • FloatingPointVector: 23 bytes
  • FloatingPointType: 23 bytes
  • UnrecognizedIntrinsic: 15 bytes
  • SimdArgument: 23 bytes
  • SimdInput: 23 bytes
  • SimdFirst: 23 bytes
  • SimdSecond: 23 bytes
  • SimdThird: 23 bytes
  • SimdReturn: 23 bytes
  • InvalidBitmask: 39 bytes
  • ReturnLengthInputType: 47 bytes
  • SecondArgumentLength: 47 bytes
  • ThirdArgumentLength: 47 bytes
  • ReturnIntegerType: 31 bytes
  • SimdShuffle: 23 bytes
  • ReturnLength: 39 bytes
  • ReturnElement: 47 bytes
  • SimdIndexOutOfBounds: 47 bytes
  • InsertedType: 39 bytes
  • ReturnType: 39 bytes
  • ExpectedReturnType: 31 bytes
  • MismatchedLengths: 31 bytes
  • MaskType: 23 bytes
  • VectorArgument: 31 bytes
  • CannotReturn: 39 bytes
  • ExpectedElementType: 47 bytes
  • ThirdArgElementType: 31 bytes
  • UnsupportedSymbolOfSize: 55 bytes
  • UnsupportedSymbol: 47 bytes
  • CastWidePointer: 23 bytes
  • ExpectedPointer: 23 bytes
  • ExpectedUsize: 23 bytes
  • UnsupportedCast: 47 bytes
  • UnsupportedOperation: 31 bytes
  • ExpectedVectorElementType: 31 bytes