mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Fix invalid_ref deprecation
This commit is contained in:
parent
0b7e2376c8
commit
b50c13c578
3 changed files with 6 additions and 1 deletions
|
@ -982,6 +982,7 @@ Released 2018-09-13
|
||||||
[`integer_division`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_division
|
[`integer_division`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_division
|
||||||
[`into_iter_on_array`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_array
|
[`into_iter_on_array`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_array
|
||||||
[`into_iter_on_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
|
[`into_iter_on_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
|
||||||
|
[`invalid_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_ref
|
||||||
[`invalid_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_regex
|
[`invalid_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_regex
|
||||||
[`invalid_upcast_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_upcast_comparisons
|
[`invalid_upcast_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_upcast_comparisons
|
||||||
[`items_after_statements`]: https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
|
[`items_after_statements`]: https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
|
||||||
|
|
|
@ -118,7 +118,7 @@ declare_deprecated_lint! {
|
||||||
///
|
///
|
||||||
/// **Deprecation reason:** This lint has been superseded by the warn-by-default
|
/// **Deprecation reason:** This lint has been superseded by the warn-by-default
|
||||||
/// `invalid_value` rustc lint.
|
/// `invalid_value` rustc lint.
|
||||||
declare_clippy_lint! {
|
declare_deprecated_lint! {
|
||||||
pub INVALID_REF,
|
pub INVALID_REF,
|
||||||
"superseded by rustc lint `invalid_value`"
|
"superseded by rustc lint `invalid_value`"
|
||||||
}
|
}
|
||||||
|
|
|
@ -431,6 +431,10 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
|
||||||
"clippy::unsafe_vector_initialization",
|
"clippy::unsafe_vector_initialization",
|
||||||
"the replacement suggested by this lint had substantially different behavior",
|
"the replacement suggested by this lint had substantially different behavior",
|
||||||
);
|
);
|
||||||
|
store.register_removed(
|
||||||
|
"clippy::invalid_ref",
|
||||||
|
"superseded by rustc lint `invalid_value`",
|
||||||
|
);
|
||||||
// end deprecated lints, do not remove this comment, it’s used in `update_lints`
|
// end deprecated lints, do not remove this comment, it’s used in `update_lints`
|
||||||
|
|
||||||
reg.register_late_lint_pass(box serde_api::SerdeAPI);
|
reg.register_late_lint_pass(box serde_api::SerdeAPI);
|
||||||
|
|
Loading…
Reference in a new issue