]> git.proxmox.com Git - cargo.git/commit
Auto merge of #10533 - willcrichton:fix-scrape-profile, r=epage
authorbors <bors@rust-lang.org>
Mon, 4 Apr 2022 14:28:06 +0000 (14:28 +0000)
committerbors <bors@rust-lang.org>
Mon, 4 Apr 2022 14:28:06 +0000 (14:28 +0000)
commit01c06b0360f6c8afe50d91b3b5dfb138257e54ad
treeb87b84d97681bf2b2424e442eeb648d3b6c58305
parentb1603eb78820bf6f214da7da974ecee3f5ed68dd
parente55c40fdda559f40406120d048affd644a1b53d9
Auto merge of #10533 - willcrichton:fix-scrape-profile, r=epage

Fix how scrape-examples handles proc macros

### 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`