mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Set the in-rust-tree
` feature for all rust-analyzer{-proc-macro-srv} steps
This commit is contained in:
parent
d3d7c4b722
commit
b83f487d10
4 changed files with 11 additions and 4 deletions
|
@ -27,5 +27,8 @@ span.workspace = true
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
test-utils.workspace = true
|
test-utils.workspace = true
|
||||||
|
|
||||||
|
[features]
|
||||||
|
in-rust-tree = ["parser/in-rust-tree", "syntax/in-rust-tree"]
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
|
@ -14,6 +14,8 @@ proc-macro-api.workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
sysroot-abi = ["proc-macro-srv/sysroot-abi"]
|
sysroot-abi = ["proc-macro-srv/sysroot-abi"]
|
||||||
|
in-rust-tree = ["proc-macro-srv/in-rust-tree"]
|
||||||
|
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "rust-analyzer-proc-macro-srv"
|
name = "rust-analyzer-proc-macro-srv"
|
||||||
|
|
|
@ -37,7 +37,8 @@ expect-test = "1.4.0"
|
||||||
proc-macro-test.path = "./proc-macro-test"
|
proc-macro-test.path = "./proc-macro-test"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
sysroot-abi = ["proc-macro-test/sysroot-abi"]
|
sysroot-abi = []
|
||||||
|
in-rust-tree = ["mbe/in-rust-tree"]
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
|
@ -11,11 +11,12 @@
|
||||||
//! rustc rather than `unstable`. (Although in general ABI compatibility is still an issue)…
|
//! rustc rather than `unstable`. (Although in general ABI compatibility is still an issue)…
|
||||||
|
|
||||||
#![cfg(any(feature = "sysroot-abi", rust_analyzer))]
|
#![cfg(any(feature = "sysroot-abi", rust_analyzer))]
|
||||||
#![feature(proc_macro_internals, proc_macro_diagnostic, proc_macro_span)]
|
#![feature(proc_macro_internals, proc_macro_diagnostic, proc_macro_span, rustc_private)]
|
||||||
#![warn(rust_2018_idioms, unused_lifetimes)]
|
#![warn(rust_2018_idioms, unused_lifetimes)]
|
||||||
#![allow(unreachable_pub, internal_features)]
|
#![allow(unreachable_pub, internal_features)]
|
||||||
|
|
||||||
extern crate proc_macro;
|
extern crate proc_macro;
|
||||||
|
extern crate rustc_driver as _;
|
||||||
|
|
||||||
mod dylib;
|
mod dylib;
|
||||||
mod server;
|
mod server;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue