Skip to content
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

docs: Iterator adapters have unspecified results after a panic #67564

Merged
merged 1 commit into from
Dec 30, 2019

Conversation

Mark-Simulacrum
Copy link
Member

Fixes #58170.

That issue also has rough consensus from 3 members of the library team for this being the behavior we would like to specify.

@rust-highfive
Copy link
Collaborator

r? @LukasKalbertodt

(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 Dec 23, 2019
Copy link
Member

@LukasKalbertodt LukasKalbertodt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. For the record, I also agree that this is the behavior we want (i.e. we do not want to promise anything beyond memory safety).

I'm not sure if I should already r+ this one or if we need to get rfcbot involved? I guess this is a small enough change to directly merge, but I am not entirely sure and don't want to screw up my first assigned review. Soo... @alexcrichton: can I r+? @bors rollup is probably the best command here?

@Mark-Simulacrum
Copy link
Member Author

You'll want r+ rollup as the arguments to bors, rather than just rollup.

I personally don't think we need an FCP here but happy with one as well.

@Mark-Simulacrum Mark-Simulacrum added the T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. label Dec 24, 2019
@LukasKalbertodt
Copy link
Member

@bors r+ rollup

I decided to simply merge this now. Lib team members already agreed and this is backwards-compatible since we never promised anything. No need to get everyone involved.

@bors
Copy link
Contributor

bors commented Dec 29, 2019

📌 Commit 65e3660 has been approved by LukasKalbertodt

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 29, 2019
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Dec 30, 2019
… r=LukasKalbertodt

docs: Iterator adapters have unspecified results after a panic

Fixes rust-lang#58170.

That issue also has rough consensus from 3 members of the library team for this being the behavior we would like to specify.
bors added a commit that referenced this pull request Dec 30, 2019
Rollup of 10 pull requests

Successful merges:

 - #64273 (Stabilize attribute macros on inline modules)
 - #67287 (typeck: note other end-point when checking range pats)
 - #67564 (docs: Iterator adapters have unspecified results after a panic)
 - #67622 (Some keyword documentation.)
 - #67657 (Clean up const-hack PRs now that const if / match exist.)
 - #67677 (resolve: Minor cleanup of duplicate macro reexports)
 - #67687 (Do not ICE on lifetime error involving closures)
 - #67698 (Move reachable_set and diagnostic_items to librustc_passes.)
 - #67701 (tidy: Enforce formatting rather than just check it if `--bless` is specified)
 - #67715 (Typo fix)

Failed merges:

r? @ghost
@bors bors merged commit 65e3660 into rust-lang:master Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

What degree of panic safety is expected for iterator adapters?
4 participants