Merge pull request #497 from cesarb/ringbuf

Mention VecDeque in linkedlist lint
This commit is contained in:
Manish Goregaokar 2015-12-12 19:22:55 -05:00
commit 76049a7cd0

View file

@ -26,7 +26,7 @@ pub struct TypePass;
/// **Example:** `struct X { values: Box<Vec<Foo>> }`
declare_lint!(pub BOX_VEC, Warn,
"usage of `Box<Vec<T>>`, vector elements are already on the heap");
/// **What it does:** This lint checks for usage of any `LinkedList`, suggesting to use a `Vec` or `RingBuf`.
/// **What it does:** This lint checks for usage of any `LinkedList`, suggesting to use a `Vec` or a `VecDeque` (formerly called `RingBuf`).
///
/// **Why is this bad?** Gankro says:
///