-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Rustdoc inline macro reexport #56315
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From #54577 it looks like we're intentionally not reexporting proc macros across crates so I don't know if the proc macro change should be done yet.
Tests go in src/test/rustdoc
.
Copying in the relevant paragraph from the PR @ollie27 linked:
So, i can't accept the parts that enable proc-macro re-export, since (as far as i know) this information still doesn't exist. If that's no longer the case, though, then i'd be happy to take it! There's a brief intro to rustdoc's tests in the rustc guide, otherwise you can take a look at the |
I've missed that part. It's now removed. Do you know what needs to be done to get this working? |
It would involve changing proc-macros in general to be able to save more information between crates than what we currently send. I'm not too familiar with their implementation; maybe someone from @rust-lang/compiler can provide more input? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest of this PR looks good, thanks for adding the test!
@bors r+ |
📌 Commit 956b03f has been approved by |
…ort, r=QuietMisdreavus Rustdoc inline macro reexport Fixes rust-lang#56173 I assume this needs to have tests? Any pointers where these need to be added?
Rollup of 11 pull requests Successful merges: - #56315 (Rustdoc inline macro reexport) - #56332 ([rustdoc] Specific crate search) - #56362 (Stabilise exhaustive integer patterns) - #56426 (libsyntax_pos: A few tweaks) - #56441 (rustbuild: Fix issues with compiler docs) - #56446 (pass the parameter environment to `traits::find_associated_item`) - #56500 (cleanup: remove static lifetimes from consts) - #56525 (Avoid extra copy and syscall in std::env::current_exe) - #56528 (Remove unused dependency (rustc_lint -> rustc_mir)) - #56548 (Optimized string FromIterator + Extend impls) - #56553 (Don't print the profiling summary to stdout when -Zprofile-json is set) Failed merges: r? @ghost
Fixes #56173
I assume this needs to have tests? Any pointers where these need to be added?