Skip to content

Commit 837d904

Browse files
committed
Link std statically in rustc_driver
1 parent 917ad03 commit 837d904

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// We need this feature as it changes `dylib` linking behavior and allows us to link to
2+
// `rustc_driver`.
3+
#![feature(rustc_private)]
14
// warn on lints, that are included in `rust-lang/rust`s bootstrap
25
#![warn(rust_2018_idioms, unused_lifetimes)]
36

tests/compile-test.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// We need this feature as it changes `dylib` linking behavior and allows us to link to
2+
// `rustc_driver`.
3+
#![feature(rustc_private)]
14
#![warn(rust_2018_idioms, unused_lifetimes)]
25
#![allow(unused_extern_crates)]
36

0 commit comments

Comments
 (0)