You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracking Issue for transmute_generic_consts #109929
The feature gate for the issue is #![feature(transmute_generic_consts)].
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
[] Implement the RFC (cc @rust-lang/XXX -- can anyone write up mentoring
instructions?)
I don't think we should add many hacks to the current transmute check and don't believe that an implementation which does so should be stabilized. I would instead expect to also handle this as part of the BikeshedIntrinsicFrom trait.
I think the part of #106281 that actually constructed SizeSkeleton::Generic was effectively reverted by #122820, so I'm not sure that SizeSkeleton::Generic actually does anything currently? (i.e. it seems like it is never constructed)
(This is unrelated to #114009 whose change is also gated under this feature)
Activity
lcnr commentedon Apr 18, 2023
this feels very related to the work of the safe transmute working group, cc #99571
lcnr commentedon Apr 18, 2023
I don't think we should add many hacks to the current transmute check and don't believe that an implementation which does so should be stabilized. I would instead expect to also handle this as part of the
BikeshedIntrinsicFromtrait.dvdhrm commentedon Jul 24, 2023
FYI: The feature gate is called
transmute_generic_consts(rather than wrongly referenced in title and summary:transmute_const_generics).[-]Tracking Issue for `transmute_const_generics`[/-][+]Tracking Issue for `transmute_generic_consts`[/+]Rollup merge of rust-lang#114009 - dvdhrm:pr/transmzst, r=pnkfelix
compiler: allow transmute of ZST arrays with generics
Rollup merge of rust-lang#114009 - dvdhrm:pr/transmzst, r=pnkfelix
Unrolled build for rust-lang#114009
zachs18 commentedon Apr 17, 2026
I think the part of #106281 that actually constructed
SizeSkeleton::Genericwas effectively reverted by #122820, so I'm not sure thatSizeSkeleton::Genericactually does anything currently? (i.e. it seems like it is never constructed)(This is unrelated to #114009 whose change is also gated under this feature)