]> git.lizzy.rs Git - rust.git/commit
Move resolve diagnostic instability to compile-fail
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 17 Jul 2017 08:16:08 +0000 (10:16 +0200)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 17 Jul 2017 08:16:08 +0000 (10:16 +0200)
commiteb7f429ea54db7111b9c1570ce08c3851727d2e5
tree66ecab94f0adedc56737ab4442405b7af739a5d0
parenta9d9a4aab4f6c51d16c2f13e69abcbe8f6c76725
Move resolve diagnostic instability to compile-fail

The produced paths aren't stable between builds, since
reporting paths inside resolve, before resolve is finished
might produce paths resolved to type aliases instead of
the concrete type.

Compile-fail tests can match just parts of messages, so they
don't "suffer" from this issue.

This is just a workaround, the instability should be fixed
in the future.
src/test/compile-fail/issue-35675.rs [new file with mode: 0644]
src/test/ui/issue-35675.rs
src/test/ui/issue-35675.stderr