Skip to content

Commit 0ae7373

Browse files
committed
Try to fix feature gates
1 parent f52f2f9 commit 0ae7373

File tree

1 file changed

+3
-1
lines changed
  • crates/proc-macro-srv/src

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
//! rustc rather than `unstable`. (Although in general ABI compatibility is still an issue)…
1212
1313
#![cfg(any(feature = "sysroot-abi", rust_analyzer))]
14-
#![feature(proc_macro_internals, proc_macro_diagnostic, proc_macro_span, rustc_private)]
14+
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
15+
#![feature(proc_macro_internals, proc_macro_diagnostic, proc_macro_span)]
1516
#![warn(rust_2018_idioms, unused_lifetimes)]
1617
#![allow(unreachable_pub, internal_features)]
1718

1819
extern crate proc_macro;
20+
#[cfg(feature = "in-rust-tree")]
1921
extern crate rustc_driver as _;
2022

2123
mod dylib;

0 commit comments

Comments
 (0)