Skip to content

Commit 3413135

Browse files
committed
Fix a couple of mistakes
A few mentions of implementing `Receiver` for raw pointers snuck through from earlier drafts. That's not in scope for this RFC, for the reasons explained in the "Enable for raw pointers" alternatives section.
1 parent 8d01878 commit 3413135

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

text/3519-arbitrary-self-types-v2.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ trait Receiver {
161161
The `Receiver` trait is already implemented for many standard library types:
162162
- smart pointers in the standard library: `Rc<Self>`, `Arc<Self>`, `Box<Self>`, and `Pin<SomeSmartPtr<Self>>` (and in fact, any type which implements `Deref`)
163163
- references: `&Self` and `&mut Self`
164-
- pointers: `*const Self` and `*mut Self`
165164

166165
Shorthand exists for references, so that `self` with no ascription is of type `Self`, `&self` is of type `&Self` and `&mut self` is of type `&mut Self`.
167166

@@ -172,8 +171,6 @@ impl Foo {
172171
fn by_value(self /* self: Self */);
173172
fn by_ref(&self /* self: &Self */);
174173
fn by_ref_mut(&mut self /* self: &mut Self */);
175-
fn by_ptr(self: *const Self);
176-
fn by_mut_ptr(self: *mut Self);
177174
fn by_box(self: Box<Self>);
178175
fn by_rc(self: Rc<Self>);
179176
fn by_custom_ptr(self: CustomPtr<Self>);

0 commit comments

Comments
 (0)