-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[regression] cannot declare non-inline module inside a block #71766
Comments
Bisection points to 57e1da5. |
That's #69838 "Expansion-driven outline module parsing". |
Minimized:
Passes on stable, produces |
So, before #69838 |
Seems acceptable, the regression can only happen in doctests and making doctests behave more like regular Rust code is good. |
To be clear, If so I agree that this seems like a bug fix that we should accept. I'm going to cc @rust-lang/lang just in case there's disagreement but it seems obvious to me that we should rather reject |
Everything in doctests is in a block, AFAIK? However, if it wasn't, rustdoc would still turn |
I agree this seems like a bug fix, yes. |
cc @petrochenkov
Possibly related to changes in rustdoc, I believe both cases are inside doctests?
The text was updated successfully, but these errors were encountered: