Skip to content

Commit 9378def

Browse files
committed
Fix invalid_ref deprecation
1 parent 2c4b437 commit 9378def

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,7 @@ Released 2018-09-13
982982
[`integer_division`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_division
983983
[`into_iter_on_array`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_array
984984
[`into_iter_on_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
985+
[`invalid_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_ref
985986
[`invalid_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_regex
986987
[`invalid_upcast_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_upcast_comparisons
987988
[`items_after_statements`]: https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements

clippy_lints/src/deprecated_lints.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ declare_deprecated_lint! {
118118
///
119119
/// **Deprecation reason:** This lint has been superseded by the warn-by-default
120120
/// `invalid_value` rustc lint.
121-
declare_clippy_lint! {
121+
declare_deprecated_lint! {
122122
pub INVALID_REF,
123123
"superseded by rustc lint `invalid_value`"
124124
}

clippy_lints/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,10 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
431431
"clippy::unsafe_vector_initialization",
432432
"the replacement suggested by this lint had substantially different behavior",
433433
);
434+
store.register_removed(
435+
"clippy::invalid_ref",
436+
"superseded by rustc lint `invalid_value`",
437+
);
434438
// end deprecated lints, do not remove this comment, it’s used in `update_lints`
435439

436440
reg.register_late_lint_pass(box serde_api::SerdeAPI);

0 commit comments

Comments
 (0)