Skip to content

HTTP/2 Upgraded wrongly uses a transparent uninhabited type #3966

Closed

Description

@seanmonstar

As noted in rust-lang/rust#147588, the H2Upgraded type in hyper wrongly uses a repr(transparent) value on a stuct containing enum Neutered {}. It seems that this was making use of behavior of the current compiler that isn't specified, and would like to be changed.

That code should be refactored to no longer need such a repr(transparent) transmute.

Activity

  1. self-assigned this
    on Oct 21, 2025
  2. added
    C-bugCategory: bug. Something is wrong. This is bad!
    E-hardEffort: hard. Likely requires a deeper understanding of how hyper's internals work.
    A-http2Area: HTTP/2 specific.
    on Oct 21, 2025
  3. added a commit that references this issue on Nov 10, 2025
    58e0e7d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-http2Area: HTTP/2 specific.C-bugCategory: bug. Something is wrong. This is bad!E-hardEffort: hard. Likely requires a deeper understanding of how hyper's internals work.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions