about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--build_system/build_backend.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/build_system/build_backend.rs b/build_system/build_backend.rs
index e434c36f992..d90111adf77 100644
--- a/build_system/build_backend.rs
+++ b/build_system/build_backend.rs
@@ -20,6 +20,8 @@ pub(crate) fn build_backend(
 
     let mut rustflags = rustflags_from_env("RUSTFLAGS");
 
+    rustflags.push("-Zallow-features=rustc_private".to_owned());
+
     if is_ci() {
         // Deny warnings on CI
         rustflags.push("-Dwarnings".to_owned());