We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a75e6e commit b551f75Copy full SHA for b551f75
2 files changed
core/src/lib.rs
@@ -172,6 +172,7 @@
172
#![feature(no_core)]
173
#![feature(optimize_attribute)]
174
#![feature(prelude_import)]
175
+#![feature(reborrow)]
176
#![feature(repr_simd)]
177
#![feature(rustc_allow_const_fn_unstable)]
178
#![feature(rustc_attrs)]
core/src/marker.rs
@@ -1365,3 +1365,11 @@ pub macro CoercePointee($item:item) {
1365
pub trait CoercePointeeValidated {
1366
/* compiler built-in */
1367
}
1368
+
1369
+/// Allows value to be reborrowed as exclusive, creating a copy of the value
1370
+/// that disables the source for reads and writes for the lifetime of the copy.
1371
+#[lang = "reborrow"]
1372
+#[unstable(feature = "reborrow", issue = "145612")]
1373
+pub trait Reborrow {
1374
+ // Empty.
1375
+}
0 commit comments