-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[box_collection
]: raise warn for all std collections
#9170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
So far, only [Vec, String, Hashmap] were considered. Extend collection checklist for this lint with: - HashSet - VecDeque - LinkedList - BTreeMap - BTreeSet - BinaryHeap
r? @Jarcho (rust-highfive has picked a reviewer for you, use r? to override) |
@@ -18,7 +18,7 @@ fn test_macro() { | |||
boxit!(Vec::new(), Vec<u8>); | |||
} | |||
|
|||
fn test(foo: Box<Vec<bool>>) {} | |||
fn test1(foo: Box<Vec<bool>>) {} | |||
|
|||
fn test2(foo: Box<dyn Fn(Vec<u32>)>) { | |||
// pass if #31 is fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// pass if #31 is fixed
Not sure what this means here. Is it referring to issue #31?
Because test2 is passing, so maybe comment is now obsolete?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks like the reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can remove that comment within some future commit.
Thank you. @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
So far, only [
Vec
,String
,HashMap
] were considered.Extend collection checklist for this lint with:
HashSet
VecDeque
LinkedList
BTreeMap
BTreeSet
BinaryHeap
changelog: [
box_collection
]: raise warn for all std collections