diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2023-11-14 18:07:02 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2023-11-14 18:07:02 +0200 |
| commit | 6ad73f5ee8bc25f89966b258400056d1f776760d (patch) | |
| tree | ba92b1ba66a83cdf54288ea2ee863c6755104fe7 | |
| parent | c2c065c3eab89a3828fc72d4fd45b70658ee08c7 (diff) | |
| download | rust-6ad73f5ee8bc25f89966b258400056d1f776760d.tar.gz rust-6ad73f5ee8bc25f89966b258400056d1f776760d.zip | |
Depend on rustc_driver
| -rw-r--r-- | src/tools/rust-analyzer/crates/rust-analyzer/src/bin/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/bin/main.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/bin/main.rs index 9748990b7a3..a7d0a0b0dfc 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/src/bin/main.rs +++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/bin/main.rs @@ -3,6 +3,10 @@ //! Based on cli flags, either spawns an LSP server, or runs a batch analysis #![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)] +#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))] +#[cfg(feature = "in-rust-tree")] +#[allow(unused_extern_crates)] +extern crate rustc_driver; mod logger; mod rustc_wrapper; |
