{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/36870","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/36870/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/36870/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/36870/events","html_url":"https://github.com/rust-lang/rust/issues/36870","id":180387131,"number":36870,"title":"#[derive(Debug)] fails when used with a raw pointer to DST","user":{"login":"whitequark","id":54771,"avatar_url":"https://avatars.githubusercontent.com/u/54771?v=3","gravatar_id":"","url":"https://api.github.com/users/whitequark","html_url":"https://github.com/whitequark","followers_url":"https://api.github.com/users/whitequark/followers","following_url":"https://api.github.com/users/whitequark/following{/other_user}","gists_url":"https://api.github.com/users/whitequark/gists{/gist_id}","starred_url":"https://api.github.com/users/whitequark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitequark/subscriptions","organizations_url":"https://api.github.com/users/whitequark/orgs","repos_url":"https://api.github.com/users/whitequark/repos","events_url":"https://api.github.com/users/whitequark/events{/privacy}","received_events_url":"https://api.github.com/users/whitequark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-30T19:45:52Z","updated_at":"2016-09-30T21:38:10Z","closed_at":null,"body":"... with the following error message:\r\n```\r\nerror[E0277]: the trait bound `core::ops::Fn() -> bool + 'static: core::marker::Sized` is not satisfied\r\n   --> /home/whitequark/Work/artiq-dev/artiq/artiq/runtime/../runtime.rs/src/sched.rs:109:16\r\n    |\r\n109 |     Completion(*const (Fn() -> bool + 'static)),\r\n    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n/home/whitequark/Work/artiq-dev/artiq/artiq/runtime/../runtime.rs/src/sched.rs:107:10: 107:15 note: in this expansion of #[derive(Debug)] (defined in /home/whitequark/Work/artiq-dev/artiq/artiq/runtime/../runtime.rs/src/sched.rs)\r\n    |\r\n    = note: `core::ops::Fn() -> bool + 'static` does not have a constant size known at compile-time\r\n    = note: required because of the requirements on the impl of `core::fmt::Debug` for `*const core::ops::Fn() -> bool + 'static`\r\n    = note: required because of the requirements on the impl of `core::fmt::Debug` for `&*const core::ops::Fn() -> bool + 'static`\r\n    = note: required for the cast to the object type `core::fmt::Debug`\r\n```\r\n\r\nsince the Debug impl for raw pointers just prints the actual pointer, I don't see why it should require the pointee to be Sized."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/250858507","html_url":"https://github.com/rust-lang/rust/issues/36870#issuecomment-250858507","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/36870","id":250858507,"user":{"login":"apasel422","id":8644784,"avatar_url":"https://avatars.githubusercontent.com/u/8644784?v=3","gravatar_id":"","url":"https://api.github.com/users/apasel422","html_url":"https://github.com/apasel422","followers_url":"https://api.github.com/users/apasel422/followers","following_url":"https://api.github.com/users/apasel422/following{/other_user}","gists_url":"https://api.github.com/users/apasel422/gists{/gist_id}","starred_url":"https://api.github.com/users/apasel422/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apasel422/subscriptions","organizations_url":"https://api.github.com/users/apasel422/orgs","repos_url":"https://api.github.com/users/apasel422/repos","events_url":"https://api.github.com/users/apasel422/events{/privacy}","received_events_url":"https://api.github.com/users/apasel422/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T21:38:10Z","updated_at":"2016-09-30T21:38:10Z","body":"Seems like this is a duplicate of #30427."}}
{"actor":{"display_login":"apasel422"}}