Skip to content

Commit

Permalink
Prevent doc-tests from running and fix lint description
Browse files Browse the repository at this point in the history
  • Loading branch information
krishna-veerareddy committed Jan 7, 2020
1 parent 18060eb commit e5aa9d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clippy_lints/src/atomic_ordering.rs
Original file line number Diff line number Diff line change
@@ -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! {
Expand All @@ -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);
Expand All @@ -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]);
Expand Down

0 comments on commit e5aa9d1

Please sign in to comment.