summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml2
-rw-r--r--src/lib.rs26
2 files changed, 1 insertions, 27 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c3746ab..c4f45ae 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "selfref"
-version = "0.2.1"
+version = "0.2.2"
 authors = ["SoniEx2 <endermoneymod@gmail.com>"]
 edition = "2021"
 description = "Pain-free self-referential pinned types"
diff --git a/src/lib.rs b/src/lib.rs
index 44a5a50..c321880 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -5,7 +5,6 @@
 //
 // SPDX-License-Identifier: MIT OR Apache-2.0
 
-#![feature(generic_associated_types)]
 #![no_std]
 
 //! Pain-free self-referential/recursively-referential pinned types.
@@ -22,8 +21,6 @@
 //! following will not be usable, despite compiling:
 //!
 //! ```rust
-//! #![feature(generic_associated_types)]
-//!
 //! use selfref::opaque;
 //!
 //! // This is the actual self-referential struct.
@@ -61,8 +58,6 @@
 //! use an `Option` and, to be able to set it, a `Cell`, like so:
 //!
 //! ```rust
-//! #![feature(generic_associated_types)]
-//!
 //! use std::cell::Cell;
 //!
 //! use selfref::opaque;
@@ -85,8 +80,6 @@
 //! ```rust
 //! // lines from the above example have been omitted
 //!
-//! # #![feature(generic_associated_types)]
-//! #
 //! # use std::cell::Cell;
 //! #
 //! use selfref::Holder;
@@ -125,16 +118,11 @@
 //! }
 //! ```
 //!
-//! # Nightly
-//!
-//! This crate (currently) requires nightly, as it relies on GATs.
-//!
 //! # Examples
 //!
 //! This is a more complex example borrowing from an external lifetime:
 //!
 //! ```rust
-//! #![feature(generic_associated_types)]
 //! #![feature(pin_macro)]
 //!
 //! use core::cell::Cell;
@@ -212,8 +200,6 @@ use core::mem;
 /// # Examples
 ///
 /// ```rust
-/// #![feature(generic_associated_types)]
-///
 /// use core::cell::Cell;
 /// 
 /// use selfref::Opaque;
@@ -250,8 +236,6 @@ pub unsafe trait Opaque {
 /// Simple example:
 ///
 /// ```rust
-/// #![feature(generic_associated_types)]
-///
 /// use core::cell::Cell;
 /// 
 /// use selfref::opaque;
@@ -271,8 +255,6 @@ pub unsafe trait Opaque {
 /// Type parameters and where bounds:
 ///
 /// ```rust
-/// #![feature(generic_associated_types)]
-///
 /// use core::cell::Cell;
 /// use core::fmt::Display;
 /// use core::marker::PhantomData;
@@ -347,8 +329,6 @@ macro_rules! opaque {
 /// # Examples
 ///
 /// ```rust
-/// #![feature(generic_associated_types)]
-///
 /// use core::cell::Cell;
 /// 
 /// use selfref::Holder;
@@ -417,8 +397,6 @@ impl<'k, T> Holder<'k, T> where T: Opaque {
     /// Simple example:
     ///
     /// ```rust
-    /// #![feature(generic_associated_types)]
-    ///
     /// use core::cell::Cell;
     /// 
     /// use selfref::Holder;
@@ -448,8 +426,6 @@ impl<'k, T> Holder<'k, T> where T: Opaque {
     /// Lifetime parameters:
     ///
     /// ```rust
-    /// #![feature(generic_associated_types)]
-    ///
     /// use core::cell::Cell;
     /// use core::marker::PhantomData;
     /// 
@@ -536,7 +512,6 @@ impl<'k, T> Holder<'k, T> where T: Opaque {
     /// Simple example:
     ///
     /// ```rust
-    /// #![feature(generic_associated_types)]
     /// #![feature(pin_macro)]
     ///
     /// use core::cell::Cell;
@@ -575,7 +550,6 @@ impl<'k, T> Holder<'k, T> where T: Opaque {
     /// With lifetime parameters:
     ///
     /// ```rust
-    /// #![feature(generic_associated_types)]
     /// #![feature(pin_macro)]
     ///
     /// use core::cell::Cell;