Skip to content

Commit d7cd6e2

Browse files
committed
Fix RESTRICTED_DEPENDENCY_CRATES to list rustc_driver instead of rustc_middle
1 parent e327a82 commit d7cd6e2

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/tools/tidy/src/deps.rs

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const EXCEPTIONS: &[(&str, &str)] = &[
4949
const RUNTIME_CRATES: &[&str] = &["std", "core", "alloc", "test", "panic_abort", "panic_unwind"];
5050

5151
/// Crates whose dependencies must be explicitly permitted.
52-
const RESTRICTED_DEPENDENCY_CRATES: &[&str] = &["rustc_middle", "rustc_codegen_llvm"];
52+
const RESTRICTED_DEPENDENCY_CRATES: &[&str] = &["rustc_driver", "rustc_codegen_llvm"];
5353

5454
/// Crates rustc is allowed to depend on. Avoid adding to the list if possible.
5555
///
@@ -72,7 +72,10 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
7272
"cc",
7373
"cfg-if",
7474
"chalk-derive",
75+
"chalk-engine",
7576
"chalk-ir",
77+
"chalk-solve",
78+
"chrono",
7679
"cmake",
7780
"compiler_builtins",
7881
"cpuid-bool",
@@ -92,6 +95,7 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
9295
"expect-test",
9396
"fake-simd",
9497
"filetime",
98+
"fixedbitset",
9599
"flate2",
96100
"fortanix-sgx-abi",
97101
"fuchsia-zircon",
@@ -107,13 +111,15 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
107111
"indexmap",
108112
"instant",
109113
"itertools",
114+
"itoa",
110115
"jobserver",
111116
"kernel32-sys",
112117
"lazy_static",
113118
"libc",
114119
"libz-sys",
115120
"lock_api",
116121
"log",
122+
"matchers",
117123
"maybe-uninit",
118124
"md-5",
119125
"measureme",
@@ -123,13 +129,16 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
123129
"memoffset",
124130
"miniz_oxide",
125131
"num_cpus",
132+
"num-integer",
133+
"num-traits",
126134
"object",
127135
"once_cell",
128136
"opaque-debug",
129137
"parking_lot",
130138
"parking_lot_core",
131139
"pathdiff",
132140
"perf-event-open-sys",
141+
"petgraph",
133142
"pin-project-lite",
134143
"pkg-config",
135144
"polonius-engine",
@@ -147,22 +156,28 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
147156
"rand_xorshift",
148157
"redox_syscall",
149158
"regex",
159+
"regex-automata",
150160
"regex-syntax",
151161
"remove_dir_all",
162+
"rls-data",
163+
"rls-span",
152164
"rustc-demangle",
153165
"rustc-hash",
154166
"rustc-rayon",
155167
"rustc-rayon-core",
156168
"rustc_version",
169+
"ryu",
157170
"scoped-tls",
158171
"scopeguard",
159172
"semver",
160173
"semver-parser",
161174
"serde",
162175
"serde_derive",
176+
"serde_json",
163177
"sha-1",
164178
"sha2",
165179
"smallvec",
180+
"sharded-slab",
166181
"snap",
167182
"stable_deref_trait",
168183
"stacker",
@@ -172,9 +187,15 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
172187
"termcolor",
173188
"termize",
174189
"thread_local",
190+
"time",
191+
"tinyvec",
175192
"tracing",
176193
"tracing-attributes",
177194
"tracing-core",
195+
"tracing-log",
196+
"tracing-serde",
197+
"tracing-subscriber",
198+
"tracing-tree",
178199
"typenum",
179200
"unicode-normalization",
180201
"unicode-script",

0 commit comments

Comments
 (0)