-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
Tracking Issue for thin_box #92791
Copy link
Copy link
Open
Labels
A-boxArea: Our favorite opsem complicationArea: Our favorite opsem complicationC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Activity
Metadata
Metadata
Assignees
Labels
A-boxArea: Our favorite opsem complicationArea: Our favorite opsem complicationC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
View all comments
Feature gate:
#![feature(thin_box)]This is a tracking issue for
ThinBoxfor making heap allocated DSTs which only occupy 1 pointer on the stack.Public API
Note: This API is expected to grow to match
Boxas necessary over time. The initial API is the minimum needed for basic usage for error handling.Steps / History
SendandSync: ImplementSendandSyncforThinBox<T>#98595Unresolved Questions
ThinBox<T>covariant inT#98585const_allocatefleshed out and tested enough to justify it being used in thinbox's impl? Does T-lang agree we'll always have some way to procedurally generate allocations in const eval? (in contrast to declaratively via constants, statics or anonymous promoteds)