Closed EEliisaa closed 4 months ago
This RFC improves ergonomics for pointers in unsafe Rust. It adds the RArrow token as a single-dereference member access operator. x->field desugars to (*x).field, and x->method() desugars to (*x).method().
x->field
(*x).field
x->method()
(*x).method()
For an RFC, you're not supposed to edit the template; you're supposed to copy it into a new file. As-is, this couldn't be merged.
This RFC improves ergonomics for pointers in unsafe Rust. It adds the RArrow token as a single-dereference member access operator.
x->field
desugars to(*x).field
, andx->method()
desugars to(*x).method()
.