From b495a74834c037264c4017dfc502454a502c3b2e Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Mon, 25 Jul 2022 15:46:58 -0700 Subject: [PATCH] Partially stabilize `bound_as_ref` by stablizing `Bound::as_ref` See: - #80996 - https://github.com/rust-lang/rust/issues/80996#issuecomment-1194575470 --- core/src/ops/range.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/ops/range.rs b/core/src/ops/range.rs index a3b148473..728202835 100644 --- a/core/src/ops/range.rs +++ b/core/src/ops/range.rs @@ -677,7 +677,7 @@ pub enum Bound { impl Bound { /// Converts from `&Bound` 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),