Skip to content

Internal compiler error with 2021-03-09 in veloren #6890

Closed
@xMAC94x

Description

@xMAC94x

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:

  1. download veloren; 9612592fac948b2390a13facb586c4a22216dd02
  2. adjust rust-toolchain file to 2021-03-09
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions