diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2024-03-12 02:12:28 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2024-08-11 04:16:53 +0200 |
| commit | 837d9045c5cf40b2ebf4b4ae2a02f35f8c7e0825 (patch) | |
| tree | 4b1d3fb737f53a0149ddf7ef9c479808d74ec161 | |
| parent | 917ad034cc89ecdde85771238d0d8f89813290fb (diff) | |
| download | rust-837d9045c5cf40b2ebf4b4ae2a02f35f8c7e0825.tar.gz rust-837d9045c5cf40b2ebf4b4ae2a02f35f8c7e0825.zip | |
Link `std` statically in `rustc_driver`
| -rw-r--r-- | src/main.rs | 3 | ||||
| -rw-r--r-- | tests/compile-test.rs | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index c9af2138a72..c9853e53f3b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,6 @@ +// We need this feature as it changes `dylib` linking behavior and allows us to link to +// `rustc_driver`. +#![feature(rustc_private)] // warn on lints, that are included in `rust-lang/rust`s bootstrap #![warn(rust_2018_idioms, unused_lifetimes)] diff --git a/tests/compile-test.rs b/tests/compile-test.rs index c7080e5dcdc..64253514fbe 100644 --- a/tests/compile-test.rs +++ b/tests/compile-test.rs @@ -1,3 +1,6 @@ +// We need this feature as it changes `dylib` linking behavior and allows us to link to +// `rustc_driver`. +#![feature(rustc_private)] #![warn(rust_2018_idioms, unused_lifetimes)] #![allow(unused_extern_crates)] |
