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
BasicFloatType
FloatToIntUnchecked
FloatingPointVector
FloatingPointType
UnrecognizedIntrinsic
SimdArgument
SimdInput
SimdFirst
SimdSecond
SimdThird
SimdReturn
InvalidBitmask
ReturnLengthInputType
SecondArgumentLength
ThirdArgumentLength
ReturnIntegerType
SimdShuffle
ReturnLength
ReturnElement
SimdIndexOutOfBounds
InsertedType
ReturnType
ExpectedReturnType
MismatchedLengths
MaskType
VectorArgument
CannotReturn
ExpectedElementType
Fields
§
mutability: ExpectedPointerMutability
ThirdArgElementType
UnsupportedSymbolOfSize
Fields
UnsupportedSymbol
CastWidePointer
ExpectedPointer
ExpectedUsize
UnsupportedCast
Fields
UnsupportedOperation
ExpectedVectorElementType
Trait Implementations§
Source§impl<'_sess, 'tcx, G> Diagnostic<'_sess, G> for InvalidMonomorphization<'tcx>where
G: EmissionGuarantee,
impl<'_sess, 'tcx, G> Diagnostic<'_sess, G> for InvalidMonomorphization<'tcx>where
G: EmissionGuarantee,
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<P> IntoQueryParam<P> for P
impl<P> IntoQueryParam<P> for P
fn into_query_param(self) -> P
Source§impl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<I, T, U> Upcast<I, U> for Twhere
U: UpcastFrom<I, T>,
impl<I, T, U> Upcast<I, U> for Twhere
U: UpcastFrom<I, T>,
Source§impl<I, T> UpcastFrom<I, T> for T
impl<I, T> UpcastFrom<I, T> for T
fn upcast_from(from: T, _tcx: I) -> T
Source§impl<Tcx, T> Value<Tcx> for Twhere
Tcx: DepContext,
impl<Tcx, T> Value<Tcx> for Twhere
Tcx: DepContext,
default fn from_cycle_error( tcx: Tcx, cycle_error: &CycleError, _guar: ErrorGuaranteed, ) -> T
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
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 bytesBasicFloatType
: 23 bytesFloatToIntUnchecked
: 23 bytesFloatingPointVector
: 23 bytesFloatingPointType
: 23 bytesUnrecognizedIntrinsic
: 15 bytesSimdArgument
: 23 bytesSimdInput
: 23 bytesSimdFirst
: 23 bytesSimdSecond
: 23 bytesSimdThird
: 23 bytesSimdReturn
: 23 bytesInvalidBitmask
: 39 bytesReturnLengthInputType
: 47 bytesSecondArgumentLength
: 47 bytesThirdArgumentLength
: 47 bytesReturnIntegerType
: 31 bytesSimdShuffle
: 23 bytesReturnLength
: 39 bytesReturnElement
: 47 bytesSimdIndexOutOfBounds
: 47 bytesInsertedType
: 39 bytesReturnType
: 39 bytesExpectedReturnType
: 31 bytesMismatchedLengths
: 31 bytesMaskType
: 23 bytesVectorArgument
: 31 bytesCannotReturn
: 39 bytesExpectedElementType
: 47 bytesThirdArgElementType
: 31 bytesUnsupportedSymbolOfSize
: 55 bytesUnsupportedSymbol
: 47 bytesCastWidePointer
: 23 bytesExpectedPointer
: 23 bytesExpectedUsize
: 23 bytesUnsupportedCast
: 47 bytesUnsupportedOperation
: 31 bytesExpectedVectorElementType
: 31 bytes