rustgd / cgmath

A linear algebra and mathematics library for computer graphics.
https://docs.rs/cgmath
Apache License 2.0
1.13k stars 155 forks source link

Workaround rust-lang/rust#41478. #410

Closed kennytm closed 7 years ago

kennytm commented 7 years ago

Replace all impl .. for Struct<<A as Angle>::Unitless> by Struct<A::Unitless>.

This allows -Zsave-analysis to work, and I think this is more readable too.

brendanzab commented 7 years ago

Nice! I have the <T as Trait>::U stuff around in some places because I was having to work around Rust requiring me to be more explicit... maybe that has improved within that time? Would be interesting to see if any more of my annotations could be removed.

ozkriff commented 7 years ago

@brendanzab Can you publish 0.14.1? :)

brendanzab commented 7 years ago

Waiting for #411 to pass now! :)

brendanzab commented 7 years ago

Oh, I remember, it was this issue: rust-lang/rust#24092