Description
Glium's master branch currently compiles just fine, but this simple pull request makes the compilation fail with:
thread 'rustc' has overflowed its stack
This only happens on Linux and not Windows. Stable and nightly are both affected.
The gl_generator
dependency is only used a build dependency to generate some Rust code that is then include!
ed in glium. There are only three differences between the Rust code generated by gl_generator 0.0.27 (which overflows) and the code generated by gl_generator 0.0.25 (which works). Two #[derive(Clone)]
lines added and one #[allow(raw_pointer_derive)]
.
One of the two structs newly affected by #[derive(Clone)]
is huge (around 2000 members). However the struct compiles just fine by itself. It is used as a field in glium's Context
struct but Context
itself doesn't derive Clone
.
Because of this diagnostic I fear that this is a "real" stack overflow and not just a bug leading to an infinite recursion.