deprecate extend_from_slice lint
This commit is contained in:
parent
e3605dd29b
commit
2fdb6e4d1a
5 changed files with 18 additions and 66 deletions
|
@ -4,6 +4,17 @@ macro_rules! declare_deprecated_lint {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/// **What it does:** Nothing. This lint has been deprecated.
|
||||
///
|
||||
/// **Deprecation reason:** This used to check for `Vec::extend`, which was slower than
|
||||
/// `Vec::extend_from_slice`. Thanks to specialization, this is no longer true.
|
||||
declare_deprecated_lint! {
|
||||
pub EXTEND_FROM_SLICE,
|
||||
"`.extend_from_slice(_)` is a faster way to extend a Vec by a slice"
|
||||
}
|
||||
|
||||
|
||||
/// **What it does:** Nothing. This lint has been deprecated.
|
||||
///
|
||||
/// **Deprecation reason:** This used to check for `Vec::as_slice`, which was unstable with good
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue