forked from M-Labs/nalgebra
Workaround internal compiler error
The associated type bound here was not parsed correctly. This is likely due to the ICE described in rust-lang/rust#20413.
This commit is contained in:
parent
39fd7c1ae7
commit
27bfe381d9
@ -98,7 +98,7 @@ extern crate quickcheck;
|
|||||||
extern crate test;
|
extern crate test;
|
||||||
|
|
||||||
use std::cmp;
|
use std::cmp;
|
||||||
use std::ops::Neg;
|
use std::ops::{Neg, Mul};
|
||||||
pub use traits::{
|
pub use traits::{
|
||||||
Absolute,
|
Absolute,
|
||||||
AbsoluteRotate,
|
AbsoluteRotate,
|
||||||
@ -608,7 +608,12 @@ pub fn append_rotation_wrt_center<LV: Neg<Output = LV> + Copy,
|
|||||||
|
|
||||||
/// Builds a rotation matrix from `r`.
|
/// Builds a rotation matrix from `r`.
|
||||||
#[inline(always)]
|
#[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()
|
r.to_rot_mat()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user