Skip to content

[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

Merged
merged 1 commit into from
Jul 14, 2022
Merged

[box_collection]: raise warn for all std collections #9170

merged 1 commit into from
Jul 14, 2022

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
@@ -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
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