Skip to content

Commit cd76d57

Browse files
committed
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
1 parent 616b6d2 commit cd76d57

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clippy_utils/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ extern crate rustc_ast;
2222
extern crate rustc_ast_pretty;
2323
extern crate rustc_attr;
2424
extern crate rustc_data_structures;
25+
// The `rustc_driver` crate seems to be required in order to use the `rust_ast` crate.
26+
#[allow(unused_extern_crates)]
27+
extern crate rustc_driver;
2528
extern crate rustc_errors;
2629
extern crate rustc_hir;
2730
extern crate rustc_hir_typeck;

0 commit comments

Comments
 (0)