{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/30039","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/30039/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/30039/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/30039/events","html_url":"https://github.com/rust-lang/rust/issues/30039","id":118707914,"number":30039,"title":"Implement `Default` for DefId","user":{"login":"aochagavia","id":5196584,"avatar_url":"https://avatars.githubusercontent.com/u/5196584?v=3","gravatar_id":"","url":"https://api.github.com/users/aochagavia","html_url":"https://github.com/aochagavia","followers_url":"https://api.github.com/users/aochagavia/followers","following_url":"https://api.github.com/users/aochagavia/following{/other_user}","gists_url":"https://api.github.com/users/aochagavia/gists{/gist_id}","starred_url":"https://api.github.com/users/aochagavia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aochagavia/subscriptions","organizations_url":"https://api.github.com/users/aochagavia/orgs","repos_url":"https://api.github.com/users/aochagavia/repos","events_url":"https://api.github.com/users/aochagavia/events{/privacy}","received_events_url":"https://api.github.com/users/aochagavia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-24T21:34:28Z","updated_at":"2015-11-25T13:08:34Z","closed_at":null,"body":"Would it make sense to do this? If so, I would be happy to provide a PR. I guess it would look like the code below:\r\n\r\n    DefId {\r\n        krate: 0,\r\n        index: DefIndex::new(0)\r\n    }"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/159602555","html_url":"https://github.com/rust-lang/rust/issues/30039#issuecomment-159602555","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/30039","id":159602555,"user":{"login":"aochagavia","id":5196584,"avatar_url":"https://avatars.githubusercontent.com/u/5196584?v=3","gravatar_id":"","url":"https://api.github.com/users/aochagavia","html_url":"https://github.com/aochagavia","followers_url":"https://api.github.com/users/aochagavia/followers","following_url":"https://api.github.com/users/aochagavia/following{/other_user}","gists_url":"https://api.github.com/users/aochagavia/gists{/gist_id}","starred_url":"https://api.github.com/users/aochagavia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aochagavia/subscriptions","organizations_url":"https://api.github.com/users/aochagavia/orgs","repos_url":"https://api.github.com/users/aochagavia/repos","events_url":"https://api.github.com/users/aochagavia/events{/privacy}","received_events_url":"https://api.github.com/users/aochagavia/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T13:08:34Z","updated_at":"2015-11-25T13:08:34Z","body":"@Manishearth I am working on an [experimental refactoring tool](https://github.com/GSam/rust-refactor). The existing code was written by somebody else and he uses dummy defids in some places. I don't yet know if it is necessary, though. I guess I will discover it later on, when I have a better understanding of the code."}}