Skip to content

rustc panic #39970

Closed
Closed
@apt1002

Description

@apt1002

rustc asked me to file a bug report:

error: internal compiler error: /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/librustc/infer/mod.rs:626: Encountered errors [FulfillmentError(Obligation(predicate=Binder(ProjectionPredicate(ProjectionTy { trait_ref: <std::vec::Vec<f32> as array::Array<'a, usize>>, item_name: Element(610) }, _)),depth=1),MismatchedProjectionTypes(RegionsInsufficientlyPolymorphic(BrNamed(CrateNum(0):DefIndex(1030), 'a(180), WontChange), '_#0r)))] resolving bounds after type-checking

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

thread 'rustc' panicked at 'Box', /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/librustc_errors/lib.rs:382
note: Run with RUST_BACKTRACE=1 for a backtrace.

Here's a fragment of code sufficient to trigger the bug. It's not minimal yet, sorry. The code might not be correct; I was kinda relying on the compiler to tell me. ;-)

$ rustc --version --verbose
rustc 1.15.1 (021bd29 2017-02-08)
binary: rustc
commit-hash: 021bd29
commit-date: 2017-02-08
host: x86_64-unknown-linux-gnu
release: 1.15.1
LLVM version: 3.9

I hope you can make something of this.

Metadata

Metadata

Assignees

Labels

I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions