Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix how scrape-examples handles proc macros #10533

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

willcrichton
Copy link
Contributor

What does this PR try to resolve?

This PR fixes #10500.

Previously, the scrape-examples extension did some shenanigans in build_unit_dependencies in order to scrape proc-macro crates. But this code is useless since proc-macro crates cannot export functions, so we avoid this issue entirely by filtering proc-macro targets.

How should we test and review this PR?

I added the test scrape_examples_configure_profile to ensure that the issue in #10500 is fixed.

r? @ehuss

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 2, 2022
@epage
Copy link
Contributor

epage commented Apr 4, 2022

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Apr 4, 2022

📌 Commit e55c40f has been approved by epage

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 4, 2022
@bors
Copy link
Contributor

bors commented Apr 4, 2022

⌛ Testing commit e55c40f with merge 01c06b0...

@bors
Copy link
Contributor

bors commented Apr 4, 2022

☀️ Test successful - checks-actions
Approved by: epage
Pushing 01c06b0 to master...

@bors bors merged commit 01c06b0 into rust-lang:master Apr 4, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 6, 2022
Update cargo

5 commits in 1ef1e0a12723ce9548d7da2b63119de9002bead8..e2e2dddebe66dfc1403a312653557e332445308b
2022-03-31 00:17:18 +0000 to 2022-04-05 17:04:53 +0000
- Part 2 of RFC2906 -- allow inheriting from a different `Cargo.toml` (rust-lang/cargo#10517)
- File Cache is valid if checkout or contents hasn't changed (rust-lang/cargo#10507)
- Fix how scrape-examples handles proc macros (rust-lang/cargo#10533)
- tools: update checkout action on CI (rust-lang/cargo#10521)
- Don't error if no binaries were installed (rust-lang/cargo#10508)
@ehuss ehuss added this to the 1.62.0 milestone Apr 7, 2022
@weihanglo weihanglo added the Z-scrape-examples Nightly: rustdoc scrape examples label Sep 20, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. Z-scrape-examples Nightly: rustdoc scrape examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

-Z rustdoc-scrape-examples panics with some profile overrides
6 participants