summaryrefslogtreecommitdiff
path: root/compiler/rustc_feature/src/unstable.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-06-08 11:26:56 +0200
committerRalf Jung <post@ralfj.de>2024-06-08 18:17:55 +0200
commiteb584a23bfba55512af0a223cf4133b806ede178 (patch)
treefecadfa0fdf6d7c1ecf085e65294c156e96de5fd /compiler/rustc_feature/src/unstable.rs
parent16e8803579e5914a17a4924f47faaefc040a982d (diff)
offset_of: allow (unstably) taking the offset of slice tail fields
Diffstat (limited to 'compiler/rustc_feature/src/unstable.rs')
-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 d67422849d8..2410019868a 100644
--- a/compiler/rustc_feature/src/unstable.rs
+++ b/compiler/rustc_feature/src/unstable.rs
@@ -559,6 +559,8 @@ declare_features! (
(unstable, offset_of_enum, "1.75.0", Some(120141)),
/// Allows using multiple nested field accesses in offset_of!
(unstable, offset_of_nested, "1.77.0", Some(120140)),
+ /// Allows using fields with slice type in offset_of!
+ (unstable, offset_of_slice, "CURRENT_RUSTC_VERSION", Some(126151)),
/// Allows using `#[optimize(X)]`.
(unstable, optimize_attribute, "1.34.0", Some(54882)),
/// Allows postfix match `expr.match { ... }`