{"action":"created","issue":{"url":"https://api.github.com/repos/glium/glium/issues/1620","repository_url":"https://api.github.com/repos/glium/glium","labels_url":"https://api.github.com/repos/glium/glium/issues/1620/labels{/name}","comments_url":"https://api.github.com/repos/glium/glium/issues/1620/comments","events_url":"https://api.github.com/repos/glium/glium/issues/1620/events","html_url":"https://github.com/glium/glium/issues/1620","id":254902582,"number":1620,"title":"clippy reports warning in implement_vertex!","user":{"login":"chyvonomys","id":2478891,"avatar_url":"https://avatars3.githubusercontent.com/u/2478891?v=4","gravatar_id":"","url":"https://api.github.com/users/chyvonomys","html_url":"https://github.com/chyvonomys","followers_url":"https://api.github.com/users/chyvonomys/followers","following_url":"https://api.github.com/users/chyvonomys/following{/other_user}","gists_url":"https://api.github.com/users/chyvonomys/gists{/gist_id}","starred_url":"https://api.github.com/users/chyvonomys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chyvonomys/subscriptions","organizations_url":"https://api.github.com/users/chyvonomys/orgs","repos_url":"https://api.github.com/users/chyvonomys/repos","events_url":"https://api.github.com/users/chyvonomys/events{/privacy}","received_events_url":"https://api.github.com/users/chyvonomys/received_events","type":"User","site_admin":false},"labels":[{"id":134636641,"url":"https://api.github.com/repos/glium/glium/labels/T-bug","name":"T-bug","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-09-03T21:40:56Z","updated_at":"2017-09-06T17:31:54Z","closed_at":null,"author_association":"NONE","body":"This code:\r\n```\r\n#[macro_use]\r\nextern crate glium;\r\n\r\n#[derive(Clone, Copy)]\r\nstruct MyVtx {\r\n    pos: [f32; 3],\r\n}\r\n\r\nimplement_vertex!(MyVtx, pos);\r\n\r\nfn main() {\r\n}\r\n```\r\n\r\nwhen analyzed with `clippy` reports this warning:\r\n```\r\nwarning: calls to `std::mem::forget` with a value that implements Copy. Forgetting a copy leaves the original intact.\r\n --> src/main.rs:9:1\r\n  |\r\n9 | implement_vertex!(MyVtx, pos);\r\n  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  |\r\n  = note: #[warn(forget_copy)] on by default\r\nnote: argument has type MyVtx\r\n --> src/main.rs:9:1\r\n  |\r\n9 | implement_vertex!(MyVtx, pos);\r\n  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  = help: for further information visit https://github.com/rust-lang-nursery/rust-clippy/wiki#forget_copy\r\n  = note: this error originates in a macro outside of the current crate\r\n```"},"comment":{"url":"https://api.github.com/repos/glium/glium/issues/comments/327557055","html_url":"https://github.com/glium/glium/issues/1620#issuecomment-327557055","issue_url":"https://api.github.com/repos/glium/glium/issues/1620","id":327557055,"user":{"login":"chyvonomys","id":2478891,"avatar_url":"https://avatars3.githubusercontent.com/u/2478891?v=4","gravatar_id":"","url":"https://api.github.com/users/chyvonomys","html_url":"https://github.com/chyvonomys","followers_url":"https://api.github.com/users/chyvonomys/followers","following_url":"https://api.github.com/users/chyvonomys/following{/other_user}","gists_url":"https://api.github.com/users/chyvonomys/gists{/gist_id}","starred_url":"https://api.github.com/users/chyvonomys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chyvonomys/subscriptions","organizations_url":"https://api.github.com/users/chyvonomys/orgs","repos_url":"https://api.github.com/users/chyvonomys/repos","events_url":"https://api.github.com/users/chyvonomys/events{/privacy}","received_events_url":"https://api.github.com/users/chyvonomys/received_events","type":"User","site_admin":false},"created_at":"2017-09-06T17:31:54Z","updated_at":"2017-09-06T17:31:54Z","author_association":"NONE","body":"Well, `glium::Vertex` does require:\r\n```\r\nerror[E0277]: the trait bound `Vtx: std::marker::Copy` is not satisfied\r\n --> src\\main.rs:8:1\r\n  |\r\n8 | implement_vertex!(Vtx, pos);\r\n  | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `Vtx`\r\n  |\r\n  = note: required by `glium::Vertex`\r\n```"}}
{"actor":{"display_login":"chyvonomys"}}