payload: {"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/58639","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/58639/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/58639/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/58639/events","html_url":"https://github.com/rust-lang/rust/issues/58639","id":413379963,"node_id":"MDU6SXNzdWU0MTMzNzk5NjM=","number":58639,"title":"async/await: expected type for<'r> std::ops::FnMut<(&'r std::task::Waker,)>","user":{"login":"kpp","id":467709,"node_id":"MDQ6VXNlcjQ2NzcwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/467709?v=4","gravatar_id":"","url":"https://api.github.com/users/kpp","html_url":"https://github.com/kpp","followers_url":"https://api.github.com/users/kpp/followers","following_url":"https://api.github.com/users/kpp/following{/other_user}","gists_url":"https://api.github.com/users/kpp/gists{/gist_id}","starred_url":"https://api.github.com/users/kpp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpp/subscriptions","organizations_url":"https://api.github.com/users/kpp/orgs","repos_url":"https://api.github.com/users/kpp/repos","events_url":"https://api.github.com/users/kpp/events{/privacy}","received_events_url":"https://api.github.com/users/kpp/received_events","type":"User","site_admin":false},"labels":[{"id":1049510487,"node_id":"MDU6TGFiZWwxMDQ5NTEwNDg3","url":"https://api.github.com/repos/rust-lang/rust/labels/A-async-await","name":"A-async-await","color":"f7e101","default":false},{"id":604454086,"node_id":"MDU6TGFiZWw2MDQ0NTQwODY=","url":"https://api.github.com/repos/rust-lang/rust/labels/A-inference","name":"A-inference","color":"f7e101","default":false},{"id":37544,"node_id":"MDU6TGFiZWwzNzU0NA==","url":"https://api.github.com/repos/rust-lang/rust/labels/A-typesystem","name":"A-typesystem","color":"f7e101","default":false},{"id":1259720434,"node_id":"MDU6TGFiZWwxMjU5NzIwNDM0","url":"https://api.github.com/repos/rust-lang/rust/labels/AsyncAwait-Blocking","name":"AsyncAwait-Blocking","color":"d4c5f9","default":false},{"id":211668100,"node_id":"MDU6TGFiZWwyMTE2NjgxMDA=","url":"https://api.github.com/repos/rust-lang/rust/labels/T-compiler","name":"T-compiler","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":{"login":"nikomatsakis","id":155238,"node_id":"MDQ6VXNlcjE1NTIzOA==","avatar_url":"https://avatars0.githubusercontent.com/u/155238?v=4","gravatar_id":"","url":"https://api.github.com/users/nikomatsakis","html_url":"https://github.com/nikomatsakis","followers_url":"https://api.github.com/users/nikomatsakis/followers","following_url":"https://api.github.com/users/nikomatsakis/following{/other_user}","gists_url":"https://api.github.com/users/nikomatsakis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikomatsakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikomatsakis/subscriptions","organizations_url":"https://api.github.com/users/nikomatsakis/orgs","repos_url":"https://api.github.com/users/nikomatsakis/repos","events_url":"https://api.github.com/users/nikomatsakis/events{/privacy}","received_events_url":"https://api.github.com/users/nikomatsakis/received_events","type":"User","site_admin":false},"assignees":[{"login":"nikomatsakis","id":155238,"node_id":"MDQ6VXNlcjE1NTIzOA==","avatar_url":"https://avatars0.githubusercontent.com/u/155238?v=4","gravatar_id":"","url":"https://api.github.com/users/nikomatsakis","html_url":"https://github.com/nikomatsakis","followers_url":"https://api.github.com/users/nikomatsakis/followers","following_url":"https://api.github.com/users/nikomatsakis/following{/other_user}","gists_url":"https://api.github.com/users/nikomatsakis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikomatsakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikomatsakis/subscriptions","organizations_url":"https://api.github.com/users/nikomatsakis/orgs","repos_url":"https://api.github.com/users/nikomatsakis/repos","events_url":"https://api.github.com/users/nikomatsakis/events{/privacy}","received_events_url":"https://api.github.com/users/nikomatsakis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2019-02-22T12:20:12Z","updated_at":"2019-03-05T18:32:48Z","closed_at":"2019-03-05T18:32:48Z","author_association":"CONTRIBUTOR","body":"MRE:\r\n\r\nfutures-preview = `=0.3.0-alpha.13`\r\nrustc -vV = `1.34.0-nightly (146aa60f3 2019-02-18) x86_64-unknown-linux-gnu LLVM 8.0`\r\n\r\n```\r\nuse futures::stream::Stream;\r\nuse core::pin::Pin;\r\n\r\npub async fn next<St>(stream: &mut St) -> Option<St::Item>\r\n    where St: Stream + Unpin,\r\n{\r\n    use futures::future::poll_fn;\r\n    let poll_next = |waker| Pin::new(&mut *stream).poll_next(waker);\r\n    let future_next = poll_fn(poll_next);\r\n    await!(future_next)\r\n}\r\n\r\nerror[E0308]: mismatched types\r\n  --> src/stream.rs:11:5\r\n   |\r\n11 |     await!(future_next)\r\n   |     ^^^^^^^^^^^^^^^^^^^ one type is more general than the other\r\n   |\r\n   = note: expected type `for<'r> std::ops::FnMut<(&'r std::task::Waker,)>`\r\n              found type `std::ops::FnMut<(&std::task::Waker,)>`\r\n   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)\r\n\r\nerror: aborting due to previous error\r\n\r\nFor more information about this error, try `rustc --explain E0308`.\r\n```\r\n\r\nLocal fix:\r\n```diff\r\n- let poll_next = |waker| Pin::new(&mut *stream).poll_next(waker);\r\n+ let poll_next = |waker: &_| Pin::new(&mut *stream).poll_next(waker);\r\n```\r\n\r\nIs it a bug?"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/469798097","html_url":"https://github.com/rust-lang/rust/issues/58639#issuecomment-469798097","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/58639","id":469798097,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2OTc5ODA5Nw==","user":{"login":"nikomatsakis","id":155238,"node_id":"MDQ6VXNlcjE1NTIzOA==","avatar_url":"https://avatars0.githubusercontent.com/u/155238?v=4","gravatar_id":"","url":"https://api.github.com/users/nikomatsakis","html_url":"https://github.com/nikomatsakis","followers_url":"https://api.github.com/users/nikomatsakis/followers","following_url":"https://api.github.com/users/nikomatsakis/following{/other_user}","gists_url":"https://api.github.com/users/nikomatsakis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikomatsakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikomatsakis/subscriptions","organizations_url":"https://api.github.com/users/nikomatsakis/orgs","repos_url":"https://api.github.com/users/nikomatsakis/repos","events_url":"https://api.github.com/users/nikomatsakis/events{/privacy}","received_events_url":"https://api.github.com/users/nikomatsakis/received_events","type":"User","site_admin":false},"created_at":"2019-03-05T18:32:48Z","updated_at":"2019-03-05T18:32:48Z","author_association":"CONTRIBUTOR","body":"Er, I'm going to close this issue, since it's (at least at present) expected behavior, and it's also not particularly related to async-await."}}
other: {"actor":{"display_login":"nikomatsakis"}}