mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add stability attribute
This commit is contained in:
parent
ef519c1de5
commit
0cde1cbb10
@ -1064,6 +1064,7 @@ impl<T> From<T> for Option<T> {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "option_ref_from_ref_option", since = "1.30.0")]
|
||||
impl<'a, T> From<&'a Option<T>> for Option<&'a T> {
|
||||
fn from(o: &'a Option<T>) -> Option<&'a T> {
|
||||
o.as_ref()
|
||||
|
Loading…
Reference in New Issue
Block a user