{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/27138","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/27138/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/27138/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/27138/events","html_url":"https://github.com/rust-lang/rust/pull/27138","id":95989186,"number":27138,"title":"Fix iteration of destructor checker.","user":{"login":"kw-udon","id":3708146,"avatar_url":"https://avatars.githubusercontent.com/u/3708146?v=3","gravatar_id":"","url":"https://api.github.com/users/kw-udon","html_url":"https://github.com/kw-udon","followers_url":"https://api.github.com/users/kw-udon/followers","following_url":"https://api.github.com/users/kw-udon/following{/other_user}","gists_url":"https://api.github.com/users/kw-udon/gists{/gist_id}","starred_url":"https://api.github.com/users/kw-udon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kw-udon/subscriptions","organizations_url":"https://api.github.com/users/kw-udon/orgs","repos_url":"https://api.github.com/users/kw-udon/repos","events_url":"https://api.github.com/users/kw-udon/events{/privacy}","received_events_url":"https://api.github.com/users/kw-udon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-07-20T05:17:55Z","updated_at":"2015-07-23T13:49:48Z","closed_at":"2015-07-23T13:49:48Z","pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/27138","html_url":"https://github.com/rust-lang/rust/pull/27138","diff_url":"https://github.com/rust-lang/rust/pull/27138.diff","patch_url":"https://github.com/rust-lang/rust/pull/27138.patch"},"body":"Don't add a type to breadcrumbs vector when it is reference, pointer, or bare functions.\r\nFixes #25750\r\n\r\n--\r\n\r\nThe following example contains two `&Sized`.\r\n\r\n```rust\r\nfn foo() -> Option<(Box<Fn(&Sized)>, Box<Fn(&Sized)>)> {\r\n    None\r\n}\r\n```\r\n\r\nSo `&Sized` appears twice as `typ` [here] (https://github.com/rust-lang/rust/blob/master/src/librustc_typeck/check/dropck.rs#L356).\r\nEach time `&Sized` appears, `walker.skip_current_subtree()` should be called [here](https://github.com/rust-lang/rust/blob/master/src/librustc_typeck/check/dropck.rs#L527) in this case.\r\nHowever, if `&Sized` is pushed to `breadcrumbs` at the first appearance, `skip_current_subtree()` will not be called at the second time."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/124111557","html_url":"https://github.com/rust-lang/rust/pull/27138#issuecomment-124111557","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/27138","id":124111557,"user":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T13:49:48Z","updated_at":"2015-07-23T13:49:48Z","body":"closing in favor of #27236.  (but thank you *so much* for your investigative efforts, @kw-udon )"}}