{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/14433","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/14433/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/14433/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/14433/events","html_url":"https://github.com/rust-lang/rust/issues/14433","id":34278126,"number":14433,"title":"core::str::Str.as_slice() should be renamed as_str()","user":{"login":"kballard","id":714,"avatar_url":"https://avatars.githubusercontent.com/u/714?v=3","gravatar_id":"","url":"https://api.github.com/users/kballard","html_url":"https://github.com/kballard","followers_url":"https://api.github.com/users/kballard/followers","following_url":"https://api.github.com/users/kballard/following{/other_user}","gists_url":"https://api.github.com/users/kballard/gists{/gist_id}","starred_url":"https://api.github.com/users/kballard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kballard/subscriptions","organizations_url":"https://api.github.com/users/kballard/orgs","repos_url":"https://api.github.com/users/kballard/repos","events_url":"https://api.github.com/users/kballard/events{/privacy}","received_events_url":"https://api.github.com/users/kballard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-libs","name":"A-libs","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2014-05-26T02:13:21Z","updated_at":"2015-02-16T19:23:10Z","closed_at":null,"body":"The method `as_slice()` in the `core::str::Str` trait should be renamed to `as_str()`. This avoids the name collision with `core::slice::Vector.as_slice()` for types that need to implement both `Vector` and `Str` (as I believe `Vec<Ascii>` should).\r\n\r\nI'm filing this issue now to give a chance for anyone to suggest any reasons why this is a bad idea. Otherwise I will go ahead and make the change myself."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/74559505","html_url":"https://github.com/rust-lang/rust/issues/14433#issuecomment-74559505","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/14433","id":74559505,"user":{"login":"aturon","id":709807,"avatar_url":"https://avatars.githubusercontent.com/u/709807?v=3","gravatar_id":"","url":"https://api.github.com/users/aturon","html_url":"https://github.com/aturon","followers_url":"https://api.github.com/users/aturon/followers","following_url":"https://api.github.com/users/aturon/following{/other_user}","gists_url":"https://api.github.com/users/aturon/gists{/gist_id}","starred_url":"https://api.github.com/users/aturon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aturon/subscriptions","organizations_url":"https://api.github.com/users/aturon/orgs","repos_url":"https://api.github.com/users/aturon/repos","events_url":"https://api.github.com/users/aturon/events{/privacy}","received_events_url":"https://api.github.com/users/aturon/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T19:23:10Z","updated_at":"2015-02-16T19:23:10Z","body":"Nominating for 1.0-beta P-backcompat-libs."}}