Closed
Description
Hey, we noticed an internal compiler error in veloren source code when updating from nightly-2021-01-01 to nightly-2021-03-09
Compiling veloren-common v0.8.0 (/mnt/nfs/marcel/Entw/Rust/veloren/common)
error: internal compiler error: compiler/rustc_typeck/src/collect/type_of.rs:278:17: associated type missing default
--> common/src/vol.rs:167:5
|
167 | type IntoIter: Iterator<Item = Vec3<i32>>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
thread 'rustc' panicked at 'Box<Any>', /rustc/8f349be27815d43d462a32faeb270a22a68486b6/library/std/src/panic.rs:59:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new
note: Clippy version: clippy 0.1.52 (8f349be 2021-03-08)
query stack during panic:
#0 [type_of] computing type of `vol::IntoPosIterator::IntoIter`
#1 [analysis] running analysis passes on this crate
end of query stack
steps to reproduce:
- download veloren; 9612592fac948b2390a13facb586c4a22216dd02
- adjust rust-toolchain file to
2021-03-09
- run clippy: cargo clippy --all-targets --locked -- -D warnings
it will throw many new warnings and error, but eventually also throw the above error.
Keep in mind that for vek::Vec we are using some weird SIMD behavior which already caused problems in the past, idk if this relates to clippy though. hope you can help :)
Metadata
Metadata
Assignees
Labels
No labels