about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan Lopopolo <rjl@hyperbo.la>2022-07-25 15:46:58 -0700
committerRyan Lopopolo <rjl@hyperbo.la>2022-08-27 13:50:57 -0700
commit773df6788018b2cd6267b82bd2b5712cbd223f44 (patch)
tree85207d6d93709c15b0ab7cad0a1784963949d214
parenteaadb8947b850a025404082f6297766c4680a42a (diff)
downloadrust-773df6788018b2cd6267b82bd2b5712cbd223f44.tar.gz
rust-773df6788018b2cd6267b82bd2b5712cbd223f44.zip
Partially stabilize `bound_as_ref` by stablizing `Bound::as_ref`
See:

- #80996
- https://github.com/rust-lang/rust/issues/80996#issuecomment-1194575470
-rw-r--r--library/core/src/ops/range.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ops/range.rs b/library/core/src/ops/range.rs
index a3b14847342..72820283581 100644
--- a/library/core/src/ops/range.rs
+++ b/library/core/src/ops/range.rs
@@ -677,7 +677,7 @@ pub enum Bound<T> {
 impl<T> Bound<T> {
     /// Converts from `&Bound<T>` to `Bound<&T>`.
     #[inline]
-    #[unstable(feature = "bound_as_ref", issue = "80996")]
+    #[stable(feature = "bound_as_ref_shared", since = "CURRENT_RUSTC_VERSION")]
     pub fn as_ref(&self) -> Bound<&T> {
         match *self {
             Included(ref x) => Included(x),