{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/36368","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/36368/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/36368/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/36368/events","html_url":"https://github.com/rust-lang/rust/issues/36368","id":176081309,"number":36368,"title":"EncodeUtf8::as_slice results in suboptimal code","user":{"login":"nagisa","id":679122,"avatar_url":"https://avatars.githubusercontent.com/u/679122?v=3","gravatar_id":"","url":"https://api.github.com/users/nagisa","html_url":"https://github.com/nagisa","followers_url":"https://api.github.com/users/nagisa/followers","following_url":"https://api.github.com/users/nagisa/following{/other_user}","gists_url":"https://api.github.com/users/nagisa/gists{/gist_id}","starred_url":"https://api.github.com/users/nagisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nagisa/subscriptions","organizations_url":"https://api.github.com/users/nagisa/orgs","repos_url":"https://api.github.com/users/nagisa/repos","events_url":"https://api.github.com/users/nagisa/events{/privacy}","received_events_url":"https://api.github.com/users/nagisa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-09T18:49:21Z","updated_at":"2016-09-09T18:49:21Z","closed_at":null,"body":"> // We know for sure this method cannot slice out-of-bounds because:\r\n// * 0 ≤ self.pos ≤ 3\r\n// * self.buf.len() = 4\r\n//\r\n// This way the slicing will always succeed, but LLVM is incapable of figuring out both\r\n// these conditions hold, resulting in suboptimal code, especially after inlining, \r\n// containing bound checks and unwinding support code."}}
{"actor":{"display_login":"nagisa"}}