Skip to content

Conversation

Rqnsom
Copy link
Contributor

@Rqnsom Rqnsom commented Jul 13, 2022

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

So far, only [Vec, String, Hashmap] were considered.

Extend collection checklist for this lint with:
- HashSet
- VecDeque
- LinkedList
- BTreeMap
- BTreeSet
- BinaryHeap
@rust-highfive
Copy link

r? @Jarcho

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jul 13, 2022
fn test1(foo: Box<Vec<bool>>) {}

fn test2(foo: Box<dyn Fn(Vec<u32>)>) {
// pass if #31 is fixed
Copy link
Contributor Author

@Rqnsom Rqnsom Jul 13, 2022

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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.

@Jarcho
Copy link
Contributor

Jarcho commented Jul 14, 2022

Thank you.

@bors r+

@bors
Copy link
Contributor

bors commented Jul 14, 2022

📌 Commit 467e1b2 has been approved by Jarcho

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jul 14, 2022

⌛ Testing commit 467e1b2 with merge 0f5a38f...

@bors
Copy link
Contributor

bors commented Jul 14, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Jarcho
Pushing 0f5a38f to master...

@bors bors merged commit 0f5a38f into rust-lang:master Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants