]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #78249 - lcnr:ct-infer-origin, r=varkor
authorJonas Schievink <jonasschievink@gmail.com>
Sat, 24 Oct 2020 12:12:06 +0000 (14:12 +0200)
committerGitHub <noreply@github.com>
Sat, 24 Oct 2020 12:12:06 +0000 (14:12 +0200)
improve const infer error

For type inference we probably have to be careful about subtyping and stuff but considering that subtyping shouldn't be relevant for constants I don't really see a reason why we may not want to reuse the const origin here.

r? `@varkor`


Trivial merge