Skip to content

Return iterator must not capture lifetimes in Rust 2024 #13629

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
Nov 3, 2024

Conversation

samueltardieu
Copy link
Contributor

In Rust 2024, by default lifetimes will be captured which does not reflect the reality since we return an iterator of DefId which do not capture the input parameters.

changelog: none

In Rust 2024, by default lifetimes will be captured which does not
reflect the reality since we return an iterator of `DefId` which do
not capture the input parameters.
@rustbot
Copy link
Collaborator

rustbot commented Oct 30, 2024

r? @dswij

rustbot has assigned @dswij.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 30, 2024
@samueltardieu samueltardieu mentioned this pull request Oct 30, 2024
4 tasks
@samueltardieu
Copy link
Contributor Author

r? @flip1995

@rustbot rustbot assigned flip1995 and unassigned dswij Nov 3, 2024
@flip1995
Copy link
Member

flip1995 commented Nov 3, 2024

@bors r+

Thanks!

@bors
Copy link
Contributor

bors commented Nov 3, 2024

📌 Commit 540e116 has been approved by flip1995

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Nov 3, 2024

⌛ Testing commit 540e116 with merge 040129b...

@bors
Copy link
Contributor

bors commented Nov 3, 2024

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 040129b to master...

@bors bors merged commit 040129b into rust-lang:master Nov 3, 2024
8 checks passed
@samueltardieu samueltardieu deleted the push-nwukowumrvsn branch November 3, 2024 16:17
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.

5 participants