Commit b249c70
committed
crate_universe: synthesize build-script edge at render time
A library/binary/proc-macro built from a crate with a build script depends
on that crate's own build_script_build target. That edge was recorded as a
self-referential entry in common_attrs.deps, which also feeds
workspace_member_deps() and produced a spurious crate-hub alias for any
workspace member that is a library with a build script (issue #4089).
Stop recording the self-edge in common_attrs.deps (reserved for cross-crate
deps) and instead synthesize the build_script_build edge during rendering
from the presence of the build-script target. workspace_member_deps() then
naturally excludes it with no filtering.
Upstream issue: #40891 parent fb01b69 commit b249c70
3 files changed
Lines changed: 36 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | 415 | | |
417 | 416 | | |
418 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
| 434 | + | |
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
| 497 | + | |
512 | 498 | | |
513 | 499 | | |
514 | 500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
683 | 687 | | |
684 | 688 | | |
685 | 689 | | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
| 690 | + | |
690 | 691 | | |
691 | 692 | | |
692 | 693 | | |
| |||
707 | 708 | | |
708 | 709 | | |
709 | 710 | | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
710 | 715 | | |
711 | 716 | | |
712 | 717 | | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
| 718 | + | |
717 | 719 | | |
718 | 720 | | |
719 | 721 | | |
| |||
742 | 744 | | |
743 | 745 | | |
744 | 746 | | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
749 | 752 | | |
750 | 753 | | |
751 | 754 | | |
| |||
1009 | 1012 | | |
1010 | 1013 | | |
1011 | 1014 | | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1012 | 1033 | | |
1013 | 1034 | | |
1014 | 1035 | | |
| |||
0 commit comments