Skip to content

Commit d45ff24

Browse files
committed
Depend on rustc_driver
1 parent b6951de commit d45ff24

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
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)