-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Closed as not planned
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-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.
Description
Over in:
- arbitrary_self_types + derive_coerce_pointee allows calling methods whose where clauses are violated #136702
- Forbid freely casting lifetime bounds of dyn-types #136776
We're talking about how safe lifetime casts can allow library-level UB. It's interesting to think about other things that fit this pattern that also might be said to cause library-level UB under certain expectations.
steffahn described in #136702 (comment) a plan for using dyn Trait and nightly features for triggering library-level UB. It looks like this:
Translating this to a non-dyn context, we get this, which has a similar shape to it:
@rustbot labels +T-lang +T-types +C-discussion
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-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.