about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Wright <mikerite@lavabit.com>2019-11-11 06:22:50 +0200
committerMichael Wright <mikerite@lavabit.com>2019-11-11 06:22:50 +0200
commitc1fd75005e18e713940b05e95efc5dc32385ea8b (patch)
tree2821acd0aa526bbd0821034d0aef9e0064dd4f22
parent6f9c43ddc5e9ca7ce53f8736001411d8143ceaa7 (diff)
downloadrust-c1fd75005e18e713940b05e95efc5dc32385ea8b.tar.gz
rust-c1fd75005e18e713940b05e95efc5dc32385ea8b.zip
Fix breakage due to rust-lang/rust#65324
-rw-r--r--clippy_lints/src/lib.rs2
-rw-r--r--clippy_lints/src/write.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs
index dae1c429b7d..f96f2a805c2 100644
--- a/clippy_lints/src/lib.rs
+++ b/clippy_lints/src/lib.rs
@@ -31,6 +31,8 @@ extern crate rustc_index;
 #[allow(unused_extern_crates)]
 extern crate rustc_mir;
 #[allow(unused_extern_crates)]
+extern crate rustc_parse;
+#[allow(unused_extern_crates)]
 extern crate rustc_target;
 #[allow(unused_extern_crates)]
 extern crate rustc_typeck;
diff --git a/clippy_lints/src/write.rs b/clippy_lints/src/write.rs
index c20b6561cd4..f53f8f016de 100644
--- a/clippy_lints/src/write.rs
+++ b/clippy_lints/src/write.rs
@@ -2,9 +2,9 @@ use crate::utils::{snippet_with_applicability, span_lint, span_lint_and_sugg, sp
 use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
 use rustc::{declare_lint_pass, declare_tool_lint};
 use rustc_errors::Applicability;
+use rustc_parse::parser;
 use std::borrow::Cow;
 use syntax::ast::*;
-use syntax::parse::parser;
 use syntax::token;
 use syntax::tokenstream::TokenStream;
 use syntax_pos::{BytePos, Span};