Skip to content

Commit 80095aa

Browse files
committed
Add extern crate rustc_driver to proc-macro-srv-cli
1 parent 9a9ba92 commit 80095aa

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/tools/rust-analyzer/crates/proc-macro-srv-cli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ name = "rust-analyzer-proc-macro-srv"
2222
path = "src/main.rs"
2323

2424
[lints]
25-
workspace = true
25+
workspace = true

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

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
//! A standalone binary for `proc-macro-srv`.
22
//! Driver for proc macro server
3+
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
4+
#[cfg(feature = "in-rust-tree")]
5+
extern crate rustc_driver as _;
6+
37
use std::io;
48

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

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

+1-2
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)