Skip to content

Commit

Permalink
Arbitrary self types v2: Unstable book, stabilize
Browse files Browse the repository at this point in the history
Update the unstable book to indicate that this feature is now
stabilized.
  • Loading branch information
adetaylor committed Jan 22, 2025
1 parent 3c0efbb commit c93c894
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 159 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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)]
Expand All @@ -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.

0 comments on commit c93c894

Please sign in to comment.