Skip to content

Commit b495a74

Browse files
committed
Partially stabilize bound_as_ref by stablizing Bound::as_ref
See: - #80996 - rust-lang/rust#80996 (comment)
1 parent ada17f4 commit b495a74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/ops/range.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ pub enum Bound<T> {
677677
impl<T> Bound<T> {
678678
/// Converts from `&Bound<T>` to `Bound<&T>`.
679679
#[inline]
680-
#[unstable(feature = "bound_as_ref", issue = "80996")]
680+
#[stable(feature = "bound_as_ref_shared", since = "CURRENT_RUSTC_VERSION")]
681681
pub fn as_ref(&self) -> Bound<&T> {
682682
match *self {
683683
Included(ref x) => Included(x),

0 commit comments

Comments
 (0)