Skip to content

Rust 1.18 regression, constrained-0.1.0, cannot infer type #41796

Closed
@brson

Description

@brson

https://github.com/dylanede/constrained

101 brian@ip-10-145-43-250:~/dev/constrained⟫ git log -1
commit d3dfd78ebf46b8a5e03e8f1ef803506c07a2b15d
Merge: 1a03281 d288d01
Author: Dylan Ede <dylanede@googlemail.com>
Date:   Sun Apr 10 13:57:34 2016 +0100

    Merge branch 'master' of github.com:dylanede/constrained
brian@ip-10-145-43-250:/mnt2/dev⟫ rustc +beta -Vv
rustc 1.18.0-beta.1 (4dce67253 2017-04-25)
binary: rustc
commit-hash: 4dce67253d67785c74c8d270c38d774edd0deed8
commit-date: 2017-04-25
host: x86_64-unknown-linux-gnu
release: 1.18.0-beta.1
LLVM version: 3.9
brian@ip-10-145-43-250:~/dev/constrained⟫ cargo +beta test
   Compiling libc v0.2.4
   Compiling winapi-build v0.1.1
   Compiling rustc-serialize v0.3.16
   Compiling winapi v0.2.5
   Compiling advapi32-sys v0.1.2
   Compiling rand v0.3.13
   Compiling num v0.1.30
   Compiling dense_mats v0.4.0
   Compiling sprs v0.3.0
error[E0282]: type annotations needed
   --> /home/brian/.cargo/registry/src/github.com-1ecc6299db9ec823/sprs-0.3.0/src/sparse/binop.rs:158:19
    |
158 |       let mut res = match rhs.ordering() {
    |  ___________________^
159 | |         StorageOrder::C => MatOwned::zeros(rhs.shape()),
160 | |         StorageOrder::F => MatOwned::zeros_f(rhs.shape()),
161 | |         _ => unreachable!(),
162 | |     };
    | |_____^ cannot infer type for `dense_mats::Tensor<_, [usize; 2], std::vec::Vec<N>>`

error: aborting due to previous error

error: Could not compile `sprs`.

To learn more, run the command again with --verbose.

cc @dylanede

Metadata

Metadata

Assignees

Labels

A-type-systemArea: Type systemP-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions