-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Regression because of #26008 #26096
Copy link
Copy link
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>.
Reactions are currently unavailable
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.
Type
Fields
Give feedbackNo fields configured for issues without a type.