{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/33571","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/33571/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/33571/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/33571/events","html_url":"https://github.com/rust-lang/rust/issues/33571","id":154351043,"number":33571,"title":"The error message for trying to derive an unsafe trait impl doesn't mention the trait name","user":{"login":"dotdash","id":230962,"avatar_url":"https://avatars.githubusercontent.com/u/230962?v=3","gravatar_id":"","url":"https://api.github.com/users/dotdash","html_url":"https://github.com/dotdash","followers_url":"https://api.github.com/users/dotdash/followers","following_url":"https://api.github.com/users/dotdash/following{/other_user}","gists_url":"https://api.github.com/users/dotdash/gists{/gist_id}","starred_url":"https://api.github.com/users/dotdash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotdash/subscriptions","organizations_url":"https://api.github.com/users/dotdash/orgs","repos_url":"https://api.github.com/users/dotdash/repos","events_url":"https://api.github.com/users/dotdash/events{/privacy}","received_events_url":"https://api.github.com/users/dotdash/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-diagnostics","name":"A-diagnostics","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-11T21:49:42Z","updated_at":"2016-05-12T00:47:03Z","closed_at":null,"body":"I tried to derive every possible trait on an enum and received this error:\r\n\r\n```\r\nenum-derive.rs:3:1: 3:112 note: in this expansion of #[derive] (defined in enum-derive.rs)\r\nenum-derive.rs:3:1: 3:112 error: this unsafe trait should be implemented explicitly\r\nenum-derive.rs:3 #[derive(PartialEq, PartialOrd, Clone, Copy, Hash, RustcEncodable, RustcDecodable, Eq, Ord, Debug, Send, Sync)]\r\n                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n```\r\n\r\nwhich isn't as helpful as it could be because it doesn't tell me which of the traits is the one it's complaining about."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/218630981","html_url":"https://github.com/rust-lang/rust/issues/33571#issuecomment-218630981","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/33571","id":218630981,"user":{"login":"durka","id":47007,"avatar_url":"https://avatars.githubusercontent.com/u/47007?v=3","gravatar_id":"","url":"https://api.github.com/users/durka","html_url":"https://github.com/durka","followers_url":"https://api.github.com/users/durka/followers","following_url":"https://api.github.com/users/durka/following{/other_user}","gists_url":"https://api.github.com/users/durka/gists{/gist_id}","starred_url":"https://api.github.com/users/durka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durka/subscriptions","organizations_url":"https://api.github.com/users/durka/orgs","repos_url":"https://api.github.com/users/durka/repos","events_url":"https://api.github.com/users/durka/events{/privacy}","received_events_url":"https://api.github.com/users/durka/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T00:47:03Z","updated_at":"2016-05-12T00:47:03Z","body":"Also, this is actually a regression. [Playpen](https://is.gd/rSWj2W). On stable and beta the error spans point to the trait names, but on nightly (`RUST_NEW_ERROR_FORMAT` or not) they point to the whole attribute. cc #33240 @nikomatsakis @jonathandturner "}}