{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/1410","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1410/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1410/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1410/events","html_url":"https://github.com/rust-lang/rfcs/pull/1410","id":122385336,"number":1410,"title":"Add a `noalias` language item","user":{"login":"mahkoh","id":1882250,"avatar_url":"https://avatars.githubusercontent.com/u/1882250?v=3","gravatar_id":"","url":"https://api.github.com/users/mahkoh","html_url":"https://github.com/mahkoh","followers_url":"https://api.github.com/users/mahkoh/followers","following_url":"https://api.github.com/users/mahkoh/following{/other_user}","gists_url":"https://api.github.com/users/mahkoh/gists{/gist_id}","starred_url":"https://api.github.com/users/mahkoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahkoh/subscriptions","organizations_url":"https://api.github.com/users/mahkoh/orgs","repos_url":"https://api.github.com/users/mahkoh/repos","events_url":"https://api.github.com/users/mahkoh/events{/privacy}","received_events_url":"https://api.github.com/users/mahkoh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rfcs/labels/T-lang","name":"T-lang","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-15T22:48:16Z","updated_at":"2015-12-17T08:58:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1410","html_url":"https://github.com/rust-lang/rfcs/pull/1410","diff_url":"https://github.com/rust-lang/rfcs/pull/1410.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/1410.patch"},"body":"Add a `noalias` language item and wrapper struct (similar to `non_zero`) to\r\nmark raw pointers as `noalias`."},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/165387699","html_url":"https://github.com/rust-lang/rfcs/pull/1410#issuecomment-165387699","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1410","id":165387699,"user":{"login":"oli-obk","id":332036,"avatar_url":"https://avatars.githubusercontent.com/u/332036?v=3","gravatar_id":"","url":"https://api.github.com/users/oli-obk","html_url":"https://github.com/oli-obk","followers_url":"https://api.github.com/users/oli-obk/followers","following_url":"https://api.github.com/users/oli-obk/following{/other_user}","gists_url":"https://api.github.com/users/oli-obk/gists{/gist_id}","starred_url":"https://api.github.com/users/oli-obk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oli-obk/subscriptions","organizations_url":"https://api.github.com/users/oli-obk/orgs","repos_url":"https://api.github.com/users/oli-obk/repos","events_url":"https://api.github.com/users/oli-obk/events{/privacy}","received_events_url":"https://api.github.com/users/oli-obk/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T08:58:29Z","updated_at":"2015-12-17T08:58:29Z","body":"I'm confused as to why this is happening anyway. Shouldn't all `&mut` be marked llvm-`noalias` during trans anyway? Since `*some_box = 42` will create an intermediate `&mut` due to `DerefMut`, shouldn't this already get optimized correctly? And since it's not, shouldn't we simply fix this bug? I mean we already have a way of unsafely stating a `*mut` is `noalias`: turning it into a `&mut`."}}