diff --git a/clippy_lints/src/atomic_ordering.rs b/clippy_lints/src/atomic_ordering.rs index 3e7cd967f06d..fe06c63a553c 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 a69d090ca378..e079fead5720 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", },