Commit 6375a24
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 6375a24
3 files changed
Lines changed: 49 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
409 | 413 | | |
410 | 414 | | |
411 | 415 | | |
412 | 416 | | |
413 | 417 | | |
414 | 418 | | |
415 | | - | |
416 | 419 | | |
417 | 420 | | |
418 | 421 | | |
| |||
| 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 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
512 | 504 | | |
513 | 505 | | |
514 | 506 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
| 685 | + | |
692 | 686 | | |
693 | 687 | | |
694 | 688 | | |
| |||
709 | 703 | | |
710 | 704 | | |
711 | 705 | | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
| 706 | + | |
719 | 707 | | |
720 | 708 | | |
721 | 709 | | |
| |||
742 | 730 | | |
743 | 731 | | |
744 | 732 | | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
| 733 | + | |
749 | 734 | | |
750 | 735 | | |
751 | 736 | | |
| |||
870 | 855 | | |
871 | 856 | | |
872 | 857 | | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
873 | 892 | | |
874 | 893 | | |
875 | 894 | | |
| |||
0 commit comments