Skip to content

Commit ee38c89

Browse files
flip1995thomcc
authored andcommitted
Deprecate clippy::invalid_atomic_ordering
1 parent ace2c5d commit ee38c89

21 files changed

+21
-1424
lines changed

src/tools/clippy/clippy_lints/src/atomic_ordering.rs

-229
This file was deleted.

src/tools/clippy/clippy_lints/src/deprecated_lints.rs

+9
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,12 @@ declare_deprecated_lint! {
166166
pub PANIC_PARAMS,
167167
"this lint has been uplifted to rustc and is now called `panic_fmt`"
168168
}
169+
170+
declare_deprecated_lint! {
171+
/// **What it does:** Nothing. This lint has been deprecated.
172+
///
173+
/// **Deprecation reason:** This lint has been uplifted to rustc and is now called
174+
/// `invalid_atomic_ordering`.
175+
pub INVALID_ATOMIC_ORDERING,
176+
"this lint has been uplifted to rustc and is now called `invalid_atomic_ordering`"
177+
}

src/tools/clippy/clippy_lints/src/lib.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ mod asm_syntax;
160160
mod assertions_on_constants;
161161
mod assign_ops;
162162
mod async_yields_async;
163-
mod atomic_ordering;
164163
mod attrs;
165164
mod await_holding_invalid;
166165
mod bit_mask;
@@ -496,6 +495,10 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
496495
"clippy::panic_params",
497496
"this lint has been uplifted to rustc and is now called `panic_fmt`",
498497
);
498+
store.register_removed(
499+
"clippy::invalid_atomic_ordering",
500+
"this lint has been uplifted to rustc and is now called `invalid_atomic_ordering`",
501+
);
499502
// end deprecated lints, do not remove this comment, it’s used in `update_lints`
500503

501504
// begin register lints, do not remove this comment, it’s used in `update_lints`
@@ -528,7 +531,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
528531
&assign_ops::ASSIGN_OP_PATTERN,
529532
&assign_ops::MISREFACTORED_ASSIGN_OP,
530533
&async_yields_async::ASYNC_YIELDS_ASYNC,
531-
&atomic_ordering::INVALID_ATOMIC_ORDERING,
532534
&attrs::BLANKET_CLIPPY_RESTRICTION_LINTS,
533535
&attrs::DEPRECATED_CFG_ATTR,
534536
&attrs::DEPRECATED_SEMVER,
@@ -1156,7 +1158,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11561158
store.register_late_pass(|| box floating_point_arithmetic::FloatingPointArithmetic);
11571159
store.register_early_pass(|| box as_conversions::AsConversions);
11581160
store.register_late_pass(|| box let_underscore::LetUnderscore);
1159-
store.register_late_pass(|| box atomic_ordering::AtomicOrdering);
11601161
store.register_early_pass(|| box single_component_path_imports::SingleComponentPathImports);
11611162
let max_fn_params_bools = conf.max_fn_params_bools;
11621163
let max_struct_bools = conf.max_struct_bools;
@@ -1351,7 +1352,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13511352
LintId::of(&assign_ops::ASSIGN_OP_PATTERN),
13521353
LintId::of(&assign_ops::MISREFACTORED_ASSIGN_OP),
13531354
LintId::of(&async_yields_async::ASYNC_YIELDS_ASYNC),
1354-
LintId::of(&atomic_ordering::INVALID_ATOMIC_ORDERING),
13551355
LintId::of(&attrs::BLANKET_CLIPPY_RESTRICTION_LINTS),
13561356
LintId::of(&attrs::DEPRECATED_CFG_ATTR),
13571357
LintId::of(&attrs::DEPRECATED_SEMVER),
@@ -1823,7 +1823,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
18231823
store.register_group(true, "clippy::correctness", Some("clippy_correctness"), vec![
18241824
LintId::of(&approx_const::APPROX_CONSTANT),
18251825
LintId::of(&async_yields_async::ASYNC_YIELDS_ASYNC),
1826-
LintId::of(&atomic_ordering::INVALID_ATOMIC_ORDERING),
18271826
LintId::of(&attrs::DEPRECATED_SEMVER),
18281827
LintId::of(&attrs::MISMATCHED_TARGET_OS),
18291828
LintId::of(&attrs::USELESS_ATTRIBUTE),

src/tools/clippy/tests/ui/atomic_ordering_bool.rs

-25
This file was deleted.

src/tools/clippy/tests/ui/atomic_ordering_bool.stderr

-35
This file was deleted.

0 commit comments

Comments
 (0)