Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary self types v2: stabilize #135881

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Arbitrary self types v2: Unstable book, stabilize
Update the unstable book to indicate that this feature is now
stabilized.
adetaylor committed Mar 7, 2025
commit a41a9def6f0a393c7300e9566596d97a3623dd7c
Original file line number Diff line number Diff line change
@@ -6,8 +6,7 @@ The tracking issue for this feature is: [#44874]

------------------------

This extends the [arbitrary self types] feature to allow methods to
receive `self` by pointer. For example:
This allow methods to receive `self` by pointer. For example:

```rust
#![feature(arbitrary_self_types_pointers)]
@@ -27,7 +26,7 @@ fn main() {

In general this is not advised: it's thought to be better practice to wrap
raw pointers in a newtype wrapper which implements the `core::ops::Receiver`
trait, then you need "only" the `arbitrary_self_types` feature. For example:
trait. For example:

```rust
#![feature(arbitrary_self_types)]
@@ -53,5 +52,3 @@ fn main() {
a_wrapper.m();
}
```

[arbitrary self types]: arbitrary-self-types.md
154 changes: 0 additions & 154 deletions src/doc/unstable-book/src/language-features/arbitrary-self-types.md

This file was deleted.