File tree 3 files changed +7
-0
lines changed
src/tools/rust-analyzer/crates
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -34,5 +34,8 @@ expect-test = "1.4.0"
34
34
test-utils.workspace = true
35
35
test-fixture.workspace = true
36
36
37
+ [features ]
38
+ in-rust-tree = []
39
+
37
40
[lints ]
38
41
workspace = true
Original file line number Diff line number Diff line change 58
58
//! See also this post:
59
59
//! <https://rust-analyzer.github.io/blog/2020/09/28/how-to-make-a-light-bulb.html>
60
60
61
+ #![ cfg_attr( feature = "in-rust-tree" , feature( rustc_private) ) ]
62
+
61
63
mod assist_config;
62
64
mod assist_context;
63
65
#[ cfg( test) ]
Original file line number Diff line number Diff line change 6
6
//! The tests for this functionality live in another crate:
7
7
//! `hir_def::macro_expansion_tests::mbe`.
8
8
9
+ #![ cfg_attr( feature = "in-rust-tree" , feature( rustc_private) ) ]
10
+
9
11
#[ cfg( not( feature = "in-rust-tree" ) ) ]
10
12
extern crate ra_ap_rustc_lexer as rustc_lexer;
11
13
#[ cfg( feature = "in-rust-tree" ) ]
You can’t perform that action at this time.
0 commit comments