-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.B-RFC-implementedBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Approved by a merged RFC and implemented but not stabilized.B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-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 RFCS-tracking-design-concernsStatus: There are blocking design concerns.Status: There are blocking design concerns.T-langRelevant to the language teamRelevant to the language team
Description
Superseded by #101728 due to the landing of RFC 3307
Tracking issue for rust-lang/rfcs#803. Important points:
- Implement the
expr:Type
syntax - Ensure soundness with respect to
ref
positions:-
let ref x = <expr>
/let mut ref = <expr>
-
match <expr>: Type { ref x => ... }
-
(<expr>: Type).method_with_ref_self()
-
- Permit coercions like
&[1, 2, 3]: &[u8]
-- permit coercion in type ascription #78248
denisandroid, Elrendio, isbear, 8176135, ryzhyk and 44 morezohnannor, pushkine, SeniorMars, vE5li, Brasilius and 1 moremykhailokrainik, VinegarChicken, museun, oilaba, king-11 and 6 moreserid, kaizhang, SeniorMars and schneiderfelipevyas-n
Metadata
Metadata
Assignees
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.B-RFC-implementedBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Approved by a merged RFC and implemented but not stabilized.B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-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 RFCS-tracking-design-concernsStatus: There are blocking design concerns.Status: There are blocking design concerns.T-langRelevant to the language teamRelevant to the language team