Add stability attribute

This commit is contained in:
Georg Semmler 2018-08-09 12:48:55 +02:00
parent ef519c1de5
commit 0cde1cbb10
No known key found for this signature in database
GPG Key ID: A87BCEE5205CE489

View File

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