pub enum InvalidMonomorphization<'tcx> {
Show 39 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>,
},
ShuffleIndexNotConstant {
span: Span,
name: Symbol,
arg_idx: u64,
},
ShuffleIndexOutOfBounds {
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>,
},
CastFatPointer {
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
ShuffleIndexNotConstant
ShuffleIndexOutOfBounds
InsertedType
ReturnType
ExpectedReturnType
MismatchedLengths
MaskType
VectorArgument
CannotReturn
ExpectedElementType
Fields
§
mutability: ExpectedPointerMutability
ThirdArgElementType
UnsupportedSymbolOfSize
Fields
UnsupportedSymbol
CastFatPointer
ExpectedPointer
ExpectedUsize
UnsupportedCast
Fields
UnsupportedOperation
ExpectedVectorElementType
Trait Implementations§
source§impl<'__diagnostic_handler_sess, 'tcx, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for InvalidMonomorphization<'tcx>where
G: EmissionGuarantee,
impl<'__diagnostic_handler_sess, 'tcx, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for InvalidMonomorphization<'tcx>where G: EmissionGuarantee,
source§fn into_diagnostic(
self,
handler: &'__diagnostic_handler_sess Handler
) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
fn into_diagnostic( self, handler: &'__diagnostic_handler_sess Handler ) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
Write out as a diagnostic out of
Handler
.Auto Trait Implementations§
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
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 bytesShuffleIndexNotConstant
: 23 bytesShuffleIndexOutOfBounds
: 47 bytesInsertedType
: 39 bytesReturnType
: 39 bytesExpectedReturnType
: 31 bytesMismatchedLengths
: 31 bytesMaskType
: 23 bytesVectorArgument
: 31 bytesCannotReturn
: 39 bytesExpectedElementType
: 47 bytesThirdArgElementType
: 31 bytesUnsupportedSymbolOfSize
: 55 bytesUnsupportedSymbol
: 47 bytesCastFatPointer
: 23 bytesExpectedPointer
: 23 bytesExpectedUsize
: 23 bytesUnsupportedCast
: 47 bytesUnsupportedOperation
: 31 bytesExpectedVectorElementType
: 31 bytes