Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/hir-def/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test-utils.workspace = true
test-fixture.workspace = true

[features]
in-rust-tree = []
in-rust-tree = ["hir-expand/in-rust-tree"]

[lints]
workspace = true
3 changes: 3 additions & 0 deletions crates/hir-expand/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@ parser.workspace = true
[dev-dependencies]
expect-test = "1.4.0"

[features]
in-rust-tree = ["syntax/in-rust-tree"]

[lints]
workspace = true
2 changes: 1 addition & 1 deletion crates/hir-expand/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! Specifically, it implements a concept of `MacroFile` -- a file whose syntax
//! tree originates not from the text of some `FileId`, but from some macro
//! expansion.
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
#![warn(rust_2018_idioms, unused_lifetimes)]

pub mod attrs;
Expand Down
2 changes: 1 addition & 1 deletion crates/hir-ty/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ test-utils.workspace = true
test-fixture.workspace = true

[features]
in-rust-tree = []
in-rust-tree = ["hir-expand/in-rust-tree"]

[lints]
workspace = true
2 changes: 1 addition & 1 deletion crates/hir/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ tt.workspace = true
span.workspace = true

[features]
in-rust-tree = []
in-rust-tree = ["hir-expand/in-rust-tree"]

[lints]
workspace = true
3 changes: 3 additions & 0 deletions crates/load-cargo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ tt.workspace = true
vfs-notify.workspace = true
vfs.workspace = true

[features]
in-rust-tree = ["hir-expand/in-rust-tree"]

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/rust-analyzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ in-rust-tree = [
"hir/in-rust-tree",
"hir-def/in-rust-tree",
"hir-ty/in-rust-tree",
"load-cargo/in-rust-tree",
]

[lints]
Expand Down