Skip to content

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

@seanmonstar

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.

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