{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/29098","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/29098/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/29098/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/29098/events","html_url":"https://github.com/rust-lang/rust/pull/29098","id":111803337,"number":29098,"title":"docs: remove extern crate collections from example code","user":{"login":"tsurai","id":1909506,"avatar_url":"https://avatars.githubusercontent.com/u/1909506?v=3","gravatar_id":"","url":"https://api.github.com/users/tsurai","html_url":"https://github.com/tsurai","followers_url":"https://api.github.com/users/tsurai/followers","following_url":"https://api.github.com/users/tsurai/following{/other_user}","gists_url":"https://api.github.com/users/tsurai/gists{/gist_id}","starred_url":"https://api.github.com/users/tsurai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsurai/subscriptions","organizations_url":"https://api.github.com/users/tsurai/orgs","repos_url":"https://api.github.com/users/tsurai/repos","events_url":"https://api.github.com/users/tsurai/events{/privacy}","received_events_url":"https://api.github.com/users/tsurai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"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},"milestone":null,"comments":2,"created_at":"2015-10-16T10:22:40Z","updated_at":"2015-10-18T21:48:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/29098","html_url":"https://github.com/rust-lang/rust/pull/29098","diff_url":"https://github.com/rust-lang/rust/pull/29098.diff","patch_url":"https://github.com/rust-lang/rust/pull/29098.patch"},"body":"All code examples from the collections crate are currently adding ``extern crate collections`` causing the following error when trying to run in the playground\r\n\r\n```\r\n<anon>:3:1: 3:26 error: use of unstable library feature 'collections': library is unlikely to be stabilized with the current layout and name, use std::collections instead (see issue #27783)\r\n<anon>:3 extern crate collections;\r\n         ^~~~~~~~~~~~~~~~~~~~~~~~~\r\n```\r\n\r\nThis tiny PR simply removes the extern crate in favor of std::collections as suggested by the error description.\r\n\r\nr? @steveklabnik"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/149051268","html_url":"https://github.com/rust-lang/rust/pull/29098#issuecomment-149051268","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/29098","id":149051268,"user":{"login":"tsurai","id":1909506,"avatar_url":"https://avatars.githubusercontent.com/u/1909506?v=3","gravatar_id":"","url":"https://api.github.com/users/tsurai","html_url":"https://github.com/tsurai","followers_url":"https://api.github.com/users/tsurai/followers","following_url":"https://api.github.com/users/tsurai/following{/other_user}","gists_url":"https://api.github.com/users/tsurai/gists{/gist_id}","starred_url":"https://api.github.com/users/tsurai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsurai/subscriptions","organizations_url":"https://api.github.com/users/tsurai/orgs","repos_url":"https://api.github.com/users/tsurai/repos","events_url":"https://api.github.com/users/tsurai/events{/privacy}","received_events_url":"https://api.github.com/users/tsurai/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T21:48:48Z","updated_at":"2015-10-18T21:48:48Z","body":"Collections already has the ``doc(test(no_crate_inject))`` attribute set but it doesn't prevent the examples from having ``extern crate collections``. Is that a bug or do I missunderstand you?"}}