Stream: wg-async-foundations

Topic: `async move` in doctests #59313


QuietMisdreavus (Apr 16 2019 at 20:26, on Zulip):

so i've been poking at this today, and i'm somewhat at a loss. as far as i can tell, during the pre-parsing to check whether it's defined a main, it hops into this parse_item, and just... dies

https://github.com/rust-lang/rust/blob/70f130954d6fd36fe3e77f4b5b33e5af50489288/src/librustdoc/test.rs#L404

QuietMisdreavus (Apr 16 2019 at 20:27, on Zulip):

some logging tells me it goes so far as seeing the move keyword and then the log stops

QuietMisdreavus (Apr 16 2019 at 20:27, on Zulip):

it's not like it's panicking, either - that would at least generate a message

nikomatsakis (Apr 16 2019 at 20:33, on Zulip):

weird

nikomatsakis (Apr 16 2019 at 20:34, on Zulip):

I've seen this before though

nikomatsakis (Apr 16 2019 at 20:34, on Zulip):

Let me try to remember when :)

QuietMisdreavus (Apr 17 2019 at 22:41, on Zulip):

oh my gosh i think i figured it out

QuietMisdreavus (Apr 17 2019 at 22:41, on Zulip):

we never set the edition when doing the pre-parse

QuietMisdreavus (Apr 17 2019 at 22:53, on Zulip):

/me grumbles about the parser edition being a global variable

nikomatsakis (Apr 19 2019 at 18:01, on Zulip):

we never set the edition when doing the pre-parse

@QuietMisdreavus nice catch

Last update: Nov 18 2019 at 01:10UTC