-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
index out of range unexpected panic #27631
Comments
Look at this: expected `&nalgebra::structs::vec::Vec3<f64>`,
found `&collections::vec::Vec<_>` You have a mistake this string: trot.look_at(&Vec::new(1.2, 1.2, 1.2), &Vec3::new(0.0,0.0,1.0)); Use |
That was the code like I have it in that moment but thanks (will love more examples of nalgebra thought), anyway I reported it because if you see the log
So I wrote this report as I did have the code in that moment and put all the "extra info". |
Refactor `FnCtxt::autoderef` to use an external iterator and to not register any obligation from the main autoderef loop, but rather to register them after (and if) the loop successfully completes. Fixes rust-lang#24819 Fixes rust-lang#25801 Fixes rust-lang#27631 Fixes rust-lang#31258 Fixes rust-lang#31964 Fixes rust-lang#32320 Fixes rust-lang#33515 Fixes rust-lang#33755
Without the versions of all these extra dependencies, it's not clear we can reproduce this :( As such, I'm going to give it a close. @tyoc213 if you have a way, please let me know! |
refactor autoderef to avoid prematurely registering obligations Refactor `FnCtxt::autoderef` to use an external iterator and to not register any obligation from the main autoderef loop, but rather to register them after (and if) the loop successfully completes. Fixes rust-lang#24819 Fixes rust-lang#25801 Fixes rust-lang#27631 Fixes rust-lang#31258 Fixes rust-lang#31964 Fixes rust-lang#32320 Fixes rust-lang#33515 Fixes rust-lang#33755 r? @eddyb
I tried this code (my little follow up learning rust and ogl)
It breaks the compiler. I get this
The text was updated successfully, but these errors were encountered: