Skip to content

Commit c2c065c

Browse files
committed
Add missing rustc_private features
1 parent 636a6f7 commit c2c065c

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

src/tools/rust-analyzer/crates/hir-ty/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! The type system. We currently use this to infer types for completion, hover
22
//! information and various assists.
33
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
4+
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
45

56
#[allow(unused)]
67
macro_rules! eprintln {

src/tools/rust-analyzer/crates/hir/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ profile.workspace = true
3030
stdx.workspace = true
3131
syntax.workspace = true
3232
tt.workspace = true
33+
34+
[features]
35+
in-rust-tree = []

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

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
//! <https://www.tedinski.com/2018/02/06/system-boundaries.html>.
1919
2020
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
21+
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
2122
#![recursion_limit = "512"]
2223

2324
mod semantics;

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
//! in this crate.
99
1010
// For proving that RootDatabase is RefUnwindSafe.
11-
#![recursion_limit = "128"]
1211
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
12+
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
13+
#![recursion_limit = "128"]
1314

1415
#[allow(unused)]
1516
macro_rules! eprintln {

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

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ in-rust-tree = [
9797
"syntax/in-rust-tree",
9898
"parser/in-rust-tree",
9999
"rustc-dependencies/in-rust-tree",
100+
"hir/in-rust-tree",
100101
"hir-def/in-rust-tree",
101102
"hir-ty/in-rust-tree",
102103
]

0 commit comments

Comments
 (0)