]> git.lizzy.rs Git - rust.git/commitdiff
remove some unnecessary trait bounds
authorRalf Jung <post@ralfj.de>
Sun, 12 Apr 2020 20:01:46 +0000 (22:01 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 12 Apr 2020 20:01:46 +0000 (22:01 +0200)
src/shims/intrinsics.rs

index 8f4bda404d72c367bee44b9c33150fd1dbd30689..0147d72b23868b8c562d35e0e16e83a0ab20ea0b 100644 (file)
@@ -3,7 +3,7 @@
 
 use rustc_ast::ast::FloatTy;
 use rustc_middle::{mir, ty};
-use rustc_apfloat::{Float, FloatConvert, Round, ieee::{Double, Single}};
+use rustc_apfloat::{Float, Round};
 use rustc_target::abi::{Align, LayoutOf, Size};
 
 use crate::*;
@@ -515,7 +515,7 @@ fn float_to_int_unchecked<F>(
         dest_ty: ty::Ty<'tcx>,
     ) -> InterpResult<'tcx, Scalar<Tag>>
     where
-        F: Float + Into<Scalar<Tag>> + FloatConvert<Single> + FloatConvert<Double>,
+        F: Float + Into<Scalar<Tag>>
     {
         let this = self.eval_context_ref();