-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #10549 - willcrichton:fix-issue-10535, r=ehuss
Ensure host units don't depend on Docscrape units, fixes #10545 ### What does this PR try to resolve? This PR fixes issue #10545. The root cause was: * Cargo workspace contains a host-type crate (e.g. a proc macro). * `unit_dependencies` attempts to add `Docscrape` units as dependencies of the host-type crate. * `activated_features` attempts to lookup `(dep, Host)` in the feature map, but only `(dep, NotHost)` exists. The fix is to ensure that host-type crates do not have Docscrape units added as dependencies. ### How should we test and review this PR? The added test `scrape_examples_issue_10545` provides a minimal example that fails before this fix, and succeeds after.
- Loading branch information
Showing
4 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters