From 1e117938cf12e59eaac89482e611ee4d95e2a953 Mon Sep 17 00:00:00 2001 From: Krishna Sai Veera Reddy Date: Mon, 10 Feb 2020 19:37:25 -0800 Subject: [PATCH] Remove unnecessary imports from documentation --- CONTRIBUTING.md | 2 +- doc/adding_lints.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4a828051185f..68eb64c94b6d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -110,7 +110,7 @@ It's worth noting that the majority of `clippy_lints/src/lib.rs` is autogenerate ```rust // ./clippy_lints/src/else_if_without_else.rs -use rustc::lint::{EarlyLintPass, LintArray, LintPass}; +use rustc_lint::{EarlyLintPass, EarlyContext}; // ... diff --git a/doc/adding_lints.md b/doc/adding_lints.md index 99178c2d75b9..e1f4ce016c5c 100644 --- a/doc/adding_lints.md +++ b/doc/adding_lints.md @@ -138,7 +138,7 @@ at `clippy_lints/src/foo_functions.rs`. That's the crate where all the lint code is. This file has already imported some initial things we will need: ```rust -use rustc::lint::{LintArray, LintPass, EarlyLintPass, EarlyContext}; +use rustc_lint::{EarlyLintPass, EarlyContext}; use rustc_session::{declare_lint_pass, declare_tool_lint}; use syntax::ast::*; ```