-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
P-highHigh priorityHigh priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
#26008 caused a regression (see travis).
Here is the code:
use std::rc::Rc;
let a: Rc<Option<u32>> = Rc::new(Some(5));
let _b: Option<&u32> = a.as_ref();
It works with stable because as_ref()
is called on the Option
.
But in the nightlies, as_ref()
is called on the Rc
and I get a &Option<u32>
instead of a Option<&u32>
.
Metadata
Metadata
Assignees
Labels
P-highHigh priorityHigh priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.