diff options
| author | lcnr <rust@lcnr.de> | 2023-08-11 19:08:11 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2023-08-11 19:08:11 +0200 |
| commit | bb76fde73482efa3f2bba1e8bc0d35ad962f83dd (patch) | |
| tree | 93f9f20a3a8a192a94e651eba54b95449c857ce7 /compiler/rustc_trait_selection/src/solve/assembly | |
| parent | 08691f0c9269f246deb242bba0f848587fa5622e (diff) | |
remove builtin impl for float and int infer
Diffstat (limited to 'compiler/rustc_trait_selection/src/solve/assembly')
| -rw-r--r-- | compiler/rustc_trait_selection/src/solve/assembly/structural_traits.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/assembly/structural_traits.rs b/compiler/rustc_trait_selection/src/solve/assembly/structural_traits.rs index b882ec254e3..c47767101a4 100644 --- a/compiler/rustc_trait_selection/src/solve/assembly/structural_traits.rs +++ b/compiler/rustc_trait_selection/src/solve/assembly/structural_traits.rs @@ -161,14 +161,12 @@ pub(in crate::solve) fn instantiate_constituent_tys_for_copy_clone_trait<'tcx>( ty: Ty<'tcx>, ) -> Result<Vec<Ty<'tcx>>, NoSolution> { match *ty.kind() { - ty::Infer(ty::IntVar(_) | ty::FloatVar(_)) - | ty::FnDef(..) - | ty::FnPtr(_) - | ty::Error(_) => Ok(vec![]), + ty::FnDef(..) | ty::FnPtr(_) | ty::Error(_) => Ok(vec![]), // Implementations are provided in core ty::Uint(_) | ty::Int(_) + | ty::Infer(ty::IntVar(_) | ty::FloatVar(_)) | ty::Bool | ty::Float(_) | ty::Char |
