Skip to content

regression: as_place unwrap None #115778

Closed

Description

@Mark-Simulacrum

Activity

  1. added
    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Sep 12, 2023
  2. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Sep 12, 2023
  3. added this to the 1.73.0 milestone on Sep 12, 2023
  4. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Sep 12, 2023
  5. matthiaskrgr commented on Sep 12, 2023

    @matthiaskrgr
    Member

    Might be related to #110453

  6. apiraino commented on Sep 13, 2023

    @apiraino
    Contributor

    I've tried the first 2 crates (bonedaddy.ellidri and edu-sync), they compile on the current stable fail to compile on beta and nightly.

    Provisionally assigning P-high waiting for more investigation (Zulip discussion).

    @rustbot label -I-prioritize +P-high +T-compiler

  7. added
    P-highHigh priority
    and removed
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Sep 13, 2023
  8. added
    E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
    on Sep 14, 2023
  9. apiraino commented on Sep 14, 2023

    @apiraino
    Contributor

    bisected to commit 7e4f5ecde93e629a44ad3678059c5cd364791d27, where in this commit originates the issue:
    Regression in rust-lang-ci@7e4f5ec i.e. rollup PR #113120

    @rustbot label -e-needs-bisection

  10. apiraino commented on Sep 14, 2023

    @apiraino
    Contributor

    Bisection probably leads to #111571 cc @jhpratt

    TIL to look at the perf builds results, they help getting more context. They told me tha PR 111571 is actually commit 7e4f5ecde93e629a44ad3678059c5cd364791d27

  11. removed
    E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
    on Sep 14, 2023
  12. jhpratt commented on Sep 14, 2023

    @jhpratt
    Member

    I'll take a look at this after RustConf.

  13. jhpratt commented on Sep 20, 2023

    @jhpratt
    Member

    @apiraino Is it possible the bisection contained an error? I'm not seeing any possible connection. The errors seem unrelated, .unwrap() is not used anywhere in my PR, and proc_macro is not even present in any of the three linked logs.

  14. apiraino commented on Sep 20, 2023

    @apiraino
    Contributor

    Ok, I give up on reproducing using the crate ellidri (in the latest nightlies the error changed, I can't track the original error anymore). So I've started again using the crate edu-sync I now have a stable reproducible.

    I am now a bit more confident the regression is in 34ccd04 (specifically #114022) cc @oli-obk (I see in that patch some code that is in the stacktraces).

    sorry @jhpratt for the ping and thanks for pointing me into the right direction :)

  15. jhpratt commented on Sep 20, 2023

    @jhpratt
    Member

    No worries! Someone mentioned that it may have been incorrect at RustConf, but I wanted to have a chance to look into it myself before saying anything.

    I'll be unsubscribing from this issue; please ping if something needs my attention :)

  16. self-assigned this
    on Sep 21, 2023
  17. oli-obk commented on Sep 22, 2023

    @oli-obk
    Contributor

    small, but not yet minimal repro. Should be good enough for the test suite. I'm looking into a fix now.

    use std::future::Future;
    
    async fn bop() {
        fold(run(), |mut foo| async move {
            &mut foo.bar;
        })
    }
    
    fn fold<Fut, F, U>(_: Foo<U>, f: F)
    where
        F: FnMut(Foo<U>) -> Fut,
    {
        loop {}
    }
    
    struct Foo<F> {
        bar: Vec<F>,
    }
    
    fn run() -> Foo<impl Future<Output = ()>> {
        loop {}
    }
  18. oli-obk commented on Sep 22, 2023

    @oli-obk
    Contributor

    I reverted all changes from #114022 and it does not appear to change behaviour. trying a local bisect on the minimal repro.

    edit: hmm weird, it also points to that PR. Trying again
    edit2: ok now it works, weird

  19. added a commit that references this issue on Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.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