Skip to content
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

nphysics no longer compiles on nightly #67

Closed
trolleyman opened this issue Apr 19, 2016 · 6 comments
Closed

nphysics no longer compiles on nightly #67

trolleyman opened this issue Apr 19, 2016 · 6 comments

Comments

@trolleyman
Copy link
Contributor

trolleyman commented Apr 19, 2016

When trying to compile nphysics on a nightly created on or after 2016-04-14, the compiler errors. Before this date it is fine. This error is produced:

   Compiling nphysics3d v0.2.2 (https://github.com/sebcrozet/nphysics.git#b379109f)
error: internal compiler error: ../src/librustc_trans\debuginfo\type_names.rs:155: debuginfo: Trying to create type name for unexpected type: <na::Pnt3<f32> as nc::ncollide_math::Point>::Vect
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', ../src/libsyntax\errors/mod.rs:575
@sebcrozet
Copy link
Member

This is very unfortunate… It's a bug on the compiler so I am not sure I can do anything about it! Perhaps a similar bug (related to associated types) has already been reported on the rustc repo.?

@trolleyman
Copy link
Contributor Author

Just wanted to let you know, see if you knew more about it than me

@sebcrozet
Copy link
Member

Well I knew something was going on with the nightlies because some examples of ncollide trigger the same kind of ICE. But I did not investigate further because I assume this will hopefully be fixed before the next release/beta. Thanks for showing me nphysics is completely affected as well!

@trolleyman
Copy link
Contributor Author

My bad, turns out it compiles fine but I was reading the logs wrong. It's my crate that isn't compiling...

@trolleyman
Copy link
Contributor Author

Turns out I was wrong again! This test case fails to compile on the latest nightly:

extern crate nphysics3d;

pub fn main() {
    nphysics3d::world::World::new().step(1.0);
}

Issue is on the rust-lang repo #33096.

@trolleyman trolleyman reopened this Apr 20, 2016
@gmorenz
Copy link
Contributor

gmorenz commented May 13, 2016

It now compiles on the latest nightly, I think this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants