Stream: general

Topic: Closure and higher ranged lifetime


marmeladema (Apr 05 2020 at 17:09, on Zulip):

Hello! I am having trouble expressing correct bounds for higher ranked lifetime in closure. I managed to "minify" my issue here: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=2004ab01f15aa17096984f22de411ebf
Its still not very small, i am sorry :/

marmeladema (Apr 05 2020 at 17:10, on Zulip):

(by the way, the code times out in playground in nightly but not on stable, maybe there a perf regression in nightly?)

marmeladema (Apr 05 2020 at 17:14, on Zulip):

I _think_ what i want to express is something like for<'a> |ctx: &'a ExecCtx<'a>| { ... } but i am not sure and its not even valid syntax ^^

Jonas Schievink (Apr 05 2020 at 17:16, on Zulip):

The perf regression should be fixed in the next nightly

Last update: Jun 05 2020 at 23:10UTC