Skip to content

Regression because of #26008 #26096

Description

@tomaka

#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>.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-highHigh priorityT-libs-api[DEPRECATED; DO NOT USE]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions