about summary refs log tree commit diff
path: root/compiler/rustc_feature/src
diff options
context:
space:
mode:
authorEric Holk <ericholk@microsoft.com>2024-09-04 16:03:47 -0700
committerEric Holk <ericholk@microsoft.com>2024-09-18 12:36:31 -0700
commit7b7992fbcf5b8d9af945e32eac241252baa46fab (patch)
treeba13ee2c152fc84e0c5d6822a6f7819d71512792 /compiler/rustc_feature/src
parent13b5a4e43b92cf738acad403ea56900947f9d37b (diff)
downloadrust-7b7992fbcf5b8d9af945e32eac241252baa46fab.tar.gz
rust-7b7992fbcf5b8d9af945e32eac241252baa46fab.zip
Begin experimental support for pin reborrowing
This commit adds basic support for reborrowing `Pin` types in argument
position. At the moment it only supports reborrowing `Pin<&mut T>` as
`Pin<&mut T>` by inserting a call to `Pin::as_mut()`, and only in
argument position (not as the receiver in a method call).
Diffstat (limited to 'compiler/rustc_feature/src')
-rw-r--r--compiler/rustc_feature/src/unstable.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/unstable.rs b/compiler/rustc_feature/src/unstable.rs
index d0c0460ddfe..cf20b79dfa9 100644
--- a/compiler/rustc_feature/src/unstable.rs
+++ b/compiler/rustc_feature/src/unstable.rs
@@ -558,6 +558,8 @@ declare_features! (
     (unstable, optimize_attribute, "1.34.0", Some(54882)),
     /// Allows specifying nop padding on functions for dynamic patching.
     (unstable, patchable_function_entry, "1.81.0", Some(123115)),
+    /// Experimental features that make `Pin` more ergonomic.
+    (incomplete, pin_ergonomics, "CURRENT_RUSTC_VERSION", Some(130494)),
     /// Allows postfix match `expr.match { ... }`
     (unstable, postfix_match, "1.79.0", Some(121618)),
     /// Allows macro attributes on expressions, statements and non-inline modules.