Check permitted dependencies for rustc-main

Rather than just for rustc_driver. rustc-main also depends on rustc_smir
which may get unique dependencies in the future.
This commit is contained in:
bjorn3 2023-08-25 18:29:26 +00:00
parent 0a95d7c20a
commit 3b4598e0a4

View file

@ -184,6 +184,7 @@ const PERMITTED_RUSTC_DEPENDENCIES: &[&str] = &[
"is-terminal",
"itertools",
"itoa",
"jemalloc-sys",
"jobserver",
"lazy_static",
"libc",
@ -396,7 +397,7 @@ pub fn check(root: &Path, cargo: &Path, bad: &mut bool) {
&metadata,
"rustc",
PERMITTED_RUSTC_DEPENDENCIES,
&["rustc_driver", "rustc_codegen_llvm"],
&["rustc-main"],
bad,
);