Skip to content

Commit

Permalink
remove some unnecessary trait bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Apr 12, 2020
1 parent 17c52d4 commit a82efce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shims/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::convert::TryFrom;

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::*;
Expand Down Expand Up @@ -515,7 +515,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
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();

Expand Down

0 comments on commit a82efce

Please sign in to comment.