Skip to content

Commit 1b63e7d

Browse files
committed
move Reborrow to ops, fix fmt issues
1 parent d3f8fb9 commit 1b63e7d

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

core/src/marker.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,11 +1364,3 @@ pub macro CoercePointee($item:item) {
13641364
pub trait CoercePointeeValidated {
13651365
/* compiler built-in */
13661366
}
1367-
1368-
/// Allows value to be reborrowed as exclusive, creating a copy of the value
1369-
/// that disables the source for reads and writes for the lifetime of the copy.
1370-
#[lang = "reborrow"]
1371-
#[unstable(feature = "reborrow", issue = "145612")]
1372-
pub trait Reborrow {
1373-
// Empty.
1374-
}

core/src/ops/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ pub use self::range::{OneSidedRange, OneSidedRangeBound};
191191
#[stable(feature = "rust1", since = "1.0.0")]
192192
pub use self::range::{Range, RangeFrom, RangeFull, RangeTo};
193193
#[unstable(feature = "reborrow", issue = "145612")]
194-
pub use self::reborrow::CoerceShared;
194+
pub use self::reborrow::{CoerceShared, Reborrow};
195195
#[unstable(feature = "try_trait_v2_residual", issue = "91285")]
196196
pub use self::try_trait::Residual;
197197
#[unstable(feature = "try_trait_v2_yeet", issue = "96374")]

core/src/ops/reborrow.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
use crate::marker::Reborrow;
1+
/// Allows value to be reborrowed as exclusive, creating a copy of the value
2+
/// that disables the source for reads and writes for the lifetime of the copy.
3+
#[lang = "reborrow"]
4+
#[unstable(feature = "reborrow", issue = "145612")]
5+
pub trait Reborrow {
6+
// Empty.
7+
}
28

39
/// Allows reborrowable value to be reborrowed as shared, creating a copy
410
/// that disables the source for writes for the lifetime of the copy.

0 commit comments

Comments
 (0)