]> git.lizzy.rs Git - rust.git/commit
use type name in E0599 enum variant suggestion
authorAndy Russell <arussell123@gmail.com>
Sat, 2 Jun 2018 20:23:26 +0000 (16:23 -0400)
committerAndy Russell <arussell123@gmail.com>
Sat, 2 Jun 2018 20:58:49 +0000 (16:58 -0400)
commit9eb70c3cf5c36b71db409ec845dddb7b7da5d587
tree36eec05548d5746feaf46c7eeb41cf70cf5c9cfc
parent4ecf12bf0eb8386626ccdb5f721a7183ccc4eba6
use type name in E0599 enum variant suggestion

Also, rename the variable from "type_str" to "item_kind" to avoid
the ambiguity that caused this bug.
src/librustc_typeck/check/method/suggest.rs
src/test/ui/issue-23217.stderr
src/test/ui/issue-28971.stderr