{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/19099","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/19099/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/19099/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/19099/events","html_url":"https://github.com/rust-lang/rust/issues/19099","id":49340384,"number":19099,"title":"Import enum variants into implementation section","user":{"login":"vhbit","id":140199,"avatar_url":"https://avatars.githubusercontent.com/u/140199?v=3","gravatar_id":"","url":"https://api.github.com/users/vhbit","html_url":"https://github.com/vhbit","followers_url":"https://api.github.com/users/vhbit/followers","following_url":"https://api.github.com/users/vhbit/following{/other_user}","gists_url":"https://api.github.com/users/vhbit/gists{/gist_id}","starred_url":"https://api.github.com/users/vhbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhbit/subscriptions","organizations_url":"https://api.github.com/users/vhbit/orgs","repos_url":"https://api.github.com/users/vhbit/repos","events_url":"https://api.github.com/users/vhbit/events{/privacy}","received_events_url":"https://api.github.com/users/vhbit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-19T07:04:57Z","updated_at":"2015-01-29T04:33:44Z","closed_at":"2015-01-29T04:33:44Z","body":"I think it will be quite consistent to allow use enum variants in implementation without full-qualified names like:\r\n\r\n``` rust\r\nenum Foo {\r\n  Bar,\r\n  Baz\r\n}\r\n\r\nimpl Foo {\r\n   fn foo(&self) {\r\n      match self {\r\n         &Bar => println!(\"bar\"), // impossible now, requires &Foo::Bar\r\n         &Baz => println!(\"baz\"), // impossible now, requires &Foo::Baz\r\n      }\r\n   }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/71968029","html_url":"https://github.com/rust-lang/rust/issues/19099#issuecomment-71968029","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/19099","id":71968029,"user":{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars.githubusercontent.com/u/27786?v=3","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T04:33:43Z","updated_at":"2015-01-29T04:33:43Z","body":"I'm pulling a massive triage effort to get us ready for 1.0. As part of this, I'm moving stuff that's wishlist-like to the RFCs repo, as that's where major new things should get discussed/prioritized.\n\nThis issue has been moved to the RFCs repo: rust-lang/rfcs#764"}}