-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cgmath::vector::Vector shadows std::vec::Vector #43
Comments
Oh dear. I was actually planning on renaming Calling |
I'm pretty sure this isn't a problem now. |
I'm still having this issue; importing My code is at https://github.com/RobotGymnast/playform/blob/5667371f9c4682cac0dc856e6ded9ae62266e461/src/main.rs; it's committed with |
Yack. I wonder what other name we could give it? :[ |
On Wed, Jul 23, 2014 at 8:35 PM, Brendan Zabarauskas <
|
|
In modules that have
use cgmath::vector::Vector;
in them, you can no longer take slices from native rust vectors, eg.
let a = ~[1, 2, 3];
let b = a.as_slice();
"error: type
~[int]
does not implement any method in scope namedas_slice
"The method as_slice is supposed to come from module std::vec::Vector.
A workaround is to rename the cgmath import, eg.
use cgVector = cgmath::vector::Vector;
Possible quick fix: Rename cgmath::vector::Vector into Vec?
The text was updated successfully, but these errors were encountered: