Merge pull request #87 from aepsil0n/workaround-ice

Workaround internal compiler error.
This commit is contained in:
Sébastien Crozet 2015-02-04 22:21:51 +01:00
commit 316298f825
1 changed files with 7 additions and 2 deletions

View File

@ -98,7 +98,7 @@ extern crate quickcheck;
extern crate test;
use std::cmp;
use std::ops::Neg;
use std::ops::{Neg, Mul};
pub use traits::{
Absolute,
AbsoluteRotate,
@ -608,7 +608,12 @@ pub fn append_rotation_wrt_center<LV: Neg<Output = LV> + Copy,
/// Builds a rotation matrix from `r`.
#[inline(always)]
pub fn to_rot_mat<N, LV, AV, R: RotationMatrix<N, LV, AV>>(r: &R) -> R::Output {
pub fn to_rot_mat<N, LV, AV, R, M>(r: &R) -> M
where R: RotationMatrix<N, LV, AV, Output=M>,
M: Mat<N, LV, AV> + Rotation<AV> + Col<LV> + Copy,
LV: Mul<M, Output=LV> + Copy,
{
// FIXME: rust-lang/rust#20413
r.to_rot_mat()
}