diff --git a/compiler/rustc_driver/Cargo.toml b/compiler/rustc_driver/Cargo.toml
index eddb8b20947cb3ac44e9e259f54e6b4403c5705a..ae9712ad66d83a6212cfb3cbcaeff8aca64b97c0 100644
--- a/compiler/rustc_driver/Cargo.toml
+++ b/compiler/rustc_driver/Cargo.toml
@@ -4,7 +4,7 @@ version = "0.0.0"
 edition = "2021"
 
 [lib]
-crate-type = ["dylib", "rlib"]
+crate-type = ["dylib"]
 
 [dependencies]
 # tidy-alphabetical-start