-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for PinCoerceUnsized #150112
Copy link
Copy link
Open
Labels
A-DSTsArea: Dynamically-sized types (DSTs)Area: Dynamically-sized types (DSTs)A-coercionsArea: implicit and explicit `expr as Type` coercionsArea: implicit and explicit `expr as Type` coercionsA-pinArea: PinArea: PinC-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 RFCF-coerce_unsizedThe `CoerceUnsized` traitThe `CoerceUnsized` traitT-langRelevant to the language teamRelevant to the language teamT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-DSTsArea: Dynamically-sized types (DSTs)Area: Dynamically-sized types (DSTs)A-coercionsArea: implicit and explicit `expr as Type` coercionsArea: implicit and explicit `expr as Type` coercionsA-pinArea: PinArea: PinC-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 RFCF-coerce_unsizedThe `CoerceUnsized` traitThe `CoerceUnsized` traitT-langRelevant to the language teamRelevant to the language teamT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(pin_coerce_unsized_trait)]This is a tracking issue for
PinCoerceUnsized, which is an unsafe trait that determines whether unsizing coercions are possible when the given type is pinned.Public API
Steps
CoerceUnsizedfirstUnresolved Questions
PinCoerceUnsizedis the correct solution toPinis unsound due to transitive effects ofCoerceUnsized#68015Derefshould be a supertrait ofPinCoerceUnsized(it closes doors in terms of extendingPin<T>to non-DerefTs) or whether we should, e.g., use a sealed supertrait with a blanket impl or consider other options.Implementation history
PinCoerceUnsizedforPin#144896