{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/26748","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/26748/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/26748/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/26748/events","html_url":"https://github.com/rust-lang/rust/issues/26748","id":92790204,"number":26748,"title":"Codegen bug: UnsafeCell<T: ?Sized> is declared noalias, despite it being aliasable","user":{"login":"GBGamer","id":3479021,"avatar_url":"https://avatars.githubusercontent.com/u/3479021?v=3","gravatar_id":"","url":"https://api.github.com/users/GBGamer","html_url":"https://github.com/GBGamer","followers_url":"https://api.github.com/users/GBGamer/followers","following_url":"https://api.github.com/users/GBGamer/following{/other_user}","gists_url":"https://api.github.com/users/GBGamer/gists{/gist_id}","starred_url":"https://api.github.com/users/GBGamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GBGamer/subscriptions","organizations_url":"https://api.github.com/users/GBGamer/orgs","repos_url":"https://api.github.com/users/GBGamer/repos","events_url":"https://api.github.com/users/GBGamer/events{/privacy}","received_events_url":"https://api.github.com/users/GBGamer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-codegen","name":"A-codegen","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-03T04:44:47Z","updated_at":"2015-07-03T07:44:02Z","closed_at":null,"body":"`fn(&UnsafeCell<i32>)` => `define internal void @and_test(%\"2.core::cell::UnsafeCell<i32>\"* dereferenceable(4)) unnamed_addr #1`\r\n\r\nAs you can see, no `noalias`, and, weirdly, no `nocapture`.\r\n\r\n`fn(&UnsafeCell<[i32]>)` => `define internal void @and_test({ %\"2.core::cell::UnsafeCell<[i32]>\"*, i64 }* noalias nocapture dereferenceable(16)) unnamed_addr #1`\r\n\r\nAnd, as you can see, there is a `noalias` and a `nocapture`.\r\n\r\nHere, check these playpen examples out:\r\n\r\n`UnsafeCell<i32>`: http://is.gd/vkyoUn\r\n\r\n`UnsafeCell<[i32]>`: http://is.gd/FlOr8A"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/118266282","html_url":"https://github.com/rust-lang/rust/issues/26748#issuecomment-118266282","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/26748","id":118266282,"user":{"login":"Gankro","id":1136864,"avatar_url":"https://avatars.githubusercontent.com/u/1136864?v=3","gravatar_id":"","url":"https://api.github.com/users/Gankro","html_url":"https://github.com/Gankro","followers_url":"https://api.github.com/users/Gankro/followers","following_url":"https://api.github.com/users/Gankro/following{/other_user}","gists_url":"https://api.github.com/users/Gankro/gists{/gist_id}","starred_url":"https://api.github.com/users/Gankro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gankro/subscriptions","organizations_url":"https://api.github.com/users/Gankro/orgs","repos_url":"https://api.github.com/users/Gankro/repos","events_url":"https://api.github.com/users/Gankro/events{/privacy}","received_events_url":"https://api.github.com/users/Gankro/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T07:44:02Z","updated_at":"2015-07-03T07:44:02Z","body":"This doesn't appear to repro on beta or nightly.\r\n\r\nProblem solved?"}}