From cd76d574e444197d692d8652c27f869038430af1 Mon Sep 17 00:00:00 2001 From: Philipp Krones Date: Thu, 12 Jan 2023 19:12:06 +0100 Subject: [PATCH] Also add rustc_driver to clippy_utils I'm not sure why this is necessary. It worked without this for me locally, but this fails in CI. The same was done in clippy_dev --- clippy_utils/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clippy_utils/src/lib.rs b/clippy_utils/src/lib.rs index 991be9727c21..7a4a9036dd36 100644 --- a/clippy_utils/src/lib.rs +++ b/clippy_utils/src/lib.rs @@ -22,6 +22,9 @@ extern crate rustc_ast; extern crate rustc_ast_pretty; extern crate rustc_attr; extern crate rustc_data_structures; +// The `rustc_driver` crate seems to be required in order to use the `rust_ast` crate. +#[allow(unused_extern_crates)] +extern crate rustc_driver; extern crate rustc_errors; extern crate rustc_hir; extern crate rustc_hir_typeck;