about summary refs log tree commit diff
path: root/src/tools/rustfmt
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-03 08:05:54 +0000
committerbors <bors@rust-lang.org>2023-01-03 08:05:54 +0000
commit3b1c8a94a4e8a6ba8bc7b39cc3580db9e5b72295 (patch)
treeb51b01e9d18e786cf1f1a4379356cf593291f56f /src/tools/rustfmt
parent442f997f98ac9f16f60ba3a7109f884dbf8d370c (diff)
parent8c000a68c5988f6e04c74180d4c0107a996110db (diff)
downloadrust-3b1c8a94a4e8a6ba8bc7b39cc3580db9e5b72295.tar.gz
rust-3b1c8a94a4e8a6ba8bc7b39cc3580db9e5b72295.zip
Auto merge of #105609 - bjorn3:shrink_rustc_dev, r=jyn514
Only include metadata for non-dynamic libraries in rustc-dev

The actual object code should be linked from librustc_driver.so, which is still included in rustc-dev. This saves on download time and disk usage.

Fixes https://github.com/rust-lang/rust/issues/103538
Diffstat (limited to 'src/tools/rustfmt')
-rw-r--r--src/tools/rustfmt/src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/rustfmt/src/lib.rs b/src/tools/rustfmt/src/lib.rs
index 1d1ef525f23..0c27bcacfb8 100644
--- a/src/tools/rustfmt/src/lib.rs
+++ b/src/tools/rustfmt/src/lib.rs
@@ -24,6 +24,11 @@ extern crate rustc_parse;
 extern crate rustc_session;
 extern crate rustc_span;
 
+// Necessary to pull in object code as the rest of the rustc crates are shipped only as rmeta
+// files.
+#[allow(unused_extern_crates)]
+extern crate rustc_driver;
+
 use std::cell::RefCell;
 use std::collections::HashMap;
 use std::fmt;