From b480f0f224b6e92a514a477516dd65d06b68f3cc Mon Sep 17 00:00:00 2001 From: clubby789 Date: Thu, 7 Nov 2024 14:17:16 +0000 Subject: Remove unused intercrate dependencies --- compiler/rustc/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/rustc') diff --git a/compiler/rustc/src/main.rs b/compiler/rustc/src/main.rs index e9a7397557e..ccf88d8ff4b 100644 --- a/compiler/rustc/src/main.rs +++ b/compiler/rustc/src/main.rs @@ -1,5 +1,7 @@ // We need this feature as it changes `dylib` linking behavior and allows us to link to `rustc_driver`. #![feature(rustc_private)] +// Several crates are depended upon but unused so that they are present in the sysroot +#![expect(unused_crate_dependencies)] // A note about jemalloc: rustc uses jemalloc when built for CI and // distribution. The obvious way to do this is with the `#[global_allocator]` -- cgit 1.4.1-3-g733a5