File tree Expand file tree Collapse file tree 5 files changed +8
-1
lines changed
src/tools/rust-analyzer/crates Expand file tree Collapse file tree 5 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 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) ]
67macro_rules! eprintln {
Original file line number Diff line number Diff line change @@ -30,3 +30,6 @@ profile.workspace = true
3030stdx.workspace = true
3131syntax.workspace = true
3232tt.workspace = true
33+
34+ [features ]
35+ in-rust-tree = []
Original file line number Diff line number Diff line change 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
2324mod semantics;
Original file line number Diff line number Diff line change 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) ]
1516macro_rules! eprintln {
Original file line number Diff line number Diff 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]
You can’t perform that action at this time.
0 commit comments