diff options
| author | Ryan Lopopolo <rjl@hyperbo.la> | 2022-07-25 15:46:58 -0700 |
|---|---|---|
| committer | Ryan Lopopolo <rjl@hyperbo.la> | 2022-08-27 13:50:57 -0700 |
| commit | 773df6788018b2cd6267b82bd2b5712cbd223f44 (patch) | |
| tree | 85207d6d93709c15b0ab7cad0a1784963949d214 | |
| parent | eaadb8947b850a025404082f6297766c4680a42a (diff) | |
| download | rust-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.rs | 2 |
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), |
