Skip to content

Commit 11c673b

Browse files
committed
Remove InvalidMonomorphization::FloatingPointType
1 parent abb5228 commit 11c673b

3 files changed

Lines changed: 2 additions & 10 deletions

File tree

compiler/rustc_codegen_gcc/src/intrinsic/simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ pub fn generic_simd_intrinsic<'a, 'gcc, 'tcx>(
811811
}};
812812
}
813813
let ty::Float(ref f) = *in_elem.kind() else {
814-
return_error!(InvalidMonomorphization::FloatingPointType { span, name, in_ty });
814+
return_error!(InvalidMonomorphization::BasicFloatType { span, name, ty: in_ty });
815815
};
816816
let elem_ty = bx.cx.type_float_from_ty(*f);
817817
let (elem_ty_str, elem_ty, cast_type) = match f.bit_width() {

compiler/rustc_codegen_llvm/src/intrinsic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,7 @@ fn generic_simd_intrinsic<'ll, 'tcx>(
19451945
}
19461946

19471947
let ty::Float(f) = in_elem.kind() else {
1948-
return_error!(InvalidMonomorphization::FloatingPointType { span, name, in_ty });
1948+
return_error!(InvalidMonomorphization::BasicFloatType { span, name, ty: in_ty });
19491949
};
19501950
let elem_ty = bx.cx.type_float_from_ty(*f);
19511951

compiler/rustc_codegen_ssa/src/errors.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -739,14 +739,6 @@ pub enum InvalidMonomorphization<'tcx> {
739739
in_ty: Ty<'tcx>,
740740
},
741741

742-
#[diag("invalid monomorphization of `{$name}` intrinsic: `{$in_ty}` is not a floating-point type", code = E0511)]
743-
FloatingPointType {
744-
#[primary_span]
745-
span: Span,
746-
name: Symbol,
747-
in_ty: Ty<'tcx>,
748-
},
749-
750742
#[diag("invalid monomorphization of `{$name}` intrinsic: unrecognized intrinsic `{$name}`", code = E0511)]
751743
UnrecognizedIntrinsic {
752744
#[primary_span]

0 commit comments

Comments
 (0)