Skip to content

Commit f0e566b

Browse files
Merge pull request #21535 from lnicola/proc-macro-srv-cli-link
minor: Fix linking of proc-macro-srv-cli
2 parents 1055f29 + 86821a1 commit f0e566b

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

crates/proc-macro-srv-cli/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22
//!
33
//! This module exposes the server main loop and protocol format for integration testing.
44
5+
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
6+
7+
#[cfg(feature = "in-rust-tree")]
8+
extern crate rustc_driver as _;
9+
510
#[cfg(feature = "sysroot-abi")]
611
pub mod main_loop;

crates/proc-macro-srv-cli/tests/legacy_json.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
//! channels without needing to spawn the actual server and client processes.
55
66
#![cfg(feature = "sysroot-abi")]
7+
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
8+
9+
#[cfg(feature = "in-rust-tree")]
10+
extern crate rustc_driver as _;
711

812
mod common {
913
pub(crate) mod utils;

0 commit comments

Comments
 (0)