Skip to content

Commit 35bc50f

Browse files
committed
Add missing rustc_private
1 parent 34aff74 commit 35bc50f

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/tools/rust-analyzer/crates/ide-assists/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@ expect-test = "1.4.0"
3434
test-utils.workspace = true
3535
test-fixture.workspace = true
3636

37+
[features]
38+
in-rust-tree = []
39+
3740
[lints]
3841
workspace = true

src/tools/rust-analyzer/crates/ide-assists/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
//! See also this post:
5959
//! <https://rust-analyzer.github.io/blog/2020/09/28/how-to-make-a-light-bulb.html>
6060
61+
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
62+
6163
mod assist_config;
6264
mod assist_context;
6365
#[cfg(test)]

src/tools/rust-analyzer/crates/mbe/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//! The tests for this functionality live in another crate:
77
//! `hir_def::macro_expansion_tests::mbe`.
88
9+
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
10+
911
#[cfg(not(feature = "in-rust-tree"))]
1012
extern crate ra_ap_rustc_lexer as rustc_lexer;
1113
#[cfg(feature = "in-rust-tree")]

0 commit comments

Comments
 (0)