From 86821a1b90122d20f393ef7613caa09b002a0d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Tue, 27 Jan 2026 15:19:00 +0200 Subject: [PATCH] Fix linking of proc-macro-srv-cli --- crates/proc-macro-srv-cli/src/lib.rs | 5 +++++ crates/proc-macro-srv-cli/tests/legacy_json.rs | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/crates/proc-macro-srv-cli/src/lib.rs b/crates/proc-macro-srv-cli/src/lib.rs index 9e6f03bf46..8475c05ae8 100644 --- a/crates/proc-macro-srv-cli/src/lib.rs +++ b/crates/proc-macro-srv-cli/src/lib.rs @@ -2,5 +2,10 @@ //! //! This module exposes the server main loop and protocol format for integration testing. +#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))] + +#[cfg(feature = "in-rust-tree")] +extern crate rustc_driver as _; + #[cfg(feature = "sysroot-abi")] pub mod main_loop; diff --git a/crates/proc-macro-srv-cli/tests/legacy_json.rs b/crates/proc-macro-srv-cli/tests/legacy_json.rs index c0dbfd1679..562cf0c251 100644 --- a/crates/proc-macro-srv-cli/tests/legacy_json.rs +++ b/crates/proc-macro-srv-cli/tests/legacy_json.rs @@ -4,6 +4,10 @@ //! channels without needing to spawn the actual server and client processes. #![cfg(feature = "sysroot-abi")] +#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))] + +#[cfg(feature = "in-rust-tree")] +extern crate rustc_driver as _; mod common { pub(crate) mod utils;