Skip to content

Commit af32cea

Browse files
committed
Fix sysroot-abi build
1 parent 0bd115c commit af32cea

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • crates/proc-macro-srv/src

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
)]
2323
#![deny(deprecated_safe, clippy::undocumented_unsafe_blocks)]
2424

25+
#[cfg(not(feature = "in-rust-tree"))]
26+
extern crate proc_macro as rustc_proc_macro;
2527
#[cfg(feature = "in-rust-tree")]
2628
extern crate rustc_driver as _;
29+
#[cfg(feature = "in-rust-tree")]
2730
extern crate rustc_proc_macro;
2831

2932
#[cfg(not(feature = "in-rust-tree"))]

0 commit comments

Comments
 (0)