-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit 8dd8124
Restrict sysroot crate imports to those defined in this repo.
It's common to import dependencies from the sysroot via `extern crate`
rather than use an explicit cargo dependency, when it's necessary to use
the same dependency version as used by rustc itself. However, this is
dangerous for crates.io crates, since rustc may not pull in the
dependency on some targets, or may pull in multiple versions. In both
cases, the `extern crate` fails to resolve.
To address this, re-export all such dependencies from the appropriate
`rustc_*` crates, and use this alias from crates which would otherwise
need to use `extern crate`.1 parent 915e535 commit 8dd8124
File tree
50 files changed
+121
-81
lines changed- compiler
- rustc_codegen_cranelift/src
- rustc_codegen_gcc/src
- back
- rustc_data_structures/src
- rustc_lint
- src
- rustc_log/src
- rustc_resolve/src
- src
- librustdoc
- clean
- cfg
- html
- markdown
- render
- json
- passes
- lint
- tools
- clippy
- clippy_lints/src
- doc
- methods
- clippy_utils/src
- miri/src
- bin
- log
- borrow_tracker/stacked_borrows
- concurrency
- intrinsics
- rustfmt/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
50 files changed
+121
-81
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 | + | ||
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
33 | 34 |
| |
34 | - | ||
35 | - | ||
36 | 35 |
| |
37 | 36 |
| |
38 | 37 |
| |
| |||
46 | 45 |
| |
47 | 46 |
| |
48 | 47 |
| |
48 | + | ||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 | + | ||
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | + | ||
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | + | ||
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | + | ||
4 | 5 |
| |
5 | - | ||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
|
Lines changed: 1 addition & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 | - | ||
29 | - | ||
30 | - | ||
31 | - | ||
32 | - | ||
33 | - | ||
34 | 28 |
| |
35 | 29 |
| |
36 | 30 |
| |
| |||
45 | 39 |
| |
46 | 40 |
| |
47 | 41 |
| |
42 | + | ||
48 | 43 |
| |
49 | 44 |
| |
50 | 45 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 | + | ||
47 | + | ||
46 | 48 |
| |
47 | 49 |
| |
48 | 50 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
210 | + | ||
211 | + | ||
212 | + | ||
210 | 213 |
| |
211 | 214 |
| |
212 | 215 |
| |
|
Lines changed: 38 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | - | ||
16 | - | ||
17 | - | ||
18 | - | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
703 | 703 |
| |
704 | 704 |
| |
705 | 705 |
| |
706 | + | ||
707 | + | ||
708 | + | ||
709 | + | ||
710 | + | ||
711 | + | ||
712 | + | ||
713 | + | ||
714 | + | ||
715 | + | ||
716 | + | ||
717 | + | ||
718 | + | ||
719 | + | ||
720 | + | ||
721 | + | ||
722 | + | ||
723 | + | ||
724 | + | ||
725 | + | ||
726 | + | ||
727 | + | ||
728 | + | ||
729 | + | ||
730 | + | ||
731 | + | ||
732 | + | ||
733 | + | ||
734 | + | ||
735 | + | ||
736 | + | ||
737 | + | ||
738 | + | ||
739 | + |
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
648 | 648 |
| |
649 | 649 |
| |
650 | 650 |
| |
651 | + | ||
652 | + | ||
651 | 653 |
| |
652 | 654 |
| |
653 | 655 |
| |
| |||
670 | 672 |
| |
671 | 673 |
| |
672 | 674 |
| |
675 | + | ||
673 | 676 |
| |
674 | 677 |
| |
675 | 678 |
| |
|
0 commit comments