From fe21ef4e8bf299c2bebc2d8ec7454ca13ba24f9f Mon Sep 17 00:00:00 2001 From: Krishna Sai Veera Reddy Date: Mon, 6 Jan 2020 17:33:28 -0800 Subject: [PATCH] Prevent doc-tests from running and fix lint description --- clippy_lints/src/atomic_ordering.rs | 8 ++++---- src/lintlist/mod.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clippy_lints/src/atomic_ordering.rs b/clippy_lints/src/atomic_ordering.rs index 3e7cd967f..fe06c63a5 100644 --- a/clippy_lints/src/atomic_ordering.rs +++ b/clippy_lints/src/atomic_ordering.rs @@ -1,10 +1,10 @@ use crate::utils::{match_def_path, span_help_and_lint}; use if_chain::if_chain; use rustc::declare_lint_pass; -use rustc::hir::def_id::DefId; -use rustc::hir::*; use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass}; use rustc::ty; +use rustc_hir::def_id::DefId; +use rustc_hir::*; use rustc_session::declare_tool_lint; declare_clippy_lint! { @@ -17,7 +17,7 @@ declare_clippy_lint! { /// **Known problems:** None. /// /// **Example:** - /// ```rust,ignore + /// ```rust,no_run /// # use std::sync::atomic::{AtomicBool, Ordering}; /// /// let x = AtomicBool::new(true); @@ -30,7 +30,7 @@ declare_clippy_lint! { /// ``` pub INVALID_ATOMIC_ORDERING, correctness, - "lint usage of invalid atomic ordering in atomic load/store calls" + "usage of invalid atomic ordering in atomic load/store calls" } declare_lint_pass!(AtomicOrdering => [INVALID_ATOMIC_ORDERING]); diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs index a69d090ca..e079fead5 100644 --- a/src/lintlist/mod.rs +++ b/src/lintlist/mod.rs @@ -836,7 +836,7 @@ pub const ALL_LINTS: [Lint; 345] = [ Lint { name: "invalid_atomic_ordering", group: "correctness", - desc: "lint usage of invalid atomic ordering in atomic load/store calls", + desc: "usage of invalid atomic ordering in atomic load/store calls", deprecation: None, module: "atomic_ordering", },