CoercePointee
doesn't tightly enforce the restriction to #[repr(transparent)]
-only wrappers, if other proc-macros are involved
#135206
Labels
C-bug
Category: This is a bug.
F-derive_coerce_pointee
Feature: RFC 3621's oft-renamed implementation
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Define a proc macro that strips the
#[repr(transparent)]
.use it
compiles successfully, expands to
As far as I understand the RFC and intent, the intended stabilization should only stabilize allowing these (
CoerceUnsized
&DispatchFromDyn
impls) to be generated for#[repr(transparent)]
types.@rustbot label F-derive_coerce_pointee
The text was updated successfully, but these errors were encountered: