Skip to content

Commit f8982be

Browse files
committed
Add extern crate rustc_driver to proc-macro-srv-cli
1 parent cb051e4 commit f8982be

File tree

2 files changed

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

2 files changed

+4
-2
lines changed

src/tools/rust-analyzer/crates/proc-macro-srv-cli/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
//! A standalone binary for `proc-macro-srv`.
22
//! Driver for proc macro server
3+
#[cfg(feature = "in-rust-tree")]
4+
extern crate rustc_driver as _;
5+
36
use std::io;
47

58
fn main() -> std::io::Result<()> {

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
#![warn(rust_2018_idioms, unused_lifetimes)]
66
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
77
#[cfg(feature = "in-rust-tree")]
8-
#[allow(unused_extern_crates)]
9-
extern crate rustc_driver;
8+
extern crate rustc_driver as _;
109

1110
mod logger;
1211
mod rustc_wrapper;

0 commit comments

Comments
 (0)