{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/33622","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/33622/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/33622/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/33622/events","html_url":"https://github.com/rust-lang/rust/pull/33622","id":154788686,"number":33622,"title":"[MIR] non-zeroing drop","user":{"login":"arielb1","id":1830974,"avatar_url":"https://avatars.githubusercontent.com/u/1830974?v=3","gravatar_id":"","url":"https://api.github.com/users/arielb1","html_url":"https://github.com/arielb1","followers_url":"https://api.github.com/users/arielb1/followers","following_url":"https://api.github.com/users/arielb1/following{/other_user}","gists_url":"https://api.github.com/users/arielb1/gists{/gist_id}","starred_url":"https://api.github.com/users/arielb1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arielb1/subscriptions","organizations_url":"https://api.github.com/users/arielb1/orgs","repos_url":"https://api.github.com/users/arielb1/repos","events_url":"https://api.github.com/users/arielb1/events{/privacy}","received_events_url":"https://api.github.com/users/arielb1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nikomatsakis","id":155238,"avatar_url":"https://avatars.githubusercontent.com/u/155238?v=3","gravatar_id":"","url":"https://api.github.com/users/nikomatsakis","html_url":"https://github.com/nikomatsakis","followers_url":"https://api.github.com/users/nikomatsakis/followers","following_url":"https://api.github.com/users/nikomatsakis/following{/other_user}","gists_url":"https://api.github.com/users/nikomatsakis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikomatsakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikomatsakis/subscriptions","organizations_url":"https://api.github.com/users/nikomatsakis/orgs","repos_url":"https://api.github.com/users/nikomatsakis/repos","events_url":"https://api.github.com/users/nikomatsakis/events{/privacy}","received_events_url":"https://api.github.com/users/nikomatsakis/received_events","type":"User","site_admin":false},"milestone":null,"comments":22,"created_at":"2016-05-13T19:56:45Z","updated_at":"2016-05-18T22:08:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/33622","html_url":"https://github.com/rust-lang/rust/pull/33622","diff_url":"https://github.com/rust-lang/rust/pull/33622.diff","patch_url":"https://github.com/rust-lang/rust/pull/33622.patch"},"body":"This enables non-zeroing drop through stack flags for MIR.\r\n\r\nFixes #30380.\r\nFixes #5016."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/220173152","html_url":"https://github.com/rust-lang/rust/pull/33622#issuecomment-220173152","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/33622","id":220173152,"user":{"login":"arielb1","id":1830974,"avatar_url":"https://avatars.githubusercontent.com/u/1830974?v=3","gravatar_id":"","url":"https://api.github.com/users/arielb1","html_url":"https://github.com/arielb1","followers_url":"https://api.github.com/users/arielb1/followers","following_url":"https://api.github.com/users/arielb1/following{/other_user}","gists_url":"https://api.github.com/users/arielb1/gists{/gist_id}","starred_url":"https://api.github.com/users/arielb1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arielb1/subscriptions","organizations_url":"https://api.github.com/users/arielb1/orgs","repos_url":"https://api.github.com/users/arielb1/repos","events_url":"https://api.github.com/users/arielb1/events{/privacy}","received_events_url":"https://api.github.com/users/arielb1/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T22:08:30Z","updated_at":"2016-05-18T22:08:30Z","body":"@nikomatsakis \r\n\r\nWe are not in old-trans anymore.\r\n\r\nYour second example generates the following MIR:\r\n```Rust\r\nbb0:\r\n    if condition then bb1 else bb3\r\nbb1:\r\n    tmp0 = Foo::new() uwto cleanup0\r\n    replace x <- tmp0 uwto cleanup1\r\nbb3:\r\n    tmp1 = Foo::new() uwto cleanup3\r\n    replace x <- tmp1 uwto cleanup3\r\nbb5:\r\n    drop var0\r\n    return\r\ncleanup3:\r\n    drop tmp1 -> cleanup1\r\ncleanup2:\r\n    drop tmp0\r\ncleanup1:\r\n    drop x\r\ncleanup0:\r\n    resume\r\n```"}}