Skip to content

Commit 6ad73f5

Browse files
committed
Depend on rustc_driver
1 parent c2c065c commit 6ad73f5

File tree

1 file changed

+4
-0
lines changed
  • src/tools/rust-analyzer/crates/rust-analyzer/src/bin

1 file changed

+4
-0
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/bin/main.rs

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
//! Based on cli flags, either spawns an LSP server, or runs a batch analysis
44
55
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
6+
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
7+
#[cfg(feature = "in-rust-tree")]
8+
#[allow(unused_extern_crates)]
9+
extern crate rustc_driver;
610

711
mod logger;
812
mod rustc_wrapper;

0 commit comments

Comments
 (0)