Partially stabilize bound_as_ref by stablizing Bound::as_ref

See:

- #80996
- https://github.com/rust-lang/rust/issues/80996#issuecomment-1194575470
This commit is contained in:
Ryan Lopopolo 2022-07-25 15:46:58 -07:00
parent eaadb8947b
commit 773df67880
No known key found for this signature in database
GPG key ID: 46047D739B6AE0B1

View file

@ -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),