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:
parent
eaadb8947b
commit
773df67880
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue