Skip to content

regression: AsRef inference breakage #82665

Closed

Activity

  1. added this to the 1.51.0 milestone on Mar 1, 2021
  2. added
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Mar 1, 2021
  3. apiraino commented on Mar 3, 2021

    @apiraino
    Contributor

    I've tried bisecting this issue (if it helps):

    searched nightlies: from nightly-2021-01-01 to nightly-2021-03-03
    regressed nightly: nightly-2021-01-26
    searched commits: from 1d0d76f to f4eb5d9
    regressed commit: d3163e9

    bisected with cargo-bisect-rustc v0.6.0

    Host triple: x86_64-unknown-linux-gnu
    Reproduce with:

    cargo bisect-rustc --start=2021-01-01 

    somewhere in this rollup #81355

  4. m-ou-se commented on Mar 3, 2021

    @m-ou-se
    Member

    somewhere in this rollup #81355

    Hm, none of the PRs in that rollup should affect AsRef for String, which is what all these regressions are about. There's only one trait implementation added in that rollup: impl Error for &(impl Error).

  5. JohnTitor commented on Mar 5, 2021

    @JohnTitor
    Member

    This shows the regression (playground):

    use std::io;
    
    pub fn foo() -> io::Result<i32> {
        Err(io::Error::new(
            io::ErrorKind::Other,
            format!("Error!").as_ref(),
        ))
    }
    
    fn main() {}

    And yes, confirmed that #75180 is the cause.

  6. removed
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Mar 5, 2021
  7. LeSeulArtichaut commented on Mar 5, 2021

    @LeSeulArtichaut
    Contributor

    It looks like those were expected regressions (see #75180 (comment)).

  8. JohnTitor commented on Mar 22, 2021

    @JohnTitor
    Member

    Triage: Close this issue as an acceptable regression, we mentioned it in #75180 (comment) and consider it acceptable through FCP.

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

    T-libs-api[DEPRECATED; DO NOT USE]regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions