Skip to content

Unimplement fmt::Debug for c_void - #160115

Open
Jules-Bertholet wants to merge 1 commit into
rust-lang:mainfrom
Jules-Bertholet:no-c-void-debug
Open

Unimplement fmt::Debug for c_void#160115
Jules-Bertholet wants to merge 1 commit into
rust-lang:mainfrom
Jules-Bertholet:no-c-void-debug

Conversation

@Jules-Bertholet

@Jules-Bertholet Jules-Bertholet commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Taking a shared reference to c_void is never correct, and this impl should never have been added.

This is obviously a breaking change, so needs crater and FCP.

@rustbot label T-libs-api needs-fcp A-FFI

See also #159986, #159935

@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 Jul 29, 2026
@rustbot

rustbot commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

r? @Darksonn

rustbot has assigned @Darksonn.
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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 12 candidates
  • Random selection from 7 candidates

@rustbot rustbot added A-FFI Area: Foreign function interface (FFI) needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Jul 29, 2026
@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors try

@rust-bors

rust-bors Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

⌛ Trying commit 03942bc with merge 82b0460

To cancel the try build, run the command @bors try cancel.

Workflow: https://github.com/rust-lang/rust/actions/runs/30416422288

rust-bors Bot pushed a commit that referenced this pull request Jul 29, 2026
@rust-log-analyzer

This comment has been minimized.

Taking a shared reference to `c_void` is always wrong.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-FFI Area: Foreign function interface (FFI) needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. 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. 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.

5 participants