-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 in 1.62.0 with macro exports in doctests #98735
Comments
On my machine, on |
Oh, yes, good catch, that's what I observe on 1.61 and before too. |
Makes me wonder if this is somehow related to rust-lang/cargo#10594 |
Running regressed nightly: nightly-2022-05-06 which is #96630 which has a |
Duplicate of #97030 |
@jyn514 I left a comment over there. I think we should make sure to update the changelog with a note about this change then, and sooner rather than later since 1.62.0 is now out. |
I'm not the one who approved the PR. Anyone is welcome to submit a change to the release notes. |
Add macro_rules! rustdoc change to 1.62 relnotes rust-lang#96630 was tagged <kbd>relnotes</kbd> but didn't make it into the notes. Given this is a compatibility issue (rust-lang#97030, rust-lang#98735, rust-lang#98743), it probably *should* be retroactively added.
Code
I tried this code (in a crate called
foo
):and run
$ cargo t --doc
I expected to see this happen: the doctest passes
Instead, this happened: the doctest fails to build with
Version it worked on
It most recently worked on: Rust 1.61.0
Version with regression
rustc --version --verbose
:Notes
It works if I add
#[macro_export]
above themacro_rules!
. If intended, this feels like it should be listed in the compatibility notes.The text was updated successfully, but these errors were encountered: