-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix panic when artifact target is used for `[target.'cfg(<target>)'.dependencies` With an artifact dependency like this in package `a`… ```toml [dependencies.a] path = "b" artifact = "bin" target = "$TARGET" ``` …and when using `$TARGET` like this in another package `b`… ```toml [target.'cfg(target_arch = "$ARCHOF_$TARGET")'.dependencies] c = { path = "../c" } ``` …it panics with `thread 'main' panicked at 'activated_features for invalid package: features did not find PackageId <dbg-info>`, but we would expect this to work normally. ### Tasks - [x] reproduce issue in new test - [x] figure out why the test is fixed but the real-world example isn't - [x] find a fix Fixes #10431 and #10452.
- Loading branch information
Showing
4 changed files
with
220 additions
and
19 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