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 fe21ef4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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
2 changes: 1 addition & 1 deletion src/lintlist/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down

0 comments on commit fe21ef4

Please sign in to comment.