mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
Add in-rust-tree feature to hir-expand
This commit is contained in:
parent
c83d8cf584
commit
4c94e69115
7 changed files with 11 additions and 4 deletions
|
@ -54,7 +54,7 @@ test-utils.workspace = true
|
||||||
test-fixture.workspace = true
|
test-fixture.workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
in-rust-tree = []
|
in-rust-tree = ["hir-expand/in-rust-tree"]
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
|
@ -37,5 +37,8 @@ parser.workspace = true
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
expect-test = "1.4.0"
|
expect-test = "1.4.0"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
in-rust-tree = ["syntax/in-rust-tree"]
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
//! Specifically, it implements a concept of `MacroFile` -- a file whose syntax
|
//! Specifically, it implements a concept of `MacroFile` -- a file whose syntax
|
||||||
//! tree originates not from the text of some `FileId`, but from some macro
|
//! tree originates not from the text of some `FileId`, but from some macro
|
||||||
//! expansion.
|
//! expansion.
|
||||||
|
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
||||||
#![warn(rust_2018_idioms, unused_lifetimes)]
|
#![warn(rust_2018_idioms, unused_lifetimes)]
|
||||||
|
|
||||||
pub mod attrs;
|
pub mod attrs;
|
||||||
|
|
|
@ -61,7 +61,7 @@ test-utils.workspace = true
|
||||||
test-fixture.workspace = true
|
test-fixture.workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
in-rust-tree = []
|
in-rust-tree = ["hir-expand/in-rust-tree"]
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
|
@ -33,7 +33,7 @@ tt.workspace = true
|
||||||
span.workspace = true
|
span.workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
in-rust-tree = []
|
in-rust-tree = ["hir-expand/in-rust-tree"]
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
|
@ -28,5 +28,8 @@ tt.workspace = true
|
||||||
vfs-notify.workspace = true
|
vfs-notify.workspace = true
|
||||||
vfs.workspace = true
|
vfs.workspace = true
|
||||||
|
|
||||||
|
[features]
|
||||||
|
in-rust-tree = ["hir-expand/in-rust-tree"]
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
|
@ -94,6 +94,7 @@ in-rust-tree = [
|
||||||
"hir/in-rust-tree",
|
"hir/in-rust-tree",
|
||||||
"hir-def/in-rust-tree",
|
"hir-def/in-rust-tree",
|
||||||
"hir-ty/in-rust-tree",
|
"hir-ty/in-rust-tree",
|
||||||
|
"load-cargo/in-rust-tree",
|
||||||
]
|
]
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
|
|
Loading…
Reference in a new issue