]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #65562 - Patryk27:master, r=estebank
authorMazdak Farrokhzad <twingoow@gmail.com>
Tue, 29 Oct 2019 03:08:21 +0000 (04:08 +0100)
committerGitHub <noreply@github.com>
Tue, 29 Oct 2019 03:08:21 +0000 (04:08 +0100)
Improve the "try using a variant of the expected type" hint.

Fix https://github.com/rust-lang/rust/issues/65494.

- Change type-printing output.
- Use `span_to_snippet` when possible.
- Change the message to `try using a variant of the expected enum`


Trivial merge