Skip to content

Remove unnecessary unsafe block in process_unix - #88286

Merged
bors merged 1 commit into
rust-lang:masterfrom
LeSeulArtichaut:unnecessary-unsafe-block-std
Oct 4, 2021
Merged

Remove unnecessary unsafe block in process_unix#88286
bors merged 1 commit into
rust-lang:masterfrom
LeSeulArtichaut:unnecessary-unsafe-block-std

Conversation

@LeSeulArtichaut

Copy link
Copy Markdown
Contributor

Because it's nested under this unsafe fn!

This block isn't detected as unnecessary because of a bug in the compiler: #88260.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @yaahc

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

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 24, 2021
@rust-log-analyzer

This comment has been minimized.

@LeSeulArtichaut
LeSeulArtichautforce-pushed the unnecessary-unsafe-block-std branch from 620b98f to 22112e4CompareAugust 24, 2021 13:32
@inquisitivecrystalinquisitivecrystal added the T-libs Relevant to the library team, which will review and decide on the PR/issue. label Aug 24, 2021
@LeSeulArtichautLeSeulArtichaut added the C-cleanup Category: PRs that clean code up or issues documenting cleanup. label Aug 25, 2021
@JohnCSimonJohnCSimon added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 13, 2021

@dtolnaydtolnay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@dtolnay

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Oct 3, 2021

Copy link
Copy Markdown
Collaborator

📌 Commit 22112e4 has been approved by dtolnay

@borsbors 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 Oct 3, 2021
@dtolnaydtolnay assigned dtolnay and unassigned yaahcOct 3, 2021
Manishearth added a commit to Manishearth/rust that referenced this pull request Oct 4, 2021
…block-std, r=dtolnay
Remove unnecessary unsafe block in `process_unix`
Because it's nested under this unsafe fn!
This block isn't detected as unnecessary because of a bug in the compiler: rust-lang#88260.
This was referenced Oct 4, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 4, 2021
…arth
Rollup of 14 pull requests
Successful merges:
- rust-lang#86434 (Add `Ipv6Addr::is_benchmarking`)
- rust-lang#86828 (const fn for option copied, take & replace)
- rust-lang#87679 (BTree: refine some comments)
- rust-lang#87910 (Mark unsafe methods NonZero*::unchecked_(add|mul) as const.)
- rust-lang#88286 (Remove unnecessary unsafe block in `process_unix`)
- rust-lang#88305 (Manual Debug for Unix ExitCode ExitStatus ExitStatusError)
- rust-lang#88353 (Partially stabilize `array_methods`)
- rust-lang#88370 (Add missing `# Panics` section to `Vec` method)
- rust-lang#88481 (Remove some feature gates)
- rust-lang#89138 (Fix link in Ipv6Addr::to_ipv4 docs)
- rust-lang#89401 (Add truncate note to Vec::resize)
- rust-lang#89467 (Fix typos in rustdoc/lints)
- rust-lang#89472 (Only register `WSACleanup` if `WSAStartup` is actually ever called)
- rust-lang#89505 (Add regression test for spurious const error with NLL)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit f2ec71f into rust-lang:masterOct 4, 2021
@rustbotrustbot added this to the 1.57.0 milestone Oct 4, 2021
@LeSeulArtichaut
LeSeulArtichaut deleted the unnecessary-unsafe-block-std branch October 4, 2021 13:41
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cleanupCategory: PRs that clean code up or issues documenting cleanup.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-libsRelevant 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.

9 participants

@LeSeulArtichaut@rust-highfive@rust-log-analyzer@dtolnay@bors@JohnCSimon@yaahc@inquisitivecrystal@rustbot