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

Convert Into<ExitStatus> for ExitStatusError to From<ExitStatusError> for ExitStatus in std::process #114428

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

ChaiTRex
Copy link
Contributor

@ChaiTRex ChaiTRex commented Aug 3, 2023

Implementing suggestion from #84908 (comment):

I believe the impl on ExitStatusError should be

impl From<ExitStatusError> for ExitStatus

rather than

impl Into<ExitStatus> for ExitStatusError

(there is generally never anything implemented as Into first, because implementing From reflexively provides Into)

@rustbot
Copy link
Collaborator

rustbot commented Aug 3, 2023

r? @thomcc

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Aug 3, 2023
@thomcc
Copy link
Member

thomcc commented Aug 28, 2023

This needs libs-api FCP, and possibly ACP.

r? libs-api

@rustbot rustbot assigned BurntSushi and unassigned thomcc Aug 28, 2023
@thomcc
Copy link
Member

thomcc commented Aug 28, 2023

Rerolling because @BurntSushi doesn't review libs PRs (we should get a better system for this).

r? libs-api

@rustbot rustbot assigned m-ou-se and unassigned BurntSushi Aug 28, 2023
@dtolnay dtolnay assigned dtolnay and unassigned m-ou-se Sep 28, 2023
Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Thanks!

ExitStatusError is unstable (#84908) so there should be no difference here to stable surface area of the standard library — I don't think an FCP is needed.

@dtolnay
Copy link
Member

dtolnay commented Sep 28, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Sep 28, 2023

📌 Commit 6acb415 has been approved by dtolnay

It is now in the queue for this repository.

@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 Sep 28, 2023
@bors
Copy link
Contributor

bors commented Sep 28, 2023

⌛ Testing commit 6acb415 with merge c01d8d2...

@bors
Copy link
Contributor

bors commented Sep 28, 2023

☀️ Test successful - checks-actions
Approved by: dtolnay
Pushing c01d8d2 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Sep 28, 2023
@bors bors merged commit c01d8d2 into rust-lang:master Sep 28, 2023
12 checks passed
@rustbot rustbot added this to the 1.74.0 milestone Sep 28, 2023
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (c01d8d2): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.3% [-0.3%, -0.3%] 3
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
3.3% [3.3%, 3.3%] 1
Regressions ❌
(secondary)
2.9% [2.9%, 2.9%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 3.3% [3.3%, 3.3%] 1

Cycles

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-4.7% [-5.5%, -2.2%] 7
All ❌✅ (primary) - - 0

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 630.726s -> 630.425s (-0.05%)
Artifact size: 317.32 MiB -> 317.28 MiB (-0.01%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants